Jun 28, 2024

ufw and firewalld

 ufw

  • ufw allow 22
  • ufw allow 22/udp
  • ufw status
firewalld
  • firewall-cmd --list-all
  • firewall-cmd --list-services
  • systemctl start firewalld
  • systemctl stop firewalld
  • systemctl disable firewalld
  • firewall-cmd --list-services
  • firewall-cmd --list-ports
  • firewall-cmd --add-port=22/tcp
    

https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/security_guide/sec-controlling_traffic#sec-Disabling_All_Traffic_in_Case_of_Emergency_Using_CLI

NOT_ENABLED: not in 'public'