How can I port forward with iptables?
Posted
by stu
on Server Fault
See other posts from Server Fault
or by stu
Published on 2008-12-05T21:06:59Z
Indexed on
2010/05/11
13:04 UTC
Read the original article
Hit count: 279
I want connections coming in on ppp0 on port 8001 to route to 192.168.1.200 on eth0 on port 8080
I've got these two rules
-A PREROUTING -p tcp -m tcp --dport 8001 -j DNAT --to-destination 192.168.1.200:8080
-A FORWARD -m state -p tcp -d 192.168.1.200 --dport 8080 --state NEW,ESTABLISHED,RELATED -j ACCEPT
and it doesn't work, what am I missing?
© Server Fault or respective owner