Forwarding packets on iptables firewall

crux crux cruxam at
Sat Apr 21 14:25:25 CEST 2007

Hi people,

I have two machines which are connected to iptables firewall.
On firewall I have following rules

iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

echo 1 > /proc/sys/net/ipv4/ip_forward  ( on firewall )

ip address of machineA is
ip address of machineB is
default gateway for machineA is ( eth0 )
default gateway for machineB is  ( eth1 )

machineA -------- eth0(firewall)eth1-----
I want make possible traffic flow from machineA to machineB.

The above rules should do that, but because of something I cannot ping
machineB from machineA.

OS is debian. Any help is welcome.



More information about the netfilter mailing list