[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ip forwarding woes



David Zelinsky wrote:

>With this setup, I expect to be able to ping 10.0.0.2 from 192.168.0.2
>(and vice versa), with packets routed through the firewall, but it
>doesn't work.

>What am I overlooking?

It looks like that 10.0.0.2 does not have a route to 192.168.0.0/24 or
that 192.168.0.2 does not have a route to 10.0.0.0/24 or both:
192.168.0.2# ip route add 10.0.0.0/24 via 192.168.0.1
10.0.0.2# ip route add 192.168.0.0/24 via 10.0.0.1

If the firewall is the main router for the network then you can set up a
default route to it on each of the other hosts:
192.168.0.2# ip route add default via 192.168.0.1
10.0.0.2# ip route add default via 10.0.0.1

You will need to have the iproute package installed to get the ip(8)
command.



Reply to: