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

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

2、此设置必须永久有效

答:

# 配置转发端口
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

 


更多详情:https://www.cnblogs.com/xiangsikai/p/10740695.html

 

相关文章:

  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2022-01-14
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2021-11-13
  • 2021-08-27
  • 2021-12-24
相关资源
相似解决方案