Firewalld: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
=open port in default zone= | =open port in default zone= | ||
firewall-cmd --add-port=8080/tcp | firewall-cmd --add-port=8080/tcp | ||
=get active zones= | |||
firewall-cmd --get-active-zones | |||
FedoraWorkstation | |||
interfaces: enp1s0 |
Revision as of 18:47, 27 February 2020
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