centos 7 设置转发

Posted 天占

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos 7 设置转发相关的知识,希望对你有一定的参考价值。

firewall-cmd --zone=public --add-masquerade --permanent



firewall-cmd --zone=public --add-forward-port=port=8089:proto=tcp:toport=8089:toaddr=172.31.12.45 --permanent

firewall-cmd --reload

以上是关于centos 7 设置转发的主要内容,如果未能解决你的问题,请参考以下文章