IP forwarding when running a web server

cancel
Showing results for 
Search instead for 
Did you mean: 

IP forwarding when running a web server

Jump to solution
577 Views
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?

Labels (1)
0 Kudos
1 Solution
372 Views
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

View solution in original post

0 Kudos
2 Replies
372 Views
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 Kudos
373 Views
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 Kudos