phpng 發佈於 2016/01/20 10:15php
閱讀 5K+centos
收藏 0centos7
答案 1spa
iptables.net
我是如何在2年內逆襲成爲BAT年薪40W的資深開發工程師的? ip
iptables 命令開發
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source 10.162.xxx.xxxget
firewall-cmd是如何實現上面iptables的效果?cmd
不要說從新使用iptables了。(centos7 一個是沒有,另外已經使用firewall-cmd配置了不少東西了)io
收藏 (0)
分享
舉報
0
2016/03/11 15:48
firewall-cmd --permanent --direct --passthrough ipv4 -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source 10.162.xxx.xxx
firewall-cmd --reload