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 126.96.36.199) 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 188.8.131.52.
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 184.108.40.206 --dport 8765 -j DNAT --to 192.168.1.2:80 (forward msg from 220.127.116.11: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 18.104.22.168 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 22.214.171.124 to 192.168.1.2??
Unable to connect
Firefox can't establish a connection to the server at 126.96.36.199:8765.