Firewalld: Difference between revisions

From DWIKI
mNo edit summary
Line 5: Line 5:
*[https://www.liquidweb.com/kb/an-introduction-to-firewalld/ cheatsheet]
*[https://www.liquidweb.com/kb/an-introduction-to-firewalld/ cheatsheet]


=FAQ=
=HOWTO=
==show rules==
firewall-cmd --list-all


==add service==  
==add service==  

Revision as of 10:51, 23 February 2023

Redhat firewall interface

Links

HOWTO

show rules

firewall-cmd --list-all

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'