redhat27
Very Senior Member
Since I had initially started to port the peer guardian implementation in the asus wiki page to ipset v6, I noticed that simply changing the v4 commands for v6 does not work, as found by @amigohd
This led me to use awk to separate out IP ranges to CIDR notation and have two sets created for ipset v6 implementation: One for single IPs and one for CIDR.
Ipset v4, still uses iptreemap hashtype, so there is no change in that area.
This, and the fact that all free downloads from the iblocklist site appear to obey the same format, let me to create a generic ipset loader for data provided in zipped IP range format.
So the script has a one line control of all the target lists from iBlocklist you'd like to use:
For example, if you were to implement the current peerguardian, for example, you'd use
You can block traffic from Tor nodes and other anonymizers by including List10:
Want to block anyone from playing Second Life? Block Linden labs using (with v2 or v3 script)
Known hackers with dshield using List15
Webmasters can block hostile spiders using List13
Hijacked and spam can be blocked using List14
You can combine as many lists as you'd like on the BLOCKLIST_INDEXES
The possibilities are quite large as what you can block
Here is the version2 script in my git repo. It offers a more lists and options over version 1. Feel free to use whichever one you like.
The latest v2 script has undergone several changes. Please see post #44 for an update summary
Please feel free to test it and provide feedback. If the script is useful enough,I'll include it in the wiki Its now in the wiki
This led me to use awk to separate out IP ranges to CIDR notation and have two sets created for ipset v6 implementation: One for single IPs and one for CIDR.
Ipset v4, still uses iptreemap hashtype, so there is no change in that area.
This, and the fact that all free downloads from the iblocklist site appear to obey the same format, let me to create a generic ipset loader for data provided in zipped IP range format.
So the script has a one line control of all the target lists from iBlocklist you'd like to use:
For example, if you were to implement the current peerguardian, for example, you'd use
orBLOCKLIST_INDEXES="2"
BLOCKLIST_INDEXES="2 11"
You can block traffic from Tor nodes and other anonymizers by including List10:
BLOCKLIST_INDEXES="10"
Want to block anyone from playing Second Life? Block Linden labs using (with v2 or v3 script)
BLOCKLIST_INDEXES="49"
Known hackers with dshield using List15
BLOCKLIST_INDEXES="15"
Webmasters can block hostile spiders using List13
BLOCKLIST_INDEXES="13"
Hijacked and spam can be blocked using List14
BLOCKLIST_INDEXES="14"
You can combine as many lists as you'd like on the BLOCKLIST_INDEXES
The possibilities are quite large as what you can block
Here is the version2 script in my git repo. It offers a more lists and options over version 1. Feel free to use whichever one you like.
The latest v2 script has undergone several changes. Please see post #44 for an update summary
Please feel free to test it and provide feedback. If the script is useful enough,
Last edited: