mirror of
https://github.com/2martens/terraform.git
synced 2026-10-17 16:46:52 +02:00
Adds a first draft of a module for a docker network. Outstanding: Nginx configuration.
9 lines
211 B
Bash
9 lines
211 B
Bash
#!/bin/sh
|
|
|
|
printf "[sshd]\nenabled = true\nbanaction = iptables-multiport" > /etc/fail2ban/jail.local
|
|
systemctl enable fail2ban
|
|
|
|
ufw allow OpenSSH
|
|
ufw allow 80 comment HTTP
|
|
ufw allow 443 comment HTTPS
|
|
ufw enable |