iptables -t nat -A PREROUTING -d 1.2.3.4 -p tcp –dport 8018 -j DNAT –to 192.168.1.138:8018
iptables -t nat -A POSTROUTING -d 192.168.1.138 -p tcp –dport 8018 -j SNAT –to 1.2.3.4
iptables -t nat -A PREROUTING -d 1.2.3.4 -p tcp –dport 8018 -j DNAT –to 192.168.1.138:8018
iptables -t nat -A POSTROUTING -d 192.168.1.138 -p tcp –dport 8018 -j SNAT –to 1.2.3.4
感谢博主分享,支持!