例一:在域 172.24.0.0/24 内的客户端不能访问您的虚拟机系统
(一)
[root@desktop0 ~]# firewall-cmd --add-rich-rule "rule family="ipv4"
source address="172.24.0.0/24" service name="ssh" reject "success
[root@desktop0 ~]# firewall-cmd --add-rich-rule "rule family="ipv4"
source address="172.24.0.0/24" service name="ssh" reject " --per
success
(二)
[root@server0 ~]# firewall-cmd --add-rich-rule "rule family="ipv4"
source address="172.25.0.10" port port="3260" protocol="tcp" accept"
[root@server0 ~]# firewall-cmd --add-rich-rule "rule family="ipv4"