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
Linux用IPTables命令将多公网IP映射到不同内网IP
最新推荐文章于 2023-10-02 21:52:37 发布
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