diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/base_configuration/manifests/init.pp | 15 | ||||
m--------- | modules/fail2ban | 0 |
2 files changed, 15 insertions, 0 deletions
diff --git a/modules/base_configuration/manifests/init.pp b/modules/base_configuration/manifests/init.pp index dca17b3..f432e29 100644 --- a/modules/base_configuration/manifests/init.pp +++ b/modules/base_configuration/manifests/init.pp | |||
@@ -58,4 +58,19 @@ class base_configuration ( | |||
58 | order => 15, | 58 | order => 15, |
59 | include => '/etc/pacman.d/mirrorlist' | 59 | include => '/etc/pacman.d/mirrorlist' |
60 | } | 60 | } |
61 | |||
62 | ensure_packages(["whois"], { 'install_options' => '--asdeps' }) | ||
63 | class { 'fail2ban': | ||
64 | logtarget => 'SYSLOG', | ||
65 | backend => 'systemd' | ||
66 | } | ||
67 | fail2ban::jail { 'sshd': | ||
68 | backend => 'systemd', | ||
69 | port => 'ssh', | ||
70 | filter => 'sshd', | ||
71 | maxretry => 10, | ||
72 | bantime => 86400, | ||
73 | logpath => '', | ||
74 | order => 10 | ||
75 | } | ||
61 | } | 76 | } |
diff --git a/modules/fail2ban b/modules/fail2ban new file mode 160000 | |||
Subproject 40b2dc48cfe7bc44cf8d85887614482892f39a6 | |||