How can I port forward with iptables?
- by stu
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?