hetzner ufw settings
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user