配置firewalld端口转发

题:在系统 system1 设定端口转发,要求:html

一、在172.24.8.0/24网络中的系统,访问system1的本地端口 5423 将被转发到 80网络

二、此设置必须永久有效tcp

答:spa

# 配置转发端口
firewall-cmd --permanent --zone=public --add-rich-rule 'rule family="ipv4" source address="172.24.8.0/24" forward-port port="5423" protocol="tcp" to-port="80"'

# 生效配置 firewall-cmd --reload

 


更多详情:http://www.javashuo.com/article/p-peofoqqc-em.htmlcode

相关文章
相关标签/搜索