Mercurial > repos > other > Puppet
comparison modules/fail2ban/templates/ibb-sshd-bad-user.epp @ 292:3e04f35dd0af
Turn Fail2ban setup into a module
We now:
* Don't have a large class outside a module
* Build "bad SSH users" config from a list
(easier to understand/see diffs in than a long line)
* Use modern EPP files
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 18 Jan 2020 15:17:03 +0000 |
parents | common/fail2ban/ibb-sshd-bad-user.conf@d2ae0b786b49 |
children | 79e5fed321fa |
comparison
equal
deleted
inserted
replaced
291:d2ae0b786b49 | 292:3e04f35dd0af |
---|---|
1 <%- | Array $bad_users | -%> | |
2 # Fail2Ban configuration file | |
3 # Author: IBBoard | |
4 | |
5 [Definition] | |
6 | |
7 # Option: failregex | |
8 # Notes.: regex to match the password failures messages in the logfile. The | |
9 # host must be matched by a group named "host". The tag "<HOST>" can | |
10 # be used for standard IP/hostname matching and is only an alias for | |
11 # (?:::f{4,6}:)?(?P<host>[\w\-.^_]+) | |
12 # Values: TEXT | |
13 # | |
14 failregex = Failed password for invalid user (<%= join($bad_users, '|') %>)? from <HOST> port [0-9]+ ssh2 | |
15 | |
16 # Option: ignoreregex | |
17 # Notes.: regex to ignore. If this regex matches, the line is ignored. | |
18 # Values: TEXT | |
19 # | |
20 ignoreregex = |