Firewalld: Difference between revisions
From DWIKI
mNo edit summary |
m (→Links) |
||
Line 3: | Line 3: | ||
=Links= | =Links= | ||
*https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7 | *https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7 | ||
*[https://www.liquidweb.com/kb/an-introduction-to-firewalld/ cheatsheet] | |||
=FAQ= | =FAQ= |
Revision as of 13:09, 9 April 2020
Redhat firewall interface
Links
- https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7
- cheatsheet
FAQ
add service
firewall-cmd --zone=public --add-service=https firewall-cmd --permanent --zone=public --add-service=https
add port
firewall-cmd --zone=public --add-port=5000/tcp firewall-cmd --permanent --zone=public --add-port=5000/tcp
or
firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="1.2.3.4/32" port protocol="tcp" port="4567" accept'