Martineau
Part of the Furniture
yes, i rebooted more times.....another output....
Code:admin@RT-AC3200-0000:/jffs/scripts# ./IPSET_Block.sh (IPSET_Block.sh): 4241 v3.04 © 2016-2017 Martineau, Dynamic IPSET Blacklist banning request..... Summary Blacklist: 24 Successful blocks! ( 46 IPs currently banned - 38 added since: Apr 30 19:00 ), Entries auto-expire after 168:00:00 hrs
So clearly there is nothing wrong with my script
![Stick Out Tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
Unfortunately many scripts are not coded to accommodate the situation where they may be called multiple times, rather than just the once at boot time.
![Oops! :oops: :oops:](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f633.png)
I do try to code my scripts to always delete any duplicate rules, but I suspect that you have a possible timing issue with firewall-start and may have to protect the script from running more than once concurrently.
NOTE: If you define a USB disk location for the $DIR variable in my IPSET_Block.sh script, it will allow the script to restore the Banned list of IPs rather than create an empty Blacklist IPSET each time you reboot.