[CentOS] Forwarding connections/packets across interfaces

Tue Apr 18 01:05:28 UTC 2006
Bart Schaefer <barton.schaefer at gmail.com>

On 4/17/06, Alan Sparks <asparks at doublesparks.net> wrote:
> Have interfaces eth0 and eth1.  eth0 is connected to internal network,
> eth1 to separate distinct network.  The default route on the box is set
> to the roter address on the eth1 network.  I have static routes defined
> to send local network traffic to eth0 and eth0's router.
> I've set rp_filter=0, and ip_forward=1 for all interfaces, and still
> cannot get a connection from eth1's address to something off of eth0's
> networks.

This all sounds right ... though I'm not entirely sure what you mean
by "ip_forward=1 for all interfaces"; are you using /etc/sysctl.conf
to set this?

net.ipv4.ip_forward = 1

If you wouldn't mind sending the output of "route -n" that might offer
additional clues.