防火墙

linux 防火墙常用命令

端口开放

1
2
3
4
5
6
# 开放
firewall-cmd --permanent --zone=public --add-port=9001/tcp
# 重载
firewall-cmd --reload
# 查看
firewall-cmd --list-all

端口开放IP规则

1
2
firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="127.0.0.1/20" port protocol="tcp" port="6002" accept"
firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="172.22.0.4/20" port protocol="tcp" port="80" accept"
发布于

2018-01-11

更新于

2022-01-11

许可协议

# 相关文章
  1.openSSL
  2.linux 常用命令
# 推荐文章
  1.PostgreSQL
  2.elasticsearch
  3.防火墙
  4.git
  5.https证书
  6.jenkins

:D 一言句子获取中...