Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running script - still maintained? #6

Open
inguy24 opened this issue Jun 17, 2021 · 0 comments
Open

Error when running script - still maintained? #6

inguy24 opened this issue Jun 17, 2021 · 0 comments

Comments

@inguy24
Copy link

inguy24 commented Jun 17, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant