首页 > 代码库 > firewalld命令

firewalld命令

添加xxxx/24到80端口白名单:

firewall-cmd --permanent --add-rich-rule=‘rule family="ipv4" source address="x.x.x.x/24" port port="80" protocol="tcp" accept‘

firewall-cmd --complete-reload

firewall-cmd --list-all

 

firewalld命令