Difference between revisions of "Red Hat / Centos firewall"
From MyWiki
Line 8: | Line 8: | ||
</source> | </source> | ||
firewall-cmd --state<br> | firewall-cmd --state<br> | ||
+ | sudo systemctl start firewalld.service<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
sudo systemctl start firewalld.service