ansible-personal/roles/common/files
Alan Orth d7c34a30a3
roles/common: Add Spamhaus DROP lists to firewalld ipsets
This configures the recommended DROP, EDROP, and DROPv6 lists from
Spamhaus as ipsets in firewalld. First we copy an empty placeholder
ipset to seed firewalld, then we use a shell script to download the
real lists and activate them. The same shell script is run daily as
a service (update-spamhaus-lists.service) by a systemd timer.

I am strictly avoiding any direct ipset commands here because I want
to make sure that this works on older hosts where ipsets is used as
well as newer hosts that have moved to nftables such as Ubuntu 20.04.
So far I have tested this on Ubuntu 16.04, 18.04, and 20.04, but ev-
entually I need to abstract the tasks and run them on CentOS 7+ as
well.

See: https://www.spamhaus.org/drop/
2021-07-21 09:34:51 +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: Update list of abusive IP addresses 2021-07-04 11:15:32 +03:00
abusers-ipv6.xml roles/common: Update list of abusive IP addresses 2021-07-04 11:15:32 +03:00
spamhaus-ipv4.xml roles/common: Add Spamhaus DROP lists to firewalld ipsets 2021-07-21 09:34:51 +03:00
spamhaus-ipv6.xml roles/common: Add Spamhaus DROP lists to firewalld ipsets 2021-07-21 09:34:51 +03:00
tarsnaprc roles/common: Add task to copy tarsnaprc 2018-05-20 12:51:02 +03:00
update-spamhaus-lists.service roles/common: Add Spamhaus DROP lists to firewalld ipsets 2021-07-21 09:34:51 +03:00
update-spamhaus-lists.sh roles/common: Add Spamhaus DROP lists to firewalld ipsets 2021-07-21 09:34:51 +03:00
update-spamhaus-lists.timer roles/common: Add Spamhaus DROP lists to firewalld ipsets 2021-07-21 09:34:51 +03:00