gctwnl wrote:I downloaded the gen_blacklist.sh script. When I test-run it on my macOS Sierra (BSD compatible) system, it chokes on 'declare -A', 'readlink', and some syntax error on line 416. Is this Linux-only bash, perhaps?
I must run it locally on the EdgeRouter? I'd rather not do that for stuff I haven't thoroughly tested and looked at.
G
Not really "linux only" ... but Mac bash is ancient (IIRC 3.x or something like that), so a script written in a more modern version (IIRC, most linux distros run 4.2) cannot be expected to run. Also, the scripts provided in this thread are only around 100 lines. Though admittedly, I'm not familiar with a "gen_blacklist.sh" script being explicitly called out / linked in this thread.
Of course you must run it on the ER, how else do you expect the script to update firewall tables if not run on the device whose firewall you're going to be updating?