Skip to content
Snippets Groups Projects
user avatar
virus2500 authored
d5721b11
History
Name Last commit Last update
README.md
blacklist.txt
blocklist.pl
whitelist.txt

blocklist-with-ipset

Use at your own risk :)

Create an ipset based blocklist from an text file (downloaded from e.g. blocklist.de)

V1.0.2: Added a whitelist and blacklist

!!! IMPORTANT !!!! You will need to install ipset!

Then open the blocklist.pl with your favorite text Editor and specify where your binarys are located.

(These can be found via "which" e.g. "which iptables")

my $iptables = "/sbin/iptables";

my $ipset = "/usr/sbin/ipset";

my $grep = "/bin/grep";

my $rm = "/bin/rm";

my $wget = "/usr/bin/wget";