AlmaLinux: Firewalld Setup

RHEL systems use firewalld.

Check status: systemctl status firewalld

Allow SSH & HTTP:

firewall-cmd --permanent --add-service=ssh
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload
  • 0 用戶發現這個有用
這篇文章有幫助嗎?

相關文章

AlmaLinux: First Steps & Updates

Welcome to AlmaLinux!Update your system using DNF:dnf update -yInstall EPEL repository (Extra...

AlmaLinux: Installing Fail2Ban

Requires EPEL repo.dnf install fail2ban fail2ban-firewalld -yEnable and start:systemctl enable...

AlmaLinux: Securing SSH (Root & Keys)

1. Disable Root LoginEdit config: nano /etc/ssh/sshd_configSet PermitRootLogin no.2. Restart...