1
Linux 討論版 / Re: 使用iptables给局域网内设定域名拦截。
« 於: 2011-10-14 16:55 »
http://linux-ip.net/html/nat-dnat.html
FYI
代碼: [選擇]
Example 5.7. Simulating full NAT with SNAT and DNAT
[root@real-server]# iptables -t nat -A PREROUTING -d 205.254.211.17 -j DNAT --to-destination 192.168.100.17
[root@real-server]# iptables -t nat -A POSTROUTING -s 192.168.100.17 -j SNAT --to-destination 205.254.211.17
FYI
