[Ilugc] net.ipv4.ip_forward

  • From: mohan.tux@xxxxxxxxx (Mohan Sundaram)
  • Date: Mon Aug 31 17:09:12 2009

On Mon, Aug 31, 2009 at 3:35 PM, Ashish Verma<ashishverma1984@xxxxxxxxx> wrote:

Hi,

I have two systems, 1 server and the other client.
The server has 2 interfaces, 1 in 172 network and the other in 192 network.
In the client I have configured the server as the default gateway. There is
only one interface on the client configured wiht 172 network.

Now, whether or not I set the net.ipv4.ip_forward to "1", I am able to ping
the 192 interface from the client on 172 network. *Is this expected
behavior?* There are no iptables or anything of that sort configured.

ip_forward set to 1 only means the packets can be forwarded across
interfaces. In this case, the host is responding and that has been
reached via the 172 interface. If ip_forward is 0, you cannot ping
systems in the 192 network other than the host having the two cards.

Mohan Sundaram

Other related posts: