1

私は同等のことをしようとしています

iptables -t nat -I POSTROUTING -p all -s 172.17.0.0/16 -j SNAT --to-source 5.6.7.8

ドッカーがNICのセカンダリIPにバインドできるようにfirewalldで。

私がそれを解決できる最も近い

firewall-cmd --permanent --direct --add-rule ipv4 nat POSTROUTING 0 -d 172.17.0.0/16 -p all -j SNAT --to 5.6.7.8

https://forums.centos.org/viewtopic.php?t=71241の投稿から変更したもの

$ firewall-cmd --permanent --direct --add-rule ipv4 nat POSTROUTING 0 -d 10.x.x.x -p udp --dport 162 -j SNAT --to 10.x.x.204

少し異なる質問の解決策としてですが、よくわかりません。私は正しいですか。

4

0 に答える 0