ansible-personal/roles/common/files
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
..
etc roles/common: Adjust cron-apt stuff 2015-08-22 23:39:22 +03:00
ssh-pub-keys roles/common: Remove old SSH public key 2019-07-23 16:07:39 +03:00
00-persistent-journal.conf roles/common: Add missing systemd-journald config 2018-12-20 09:59:13 +02:00
abusers-ipv4.xml roles/common: Add ipsets of abusive IPs to firewalld 2019-10-05 12:28:30 +03:00
abusers-ipv6.xml roles/common: Add ipsets of abusive IPs to firewalld 2019-10-05 12:28:30 +03:00
tarsnaprc roles/common: Add task to copy tarsnaprc 2018-05-20 12:51:02 +03:00