PDA

View Full Version : iptables forwarding


lrt
27th November 2007, 20:56
i need to know how i can forward all internet traffic from eth0 to eth1 (two nics on the same machine) using iptables. eth0 is connected to my router (internet connection) and eth1 is connected to a switch. eth1 will act as a gateway for my dhcp clients.

i'm not very familiar with iptables, but i know this can be done fairly easily. could someone show me how? thanks