Difference between revisions of "Red Hat / Centos firewall"
From MyWiki
Line 7: | Line 7: | ||
cat /etc/firewalld/zones/public.xml | cat /etc/firewalld/zones/public.xml | ||
</source> | </source> | ||
+ | firewall-cmd --state<br> |
Revision as of 11:09, 19 July 2016
Try this command firewall-cmd --permanent --zone=public --add-rich-rule="rule family="ipv4" \ source address="1.2.3.4/32" \ port protocol="tcp" port="4567" accept" Check the zone file later to inspect the XML configuration cat /etc/firewalld/zones/public.xml
firewall-cmd --state