DNAT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux