DNAT
Payal Rathod
payal-netfilter at scriptkitchen.com
Tue Oct 26 12:20:23 CEST 2004
Hi,
I want to access my internal machine from outside. But I am unable to do
so. I tried,
# iptables -t nat -I PREROUTING -d <my_ext_ip> -p tcp --dport
8081 -j DNAT --to-destination 192.168.0.16:80
# iptables -I INPUT -p tcp --dport 8081 -j ACCEPT
# iptables -I FORWARD -s 192.168.0.16 -j ACCEPT
I know these are very crude but they are simple to start with. Also,
once I get one more public IP from my ISP, I will NAT it to the
internal machine.
Can anyone give pointers on this and above to why it is not working?
If this is right, is it possible that my ISP might be blocking
traffic from outside to ports other than the few.
With warm regards,
-Payal
More information about the netfilter
mailing list