其它规则
管理rich规则
rule
[source]
[destination]
service|port|protocol|icmp-block|masquerade|forward-port
[log]
[audit]
[accept|reject|drop]
man 5 firewalld.richlanguage
规则
rich规则选项
rich规则示例
firewall-cmd --permanent --zone=classroom --add-rich-rule=‘rule
family=ipv4 source address=192.168.0.11/32 reject‘
firewall-cmd --add-rich-rule=‘rule service name=ftp limit value=2/m accept’
firewall-cmd --permanent --add-rich-rule=‘rule protocol value=esp drop‘
firewall-cmd --permanent --zone=vnc --add-rich-rule=‘rule family=ipv4
source address=192.168.1.0/24 port port=5900-5905 protocol=tcp accept‘
rich日志规则
rich日志规则实例
firewall-cmd --permanent --zone=work --add-rich-rule=‘rule service
name="ssh" log prefix="ssh " level="notice" limit value="3/m" accept
firewall-cmd --add-rich-rule=‘rule family=ipv6 source
address="2001:db8::/64" service name="dns" audit limit value="1/h" reject‘ --timeout=300
原文:https://www.cnblogs.com/duanxin1/p/9860913.html