8080 port forwarding is not working

General support questions
Post Reply
rubence
Posts: 7
Joined: 2018/02/27 08:03:54

8080 port forwarding is not working

Post by rubence » 2018/02/27 08:24:22

X.X.X.X is my pubic IP server ... i used following command to redirect it to my local IP Server 11.9.0.89 . so that i can open web pages from outside

iptables -t nat -A PREROUTING -p tcp --dport 4026 -j DNAT --to-destination 11.9.0.89:80
iptables -t nat -A POSTROUTING -p tcp --dport 4026 -j MASQUERADE

iptables -t nat -A PREROUTING -p tcp --dport 5026 -j DNAT --to-destination 11.9.0.89:8080
iptables -t nat -A POSTROUTING -p tcp --dport 5026 -j MASQUERADE


when i m using http://X.X.X.X:4026 its working

but when i m using http://X.X.X.X:5026 its not working . but 8080 port is ok cause from LAN i can browse 11.9.0.89:8080

thanks

Post Reply