NAT not working but the setting is correct! Thx
I have a firewall machine running Slackware 10.1. It had a fix ip address, (ex 22.214.171.124) and it connected to a local LAN. so the config is
Now I open a new port 8765 on eth1 and forward into local LAN 126.96.36.199.
I did the following
After, I check with "iptables -L -t nat"
iptables -A INPUT -i eth1 -p tcp --dport 8765 -j ACCEPT (accept data from port 8765)
iptables -t nat -A PREROUTING -p tcp -i eth1 -d 188.8.131.52 --dport 8765 -j DNAT --to 192.168.1.2:80 (forward msg from 184.108.40.206:8765 to 192.168.1.2:80).
It seem ok. but when I open the URL on firefox it failed, ie also failed
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere 220.127.116.11 dpt:6908 to:192.168.1.2:80
Now, the firewall setting is correct and seem work fine, but why I can't connect to local machine 192.168.1.2, but when I connect http://192.168.1.2:80 is work fine. How can I check the forwarding is correct from 18.104.22.168 to 192.168.1.2??
Unable to connect
Firefox can't establish a connection to the server at 22.214.171.124:8765.