I have a eth0 ( outside ip ) with a eth0:1 ( lan ip/192.168.0.x ) I want to take all 8080 traffic from out side and direct it to 192.168.0.21:8080
I tried
and figured I may needCode:iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 8080 -j DNAT --to 192.168.0.21:8080
but its not working. What did I do wrong?Code:iptables -A FORWARD -p tcp -i eth0 -d 192.168.0.21 --dport 8080 -j ACCEPT
Bookmarks