Firewalld: Difference between revisions
From DWIKI
m (→FAQ) |
mNo edit summary |
||
Line 13: | Line 13: | ||
firewall-cmd --zone=public --add-port=5000/tcp | firewall-cmd --zone=public --add-port=5000/tcp | ||
firewall-cmd --permanent --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' |
Revision as of 16:19, 8 August 2017
Redhat firewall interface
Links
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'