Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 791 Bytes

firewalld.md

File metadata and controls

24 lines (19 loc) · 791 Bytes

Allow HTTPS traffic in the public zone:

firewall-cmd --zone=public --permanent --add-service=https
firewall-cmd --reload

Disallow port 123 TCP traffic in the block zone.

firewall-cmd --zone=block --permanent --remove-port 123/tcp
firewall-cmd --reload

firewall-cmd options

  • --list-ports or --list-services = Show allowed ports/services.
  • --list-all-zones = Show firewalld rules for both public and private zones.

  • --state = Check if firewalld is running.
  • --zone=private --add-interface=ens32 = Attach zone to network interface.