Firewalld

From Halfface
Jump to navigation Jump to search

start firewalld

systemctl start firewalld

look at state of firewalld

firewall-cmd --state

Which is the default zone

sudo firewall-cmd --get-default-zone
FedoraWorkstation

open port in default zone

firewall-cmd --add-port=8080/tcp

get active zones

firewall-cmd --get-active-zones
FedoraWorkstation
  interfaces: enp1s0