Firewalld: Difference between revisions

From Halfface
Jump to navigation Jump to search
Line 12: Line 12:
  FedoraWorkstation
  FedoraWorkstation
   interfaces: enp1s0
   interfaces: enp1s0
=list zone configuration=
sudo firewall-cmd --zone=public --list-all
public
  target: default
  icmp-block-inversion: no
  interfaces:
  sources:
  services: dhcpv6-client mdns ssh
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

Revision as of 18:50, 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

list zone configuration

sudo firewall-cmd --zone=public --list-all
public
 target: default
 icmp-block-inversion: no
 interfaces: 
 sources: 
 services: dhcpv6-client mdns ssh
 ports: 
 protocols: 
 masquerade: no
 forward-ports: 
 source-ports: 
 icmp-blocks: 
 rich rules: