Forrest logo
back to context overview

firewall-cmd

List of commands for firewall-cmd:

  • firewall-cmd:tldr:61a69 firewall-cmd: Permanently close the port for a service in the specified zone (like port 80 when in the `public` zone).
    $ firewall-cmd --permanent --zone=${public} --remove-service=${http}
    try on your machine
    explain this command
  • firewall-cmd:tldr:8b46a firewall-cmd: Reload firewalld to force rule changes to take effect.
    $ firewall-cmd --reload
    try on your machine
    explain this command
  • firewall-cmd:tldr:8dbc7 firewall-cmd: Permanently open two arbitrary ports in the specified zone.
    $ firewall-cmd --permanent --zone=${public} --add-port=${25565-tcp} --add-port=${19132-udp}
    try on your machine
    explain this command
  • firewall-cmd:tldr:933d8 firewall-cmd: Permanently move the interface into the block zone, effectively blocking all communication.
    $ firewall-cmd --permanent --zone=${block} --change-interface=${enp1s0}
    try on your machine
    explain this command
  • firewall-cmd:tldr:a43a5 firewall-cmd: Permanently open the port for a service in the specified zone (like port 443 when in the `public` zone).
    $ firewall-cmd --permanent --zone=${public} --add-service=${https}
    try on your machine
    explain this command
  • firewall-cmd:tldr:c347c firewall-cmd: View the available firewall zones.
    $ firewall-cmd --get-active-zones
    try on your machine
    explain this command
  • firewall-cmd:tldr:cadb1 firewall-cmd: View the rules which are currently applied.
    $ firewall-cmd --list-all
    try on your machine
    explain this command
back to context overview