Merlin@RT-AC86U-CE18:/jffs/scripts# ./get_aws.sh
errexit off
noglob off
ignoreeof off
interactive off
monitor off
noexec off
stdin off
xtrace on
verbose off
noclobber off
allexport off
notify off
nounset off
vi off
pipefail off
+ basename ./get_aws.sh
+ logger -t (get_aws.sh) 15587 Starting ./get_aws.sh.
+ wget
https://ip-ranges.amazonaws.com/ip-ranges.json -O /jffs/scripts/ip-ranges.json
--2018-02-28 13:51:45--
https://ip-ranges.amazonaws.com/ip-ranges.json
Resolving ip-ranges.amazonaws.com... 13.33.74.37, 13.33.74.94, 13.33.74.21, ...
Connecting to ip-ranges.amazonaws.com|13.33.74.37|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 156545 (153K) [application/json]
Saving to: '/jffs/scripts/ip-ranges.json'
/jffs/scripts/ip-ranges.json 100%[=============================================================>] 152.88K --.-KB/s in 0.04s
2018-02-28 13:51:45 (3.43 MB/s) - '/jffs/scripts/ip-ranges.json' saved [156545/156545]
+ ipset create AMAZONAWS hash:net family inet hashsize 1024 maxelem 65536
+ jq -r .prefixes[] | select(.region=="us-east-1")
+ ipset add AMAZONAWS {
ipset v6.32: Syntax error: cannot parse {: resolving to IPv4 address failed
+ ipset add AMAZONAWS "ip_prefix":
ipset v6.32: Syntax error: cannot parse "ip_prefix":: resolving to IPv4 address failed
+ ipset add AMAZONAWS "18.204.0.0/14",
ipset v6.32: Syntax error: '14",' is invalid as number
it just keeps going until the end:
+ unset IPv4
+ basename ./get_aws.sh
+ logger -t (get_aws.sh) 17608 Ending... ./get_aws.sh.