+ Reply to Thread
Results 1 to 1 of 1
Thread: Port Forwarding using Iptables
-
Administrator
- Join Date
- Mar 2010
- Posts
- 76
Port Forwarding using Iptables
These are the Iptable rules required for port forwarding xxx.xxx.xxx.xxx:8888 to 192.168.0.2:80 .
################
/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d xxx.xxx.xxx.xxx
--dport 8888 -j DNAT --to 192.168.0.2:80
/sbin/iptables -A FORWARD -p tcp -i eth0 -d 192.168.0.2 --dport 80 -j ACCEPT
#################


LinkBack URL
About LinkBacks



Reply With Quote