Firewall

De WikiLICC
Ir para: navegação, pesquisa

Dicas para usar/configurar firewall no Fedora.

firewall-cmd --state             # verifica estado
firewall-cmd --get-active-zones  #
firewall-cmd --reload            
firewall-cmd --complete-reload


firewall-cmd --get-active-zones
firewall-cmd --get-zone-of-interface=enp2s15


firewall-cmd --zone=public --list-interfaces
firewall-cmd --zone=public --list-all
   public
    interfaces: 
    services: mdns dhcpv6-client ssh
    ports: 
    forward-ports: 
    icmp-blocks: source-quench

firewall-cmd --get-service
firewall-cmd --permanent --add-service=http    # habilita apache passar
firewall-cmd --permanent --add-service=https   # pelo firewall