The problem I have with "Paste-bin" is that when I highlight it in Win 10 and copy it to a file in /jffs/scripts, it copies the line numbers and code.I suspect the fact that you have to 'try and fix the code' due to the download being 'corrupt' is the root cause of your current issues.
I have just created a test6.sh from the script hosted here
https://pastebin.com/zQ3KEe8P
and it runs fine
Code:./test6.sh init nolog (test6.sh): 21788 v3.04 © 2016-2017 Martineau, Dynamic IPSET Blacklist banning request..... (test6.sh): 21788 IPSET restore from '/tmp/mnt/RT-AC68U/IPSET_Block.config' starting..... (test6.sh): 21788 Dynamic IPSET Blacklist banning enabled. (test6.sh): 21788 Hacker Port Activity report scheduled every 06:05 daily Summary Blacklist: 0 Successful blocks! ( 3427 IPs currently banned - 0 added since: Apr 25 19:19 ), Entries auto-expire after 168:00:00 hrs ./test6.sh (test6.sh): 21957 v3.04 © 2016-2017 Martineau, Dynamic IPSET Blacklist banning request..... Summary Blacklist: 0 Successful blocks! ( 3427 IPs currently banned - 0 added since: Apr 25 19:22 ), Entries auto-expire after 168:00:00 hrs
Please try creating the script from pastebin rather than the GitHub version.
EDIT: Just created a test0.sh script from the GitHub version and that too runs correctly.
I used the version that "SweeToast" put in the wiki. That does not copy the line numbers.
By the way! I put it into firewall-start and services-start as he suggests and it seems to run ok. The last time it ran at 5pm. It listed a lot of "Banned ip's" in my syslog and the current ban said, "Blocked 210" new ip's.
So!
Maybe it's working ok now!
How can I get rid of those "Line-Numbers" from "Paste-Bin"???