Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> OS >> Unix >> Linux >> RHEL >> 7 >> commands >> firewall-cmd >> Examples of firewall-cmd command usage

 

Purpose Command
get help on the command firewall-cmd --help
change the zone for network interface firewall-cmd --zone=home --change-interface=eth0
list all zones (default and custom) firewall-cmd --get-zones 
list a list of active zones firewall-cmd --get-active-zones
add new custom zone permanently

firewall-cmd --permanent --new-zone=zonename

firewall-cmd --reload

  firewall-cmd --permanent --add-masquerade
enable port forwarding permanent from tcp 8888 to tcp 80

firewall-cmd --permanent --add-forward-port=port=8888:proto=tcp:toport=80

firewall-cmd --reload

   

 

[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]