You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: