mirror of
https://github.com/2martens/terraform.git
synced 2026-10-17 19:46:52 +02:00
Added metrics endpoint to ufw allow list
This commit is contained in:
@@ -15,9 +15,10 @@ runcmd:
|
||||
- printf "[sshd]\nenabled = true\nbanaction = iptables-multiport" > /etc/fail2ban/jail.local
|
||||
- systemctl enable fail2ban
|
||||
- ufw allow OpenSSH
|
||||
- ufw allow 16443 comment Kubernetes
|
||||
- ufw allow 16443 comment "Kubernetes API endpoint"
|
||||
- ufw allow 80 comment HTTP
|
||||
- ufw allow 443 comment HTTPS
|
||||
- ufw allow to ${node_ip} port 9100 comment "Metrics endpoint"
|
||||
- ufw enable
|
||||
- sed -i -e '/^\(#\|\)PermitRootLogin/s/^.*$/PermitRootLogin no/' /etc/ssh/sshd_config
|
||||
- sed -i -e '/^\(#\|\)PasswordAuthentication/s/^.*$/PasswordAuthentication no/' /etc/ssh/sshd_config
|
||||
|
||||
Reference in New Issue
Block a user