blob: 12eeac2253716f63809bacf4b3815dcd2c97af7c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
class base_installation::firewall inherits base_installation {
ensure_packages(["whois"], { 'install_options' => '--asdeps' })
class { 'fail2ban':
logtarget => 'SYSLOG',
backend => 'systemd'
}
fail2ban::jail { 'sshd':
backend => 'systemd',
port => 'ssh',
filter => 'sshd',
maxretry => 10,
bantime => 86400,
logpath => '',
order => 10
}
contain "fail2ban"
}
|