Firewalld防火墙

1.1 添加策略
firewall-cmd --permanent --zone=public --add-rich-rule="rule family="ipv4" source address="10.0.0.4" port protocol="tcp" port="20208" accept"
firewall-cmd --reload
firewall-cmd --list-rich-rules
firewall-cmd --list-all --zone=public
1.2 删除策略
firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="10.0.0.4" port protocol="tcp" port="20208" accept"
firewall-cmd --reload
firewall-cmd --list-rich-rules
firewall-cmd --list-all --zone=public