标签:star wal stop -- sharp 映射 pre restart fir
1.安装iptables-services
systemctl stop firewalld systemctl mask firewalld yum install iptables-services systemctl enable iptables systemctl restart iptables
2.配置规则
iptables -t nat -A PREROUTING --dst 10.129.4.90 -p tcp --dport 5911 -j DNAT --to-destination 10.129.4.96:5901 iptables -t nat -A POSTROUTING --dst 10.129.4.96 -p tcp --dport 5901 -j SNAT --to-source 10.129.4.90
3.保存配置
service iptables save
标签:star wal stop -- sharp 映射 pre restart fir
原文地址:https://www.cnblogs.com/hurongpu/p/10207237.html