[CentOS] Rules for port forwarding

admin lewis adminlewis at gmail.com
Tue Mar 29 09:06:52 UTC 2011

does anyone remember the rules for port forwarding ?
the followings does not work:
iptables -A FORWARD -i eth0 -o eth1 -p tcp –dport 80 -j ACCEPT
iptables -A PREROUTING -t nat -p tcp -i eth0 –dport 80 -j DNAT –to

thx lewis

More information about the CentOS mailing list