hetzner ufw settings

This commit is contained in:
Henrik Bakken
2025-09-17 21:16:38 +02:00
parent b70757a156
commit c88cb8d559
+3
View File
@@ -33,6 +33,9 @@ runcmd:
- ufw allow 2222 - ufw allow 2222
- ufw allow 51820/udp - ufw allow 51820/udp
- ufw allow in on hjarl - ufw allow in on hjarl
- ufw allow in on cni0
- ufw allow in on flannel.1
- ufw allow routed
- ufw enable - ufw enable
- sed -i -e '/^\(#\|\)PermitRootLogin/s/^.*$/PermitRootLogin no/' /etc/ssh/sshd_config - sed -i -e '/^\(#\|\)PermitRootLogin/s/^.*$/PermitRootLogin no/' /etc/ssh/sshd_config
- sed -i -e '/^\(#\|\)PasswordAuthentication/s/^.*$/PasswordAuthentication no/' /etc/ssh/sshd_config - sed -i -e '/^\(#\|\)PasswordAuthentication/s/^.*$/PasswordAuthentication no/' /etc/ssh/sshd_config