I have two interfaces eth1
and eth0
. I want all traffic on eth0
to be forwarded to eth1
. I created an iptable rule like this:
iptables -A FORWARD -s 0/0 -i eth0 -p tcp -o eth1 -j ACCEPT
But this doesn't work. Is this the correct way of doing this?