1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-12-23 15:22:12 -05:00

Use firewalld block zone on Fedora Workstation

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-09-26 15:20:38 -07:00 committed by GitHub
parent 9f89e65e0d
commit c5cbbc6c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,11 +34,7 @@ OPTIONS="-F 1"' | sudo tee /etc/sysconfig/chronyd
sudo systemctl restart chronyd
# Setup Firewalld
sudo firewall-cmd --permanent --remove-port=1025-65535/udp
sudo firewall-cmd --permanent --remove-port=1025-65535/tcp
sudo firewall-cmd --permanent --remove-service=mdns
sudo firewall-cmd --permanent --remove-service=ssh
sudo firewall-cmd --permanent --remove-service=samba-client
sudo firewall-cmd --set-default-zone=block
sudo firewall-cmd --reload
# Harden SSH