IP forwarding when running a web server

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IP forwarding when running a web server

跳至解决方案
794 次查看
jesperevertsson
Contributor IV

Hi, I just have a quick question regarding the _IP_forward variable in MQX. As default this is set to false, but in the http server example it's set to true. I just wanted to know what the reason for this is and what the effects are. The reason I'm asking is beacuse when we run a program to monitor SNMP it says that all our products that have embedded web servers are routers, since the snmp node ipForwarding returns 1. It's not a big problem by any means, but it can be a bit missleading for our customers if our products gets mistaken for routers by  some SNMP monitoring programs. But would there be any negative effects if we didn't set _IP_forward to true when using a https server?

标签 (1)
0 项奖励
1 解答
589 次查看
EAI
Contributor IV

Jesper;

_IP_forward is set to true when you want RTCS to forward packets between multiple interfaces (act like a router between subnets). It only makes sense to enable this if there are multiple interfaces.

Craig

在原帖中查看解决方案

0 项奖励
2 回复数
589 次查看
danielchen
NXP TechSupport
NXP TechSupport

Just add to Craig's good comments, let me give an example here, let's say you have two NICs, one (NIC1) is at address 192.168.2.1/24, and the other (NIC2) is 192.168.3.1/24.  If forwarding is enabled, and a packet comes in on NIC1 with a "destination address" of 192.168.3.9, your divices will resend that packet out of the NIC2.  If forwarding is not enabled, this packet will be discarded.

Regards

Daniel

0 项奖励
590 次查看
EAI
Contributor IV

Jesper;

_IP_forward is set to true when you want RTCS to forward packets between multiple interfaces (act like a router between subnets). It only makes sense to enable this if there are multiple interfaces.

Craig

0 项奖励