iptables -t nat -A POSTROUTING -s 内网IP -o eth0 -j SNAT –to 外网IP
iptables -t nat -A PREROUTING -i eth0 -d 外网IP -j DNAT –to 内网IP
iptables -t nat -A POSTROUTING -s 内网IP -o eth0 -j SNAT –to 外网IP
iptables -t nat -A PREROUTING -i eth0 -d 外网IP -j DNAT –to 内网IP