当前位置:   article > 正文

centos7防火墙设置_icmp-block-inversion: no

icmp-block-inversion: no

打开1000端口示例:

#查看接口所属区域

[fuyouwei@localhost 下载]$ firewall-cmd --get-zone-of-interface=wlp4s0
public

#在public上开启端口10000/tcp

[fuyouwei@localhost 下载]$ firewall-cmd --permanent --zone=public --add-port=10000/tcp

success

#重新载入并查看规则

[fuyouwei@localhost 下载]$ firewall-cmd --reload
success

[fuyouwei@localhost 下载]$ firewall-cmd --zone=public --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: wlp4s0
  sources:
  services: ssh dhcpv6-client ipp-client mdns ipp
  ports: 12694/tcp 12694/udp 10000/tcp
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:





声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/552550
推荐阅读
相关标签
  

闽ICP备14008679号