====== Firewalld ======
===== Installation =====
sudo apt -y install firewalld
sudo firewall-cmd --zone=public --change-interface=eno2
===== Ouverture des ports =====
* 22/tcp **SSH**
* 80/tcp **HTTP**
* 443/tcp **HTTPS**
Pour ouvrir un port avec Firewalld:
sudo firewall-cmd --permanent --zone=public --add-service=ssh
sudo firewall-cmd --reload
===== Desactiver IPV6 =====
Append below lines in /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
Add the AddressFamily line to sshd_config :
# vi /etc/ssh/sshd_config
....
AddressFamily inet
....
Restart SSHD
systemctl restart sshd