amarcu5 / edgeos-blacklist Goto Github PK
View Code? Open in Web Editor NEWAutomatically updates IP blacklist for EdgeOS (supports IPv4 & IPv6)
License: GNU General Public License v3.0
Automatically updates IP blacklist for EdgeOS (supports IPv4 & IPv6)
License: GNU General Public License v3.0
Hi I am trying to utilize your script with version 2.0.9 for Edgerouter. Your script seems to have a syntax error - output is as follows:
root@router:/# sh ./config/scripts/post-config.d/update-blacklist.sh
./config/scripts/post-config.d/update-blacklist.sh: command substitution: line 60: syntax error near unexpected token (' ./config/scripts/post-config.d/update-blacklist.sh: command substitution: line 60:
{ curl -fsS --tr-encoding "$LIST" | tee >(grep -Eo '((25[0-5]|(2[0-4]|1?[[:digit:]])?[[:digit:]]).){3}(25[0-5]|(2[0-4]|1?[[:digit:]])?[[:digit:]])(/(3[0-2]|[12]?[[:digit:]]))?([[:space:]-]+((25[0-5]|(2[0-4]|1?[[:digit:]])?[[:digit:]]).){3}(25[0-5]|(2[0-4]|1?[[:digit:]])?[[:digit:]]))?' | sed -e 's/[[:space:]-]+/-/g' -e "s/./-A -! $NEWGROUP \0 $2/") >(grep -Eo '([[:xdigit:]]{1,4}:){1,7}:|([[:xdigit:]]{1,4}:){1,5}(:[[:xdigit:]]{1,4}){1,2}|([[:xdigit:]]{1,4}:){1,4}(:[[:xdigit:]]{1,4}){1,3}|([[:xdigit:]]{1,4}:){1,3}(:[[:xdigit:]]{1,4}){1,4}|([[:xdigit:]]{1,4}:){1,2}(:[[:xdigit:]]{1,4}){1,5}|[[:xdigit:]]{1,4}:(:[[:xdigit:]]{1,4}){1,6}|:((:[[:xdigit:]]{1,4}){1,7}|:)|fe80:(:[[:xdigit:]]{0,4}){0,4}%[[:alnum:]]+|(([[:xdigit:]]{1,4}:){7}|([[:xdigit:]]{1,4}:){1,6}:)[[:xdigit:]]{1,4}|(::(f{4}(:0{1,4})?:)?|([[:xdigit:]]{1,4}:){1,4}:)((25[0-5]|(2[0-4]|1?[[:digit:]])?[[:digit:]]).){3}(25[0-5]|(2[0-4]|1?[[:digit:]])?[[:digit:]])(/(6[0-4]|[1-5]?[[:digit:]]))?' | sed "s/./-A -! $NEWGROUPv6 \0 $2/") >/dev/null | cat; } 2>&1 1>&$out)'
<13>Jun 17 13:34:48 shane: Blacklist update successful
root@router:/#
When I run IPSET LIST -NAMES is shows multiple iterations of the groups that are I think meant to be temp, but are not being destroyed. Furthermore it does not populate any of the files. When I run IPSET LIST [SETNAME] for the specific set, including the iterations, there are no members. What am I doing wrong here?
Hi, when I run this script I receive the following error:
I believe it is referring to line 72 or 73 here:
EdgeOS-Blacklist/update-blacklist.sh
Line 72 in 444b174
ubnt: Blacklist update failed ('The sets cannot be swapped: their type does not match' whilst executing 'sudo ipset swap BLACKLIST_DROPv6-21813 BLACKLIST_DROPv6')
Any idea ?
When script parses data mixed with IPv6 and IPv6 address (http://www.myip.ms/files/blacklist/general/latest_blacklist.txt) ipset errors out. Sample error:
ubnt: Blacklist update failed ('The set with the given name does not exist' whilst executing 'sudo ipset -A -A -! BLACKLIST_DROPv6-7962 240e:ee:2f0:c7fa:80b1:5cdc:c04:ef3e ')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.