CentOS7防火墙firewalld配置可访问端口

cd /etc/firewalld/zones

CentOS7防火墙firewalld配置可访问端口_第1张图片

这个目录下有个public.xml文件,修改或添加:


  Public
  For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.
 
 
 
 
 
 

上面的端口号即是配置的可访问端口。

 

systemctl stop firewalld

systemctl start firewalld

 

你可能感兴趣的:(Linux)