updateBogons/README.md

14 lines
798 B
Markdown
Raw Permalink Normal View History

2022-05-12 07:39:30 +00:00
# updateBogons
2022-05-12 07:41:45 +00:00
This script fetches a list of bogons from team cymru (see https://team-cymru.com/community-services/bogon-reference/) and updates the corresponding sets in the firewall.
The bogon list is downloaded then compared to the current list stored on the disk (got from the previous run). If the two list differ the corresponding nftables set is flushed then filled with the new list. This operation is atomic.
2022-05-12 07:47:23 +00:00
## Installation
2022-05-17 07:37:59 +00:00
This script need root privileges. The included systemd service files assumes that a group "nftables" exists and has the right to execute the command `nft` without password.
2022-05-12 07:47:23 +00:00
The default working directory is `/var/cache/updateBogons/` and is automatically created if it does not exist.
2022-05-12 07:50:51 +00:00
The `updateBogons` script must be placed in `/usr/local/bin/updateBogons`