ansible-personal/roles
Alan Orth c2a92269e4
roles/common: Add ipsets of abusive IPs to firewalld
This uses the ipsets feature of the Linux kernel to create lists of
IPs (though could be MACs, IP:port, etc) that we can block via the
existing firewalld zone we are already using. In my testing it works
on CentOS 7, Ubuntu 16.04, and Ubuntu 18.04.

The list of abusive IPs currently comes from HPC's systemd journal,
where I filtered for hosts that had attempted and failed to log in
over 100 times. The list is formatted with tidy, for example:

    $ tidy -xml -iq -m -w 0 roles/common/files/abusers-ipv4.xml

See: https://firewalld.org/2015/12/ipset-support
2019-10-05 12:28:30 +03:00
..
common roles/common: Add ipsets of abusive IPs to firewalld 2019-10-05 12:28:30 +03:00
mariadb roles/mariadb: Remove login_unix_socket from .my.cnf 2019-09-14 18:32:26 +03:00
munin roles/munin: Don't use loop when installing one package 2018-04-02 15:51:29 +03:00
nginx roles/nginx: Fix hardcoded "stretch" release in sources 2019-09-15 16:03:17 +03:00
php-fpm roles/php-fpm: Fix Ansible template parsing issue 2019-07-23 18:32:27 +03:00