Hi,
I have a strange problem related to this topic...
My setup:
((Internet)) -> ADSL Router (NAT) -> WLAN Base Station (NAT, OpenWRT) -> My Computer
**Don't ask why there's two NATs :-)
So, I want to open+forward a port from the internet to My Computer. I've configured ADSL Router to forward the port 6999 to the WLAN Base Station IP. Also added a rule about that port to the firewall settings of the ADSL Router just to make sure.
In the OpenWRT running WLAN Base Station, I've run these commands:
iptables -t nat -A PREROUTING -i vlan1 -p tcp --dport 6999 -j DNAT --to-destination 192.168.2.xxx
iptables -A FORWARD -i vlan1 -p tcp --dport 6999 -d 192.168.2.xxx -j ACCEPT
Now, when I ask a friend to test the port on the IP that shows to internet, result is TIMEOUT.
Extra info:
root@OpenWrt:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere anywhere tcp dpt:6999 to:192.168.2.xxx
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
..
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere 192.168.2.xxx tcp dpt:6999
..
this is not a huge issue but since i've started tackling this i'd like to get this done. this is only a temporary setup anyway, and i'll probably get the proper setup up just when i've solved this but i have an obsession now :-D
thanks for your help!