e.g. eth0
# WAN 120.xxx.xxx.1 -> LAN eth0 192.168.10.1
iptables -t nat -I PREROUTING -d 120.xxx.xxx.1 -j DNAT --to 192.168.10.1
iptables -t nat -I POSTROUTING -s 192.168.10.1 -j SNAT --to 120.xxx.xxx.1
iptables -I FORWARD -d 192.168.10.1 -j ACCEPT
歡迎光臨 TWed2k (http://twed2k.org/) | Powered by Discuz! 4.1.0 |