https://github.com/moltenbit/ufw-automatic-ip-blacklisting
Automatic import of UFW rules for daily generated IP-blacklists.
https://github.com/moltenbit/ufw-automatic-ip-blacklisting
blacklists security threats ufw
Last synced: 6 months ago
JSON representation
Automatic import of UFW rules for daily generated IP-blacklists.
- Host: GitHub
- URL: https://github.com/moltenbit/ufw-automatic-ip-blacklisting
- Owner: moltenbit
- Created: 2023-11-08T21:18:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-09T18:36:35.000Z (almost 2 years ago)
- Last Synced: 2025-04-14T01:17:44.943Z (6 months ago)
- Topics: blacklists, security, threats, ufw
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UFW-Automatic-IP-Blacklisting
Downloads known malicious IP adresses daily from [IPsum](https://github.com/stamparm/ipsum) and blocks them with UFW.
CAREFUL: REALLY SLOW!
```
# create dir for blacklist files
:~$ mkdir /opt/ip-blacklist# download the blacklist scripts to the dir
:~$ wget https://raw.githubusercontent.com/sysadt/UFW-Automatic-IP-Blacklisting/main/ip-blacklist.sh -P /opt/ip-blacklist
:~$ wget https://raw.githubusercontent.com/sysadt/UFW-Automatic-IP-Blacklisting/main/update-blacklist.sh -P /opt/ip-blacklist# change permissions
:~$ chmod 700 /opt/ip-blacklist/ip-blacklist.sh
:~$ chmod 700 /opt/ip-blacklist/update-blacklist.sh# add both scripts to crontab for daily runs
:~$ sudo crontab -e0 6 * * * /opt/ip-blacklist/update-blacklist.sh
10 6 * * * /opt/ip-blacklist/ip-blacklist.sh
```