iptables做nat网络地址转换. 0. 权威文档 http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO-6.html e文好的直接跳过本文. 1. Source NAT 在POSTROUTING链里面定义,用-j SNAT,--to-source 省略成--to,ip ,ip段,地址段 ## Change source addresses to 1.2.3.4. # iptables -t nat -A POSTROUTING -o…