FirewallD Flashcards
To Enable FirewallD
systemctl enable
To disable FirewallD
systemctl disable
To start Firewalld
systemctl start
To stop firewallD
systemctl stop
To view the status of FirewallD
firewall-cmd –state
or
systemctl status firewalld
To see the default zone
firewall-cmd –get -default-zone
To change the default zone
firewall-cmd –set-default-zone= work
To see the zones used by the network interface
firewall-cmd –get -active-zones
To see the area of an interface
firewall-cmd –get -zone-of-interface=eth0
To change the zone of an interface via firewalld
firewall-cmd –zone= work –change-interface=eth0
To change the zone of an interface via Network manager
nmcli connection modify eth0 connection.zone work
To see the zones used by the network interfaces
firewall-cmd –get -active-zones
To see the configuration of a specific zone
firewall -cmd –zone=public –list -all
To see the configuration of all zones
firewall-cmd –list -all-zones
Create a new area
firewall-cmd –permanent –new-zone docker