当前位置: 代码迷 >> 综合 >> How to manage firewall based on iptables command in Centos7
  详细解决方案

How to manage firewall based on iptables command in Centos7

热度:93   发布时间:2023-12-15 00:42:55.0

防火墙中打开跟踪器端口(默认为 22122):

# vi /etc/sysconfig/iptables

添加如下端口行:

## FastDFS Tracker Port
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22122 -j ACCEPT

重启防火墙:

# service iptables restart
  相关解决方案