firewall-cmd 常用操作

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --permanent --zone=public --remove-port=80/tcp

firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.188.222" port protocol="tcp" port="3306" accept"
firewall-cmd --permanent --remove-rich-rule="rule family="ipv4" source address=" 192.168.1.100" port protocol="tcp" port="3306" accept"

firewall-cmd --reload