Skip to contentSkip to conversation

DNAT

DISCUSSION Payal Rathod 1 participant 1 message Oct 26, 2004

lore
Share & tools
lore
#0 lore raw

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