I'm working on a debian server and when i add the following rules to forward a port to a lan address:
iptables -t nat -I PREROUTING -p tcp -d 192.168.1.1 --dport 3385 -j DNAT --to-destination 192.168.1.9:3389 iptables -I FORWARD -m state -d 192.168.1.2/10 --state NEW,RELATED,ESTABLISHED -j ACCEPT
i get the following with iptables -L:
Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere 22.214.171.124/10 state NEW,RELATED,ESTABLISHED
the LAN ip address of the debian server is 192.168.1.1 and it is connected to the internet and to the local network over one only interface and all the local network computers have an ip from 192.168.1.2 to 192.168.1.10. I'm using an exact clone of this debian server on another location and i don't have this problem. Thanks for any help.