What's new

:: ipBLOCKer :: Category blocking using iptables and ipsets

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

hmm, thank you for reply but can`t access overy putty....something is wrong in my case?
Code:
admin@RT-AC3200-7180:/jffs/ipBLOCKer# sh ipBLOCKer.sh status
ipBLOCKer.sh: line 13: shopt: not found
ipBLOCKer.sh: line 14: shopt: not found
ipBLOCKer.sh: /jffs/ipBLOCKer/includes_ipBLOCKer.sh: line 29: declare: not found
ipBLOCKer.sh: /jffs/ipBLOCKer/includes_ipBLOCKer.sh: line 65: declare: not found
ipBLOCKer.sh: /jffs/ipBLOCKer/includes_ipBLOCKer.sh: line 77: declare: not found
ipBLOCKer.sh: /jffs/ipBLOCKer/includes_ipBLOCKer.sh: line 81: declare: not found
ipBLOCKer.sh: /jffs/ipBLOCKer/includes_ipBLOCKer.sh: line 87: declare: not found
ipBLOCKer.sh: /jffs/ipBLOCKer/includes_ipBLOCKer.sh: line 90: MAX_ENTRIES: parameter not set
admin@RT-AC3200-7180:/jffs/ipBLOCKer#


Yes. It seems you do not have bash.

Do read the installation steps.

If you have entware installed run the below command
Code:
 opkg install bash diffutils grep coreutils-sort coreutils-split findutils

Between, I see that you have ipBLOCKer in /jffs

If you have a USB attached to the router,
try to install ipBLOCKer on the USB
it reduces the usage of /jffs.

I need a COFFEE too as I missed your command execution.

Please do not use the below command to run ipBLOCKer
WRONG wont work
sh ipBLOCKer.sh (as ipBLOCKer is built on bash not on sh)

use ONE of the below
1.
cd ipBLOCKer
ipBLOCKer.sh status

or

2.
block status
 
Last edited:
Yes. It seems you do not have bash.

Do read the installation steps.

If you have entware installed run the below command
Code:
 opkg install bash diffutils grep coreutils-sort coreutils-split findutils

Between, I see that you have ipBLOCKer in /jffs

If you have a USB attached to the router,
try to install ipBLOCKer on the USB
it reduces the usage of /jffs.

I need a COFFEE too as I missed your command execution.

Please do not use the below command to run ipBLOCKer
WRONG wont work
sh ipBLOCKer.sh (as ipBLOCKer is built on bash not on sh)

use ONE of the below
1.
cd ipBLOCKer
ipBLOCKer.sh status

or

2.
block status

ok, i got now something in syslog.....what is next step? refresh? where to change MAX_ENTRIES: parameter not set?
Code:
May 15 15:36:39 ipBLOCKer: ######################################################################
May 15 15:36:39 ipBLOCKer: Date: Mon May 15 15:36:39 DST 2017      Device: RT-AC3200-7180       
May 15 15:36:40 ipBLOCKer: 
May 15 15:36:40 ipBLOCKer:                                ipBLOCKer
May 15 15:36:40 ipBLOCKer:                             (Version: 1.0)
May 15 15:36:40 ipBLOCKer: 
May 15 15:36:40 ipBLOCKer: Memory Status: 74.87M/249.58M      Swap Status: 0.00M/0.00M
May 15 15:36:40 ipBLOCKer: 
May 15 15:36:40 ipBLOCKer: Install: /tmp/home/root
May 15 15:36:40 ipBLOCKer: Filters: /tmp/home/root/filters
May 15 15:36:40 ipBLOCKer: Refresh: /tmp/home/root/refresh
May 15 15:36:40 ipBLOCKer: Backup : /tmp/home/root/backup
May 15 15:36:40 ipBLOCKer: Log    : /tmp/syslog.log
May 15 15:36:40 ipBLOCKer: 
May 15 15:36:40 ipBLOCKer: Space Usage: 176.0K              IPSet Version: ipset v6
May 15 15:36:40 ipBLOCKer: ______________________________________________________________________
May 15 15:36:40 ipBLOCKer:                          Total                  Total
May 15 15:36:40 ipBLOCKer: categories           IP         Hits       CIDR       Hits     
May 15 15:36:40 ipBLOCKer: ______________________________________________________________________
May 15 15:36:41 ipBLOCKer: adware               0          0          0          0         
May 15 15:36:42 ipBLOCKer: country              0          0          0          0         
May 15 15:36:43 ipBLOCKer: etf                  0          0          0          0         
May 15 15:36:44 ipBLOCKer: malware              0          0          0          0         
May 15 15:36:45 ipBLOCKer: shalla               0          0          0          0         
May 15 15:36:46 ipBLOCKer: spam                 0          0          0          0         
May 15 15:36:47 ipBLOCKer: tor-exits            0          0          0          0         
May 15 15:36:48 ipBLOCKer: custom               0          0          0          0         
May 15 15:36:49 ipBLOCKer: white-list           0          0          0          0         
May 15 15:36:49 ipBLOCKer: ______________________________________________________________________
May 15 15:36:49 ipBLOCKer: Grand Totals:        0          0          0          0         
May 15 15:36:49 ipBLOCKer: ######################################################################
 
ok, i got now something in syslog.....what is next step? refresh? where to change MAX_ENTRIES: parameter not set?
Code:
May 15 15:36:39 ipBLOCKer: ######################################################################
May 15 15:36:39 ipBLOCKer: Date: Mon May 15 15:36:39 DST 2017      Device: RT-AC3200-7180     
May 15 15:36:40 ipBLOCKer:
May 15 15:36:40 ipBLOCKer:                                ipBLOCKer
May 15 15:36:40 ipBLOCKer:                             (Version: 1.0)
May 15 15:36:40 ipBLOCKer:
May 15 15:36:40 ipBLOCKer: Memory Status: 74.87M/249.58M      Swap Status: 0.00M/0.00M
May 15 15:36:40 ipBLOCKer:
May 15 15:36:40 ipBLOCKer: Install: /tmp/home/root
May 15 15:36:40 ipBLOCKer: Filters: /tmp/home/root/filters
May 15 15:36:40 ipBLOCKer: Refresh: /tmp/home/root/refresh
May 15 15:36:40 ipBLOCKer: Backup : /tmp/home/root/backup
May 15 15:36:40 ipBLOCKer: Log    : /tmp/syslog.log
May 15 15:36:40 ipBLOCKer:
May 15 15:36:40 ipBLOCKer: Space Usage: 176.0K              IPSet Version: ipset v6
May 15 15:36:40 ipBLOCKer: ______________________________________________________________________
May 15 15:36:40 ipBLOCKer:                          Total                  Total
May 15 15:36:40 ipBLOCKer: categories           IP         Hits       CIDR       Hits   
May 15 15:36:40 ipBLOCKer: ______________________________________________________________________
May 15 15:36:41 ipBLOCKer: adware               0          0          0          0       
May 15 15:36:42 ipBLOCKer: country              0          0          0          0       
May 15 15:36:43 ipBLOCKer: etf                  0          0          0          0       
May 15 15:36:44 ipBLOCKer: malware              0          0          0          0       
May 15 15:36:45 ipBLOCKer: shalla               0          0          0          0       
May 15 15:36:46 ipBLOCKer: spam                 0          0          0          0       
May 15 15:36:47 ipBLOCKer: tor-exits            0          0          0          0       
May 15 15:36:48 ipBLOCKer: custom               0          0          0          0       
May 15 15:36:49 ipBLOCKer: white-list           0          0          0          0       
May 15 15:36:49 ipBLOCKer: ______________________________________________________________________
May 15 15:36:49 ipBLOCKer: Grand Totals:        0          0          0          0       
May 15 15:36:49 ipBLOCKer: ######################################################################


Nice
I would suggest you run any one of the below

block refresh custom

or

ipBLOCKer refresh custom


If you have no errors and
if your internet speeds are good

then go ahead and run
block refresh all

(this will take you about 30 mins FIRST time)

if not and you are patient
run the below commands
wait till they complete and
run the next command

1.
block refresh adware

2.
block refresh country

3.
block refresh etf

4.
block refresh tor-exits

5.
block refresh malware

(this one will take time the FIRST time)


If you do not have the TIME to do it now,
not an issue,

The refresh are scheduled and they will
start automatically.

You can check by running the below command

cru -l

This will give you the list of refresh and
when they will start though in a geeky way
 
it's more efficient to use "filter" rather than "raw" tables

All research and testing I've seen points to the opposite, do you have any to justify this statement up?

Blocking a packet in raw means not only are there 4 less layers of processing by the kernel, but there's no overhead of conntracking.
 
Nice
I would suggest you run any one of the below

block refresh custom

or

ipBLOCKer refresh custom


If you have no errors and
if your internet speeds are good

then go ahead and run
block refresh all

(this will take you about 30 mins FIRST time)

if not and you are patient
run the below commands
wait till they complete and
run the next command

1.
block refresh adware

2.
block refresh country

3.
block refresh etf

4.
block refresh tor-exits

5.
block refresh malware

(this one will take time the FIRST time)


If you do not have the TIME to do it now,
not an issue,

The refresh are scheduled and they will
start automatically.

You can check by running the below command

cru -l

This will give you the list of refresh and
when they will start though in a geeky way

i do block refresh all and got this in syslog.....
Code:
May 15 16:38:56 ipBLOCKer: ######################################################################
May 15 16:38:56 ipBLOCKer: Date: Mon May 15 16:38:56 DST 2017      Device: RT-AC3200-7180      
May 15 16:38:56 ipBLOCKer:
May 15 16:38:56 ipBLOCKer:                                ipBLOCKer
May 15 16:38:56 ipBLOCKer:                             (Version: 1.0)
May 15 16:38:56 ipBLOCKer:
May 15 16:38:56 ipBLOCKer: Memory Status: 81.46M/249.58M      Swap Status: 0.00M/0.00M
May 15 16:38:56 ipBLOCKer:
May 15 16:38:56 ipBLOCKer: Install: /mnt/sda1/ipBLOCKer
May 15 16:38:56 ipBLOCKer: Filters: /mnt/sda1/ipBLOCKer/filters
May 15 16:38:56 ipBLOCKer: Refresh: /mnt/sda1/ipBLOCKer/refresh
May 15 16:38:56 ipBLOCKer: Backup : /mnt/sda1/ipBLOCKer/backup
May 15 16:38:56 ipBLOCKer: Log    : /tmp/syslog.log
May 15 16:38:56 ipBLOCKer:
May 15 16:38:56 ipBLOCKer: Space Usage: 13.2M              IPSet Version: ipset v6
May 15 16:38:56 ipBLOCKer: ______________________________________________________________________
May 15 16:38:56 ipBLOCKer:                          Total                  Total
May 15 16:38:56 ipBLOCKer: categories           IP         Hits       CIDR       Hits    
May 15 16:38:56 ipBLOCKer: ______________________________________________________________________
May 15 16:39:01 ipBLOCKer: adware               26636      0          0          0        
May 15 16:39:05 ipBLOCKer: country              0          0          20116      5        
May 15 16:39:09 ipBLOCKer: etf                  22967      0          111        0        
May 15 16:39:16 ipBLOCKer: malware              101570     0          0          0        
May 15 16:39:20 ipBLOCKer: shalla               5739       0          0          0        
May 15 16:39:24 ipBLOCKer: spam                 26352      0          953        0        
May 15 16:39:27 ipBLOCKer: tor-exits            7050       0          0          0        
May 15 16:39:30 ipBLOCKer: custom               27         0          0          0        
May 15 16:39:34 ipBLOCKer: white-list           35         0          0          0        
May 15 16:39:34 ipBLOCKer: ______________________________________________________________________
May 15 16:39:34 ipBLOCKer: Grand Totals:        190376     0          21180      5        
May 15 16:39:34 ipBLOCKer: ######################################################################

then i rebooted router and all gone....just staying admin: restoring....
Code:
May 15 16:45:17 admin: ipBLOCKer Restoring ipsets...
May 15 16:45:17 admin: ipBLOCKer Restoring iptables...

Code:
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# ipBLOCKer.sh status
-sh: ipBLOCKer.sh: not found
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer#
 
All research and testing I've seen points to the opposite, do you have any to justify this statement up?

Blocking a packet in raw means not only are there 4 less layers of processing by the kernel, but there's no overhead of conntracking.

@Adamm do discuss through private messaging with @kvic
 
i do block refresh all and got this in syslog.....
Code:
May 15 16:38:56 ipBLOCKer: ######################################################################
May 15 16:38:56 ipBLOCKer: Date: Mon May 15 16:38:56 DST 2017      Device: RT-AC3200-7180      
May 15 16:38:56 ipBLOCKer:
May 15 16:38:56 ipBLOCKer:                                ipBLOCKer
May 15 16:38:56 ipBLOCKer:                             (Version: 1.0)
May 15 16:38:56 ipBLOCKer:
May 15 16:38:56 ipBLOCKer: Memory Status: 81.46M/249.58M      Swap Status: 0.00M/0.00M
May 15 16:38:56 ipBLOCKer:
May 15 16:38:56 ipBLOCKer: Install: /mnt/sda1/ipBLOCKer
May 15 16:38:56 ipBLOCKer: Filters: /mnt/sda1/ipBLOCKer/filters
May 15 16:38:56 ipBLOCKer: Refresh: /mnt/sda1/ipBLOCKer/refresh
May 15 16:38:56 ipBLOCKer: Backup : /mnt/sda1/ipBLOCKer/backup
May 15 16:38:56 ipBLOCKer: Log    : /tmp/syslog.log
May 15 16:38:56 ipBLOCKer:
May 15 16:38:56 ipBLOCKer: Space Usage: 13.2M              IPSet Version: ipset v6
May 15 16:38:56 ipBLOCKer: ______________________________________________________________________
May 15 16:38:56 ipBLOCKer:                          Total                  Total
May 15 16:38:56 ipBLOCKer: categories           IP         Hits       CIDR       Hits    
May 15 16:38:56 ipBLOCKer: ______________________________________________________________________
May 15 16:39:01 ipBLOCKer: adware               26636      0          0          0        
May 15 16:39:05 ipBLOCKer: country              0          0          20116      5        
May 15 16:39:09 ipBLOCKer: etf                  22967      0          111        0        
May 15 16:39:16 ipBLOCKer: malware              101570     0          0          0        
May 15 16:39:20 ipBLOCKer: shalla               5739       0          0          0        
May 15 16:39:24 ipBLOCKer: spam                 26352      0          953        0        
May 15 16:39:27 ipBLOCKer: tor-exits            7050       0          0          0        
May 15 16:39:30 ipBLOCKer: custom               27         0          0          0        
May 15 16:39:34 ipBLOCKer: white-list           35         0          0          0        
May 15 16:39:34 ipBLOCKer: ______________________________________________________________________
May 15 16:39:34 ipBLOCKer: Grand Totals:        190376     0          21180      5        
May 15 16:39:34 ipBLOCKer: ######################################################################

then i rebooted router and all gone....just staying admin: restoring....
Code:
May 15 16:45:17 admin: ipBLOCKer Restoring ipsets...
May 15 16:45:17 admin: ipBLOCKer Restoring iptables...

Good it is working out for you.

Why did you restart the router ?
just asking out of curiosity

DO NOT PANIC.

type the below

1.
iptables -L FORWARD | grep BLOCK

do you see firewall rules ?

2. ipset -L | grep BLOCK

do you see any output ?

If you have output from the 2nd command
but not from the 1st command,

Do the trouble-shooting option available in
ipBLOCKer i.e.,

Run the below command

block synch

This will recreate any missing ipBLOCKer firewall rules
 
Code:
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# ipBLOCKer.sh status
-sh: ipBLOCKer.sh: not found
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer#

You initially installed on
/jffs

then later on
/tmp/home/root

then currently it appears you
have CORRECTLY moved to a USB installation

/mnt/sda1/ipBLOCKer

During this changes, did you perhaps accidentally delete
from the wrong folder ?
 
Code:
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# ipBLOCKer.sh status
-sh: ipBLOCKer.sh: not found
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer#

You initially installed on
/jffs

then later on
/tmp/home/root

then currently it appears you
have CORRECTLY moved to a USB installation

/mnt/sda1/ipBLOCKer

During this changes, did you perhaps accidentally delete
from the wrong folder ?

yes, at the moment i have installed on tmp/mnt/sda1/ipBLOCKer
i delete and remove all older files and directory and router rebooted....so, script is working until reboot the router.....then all gone, lost......i realy do not know what goes wrong in my case?
Code:
ASUSWRT-Merlin RT-AC3200 380.66-0 Fri May 12 22:33:24 UTC 2017
admin@RT-AC3200-7180:/tmp/home/root# iptables -L FORWARD | grep BLOCK
admin@RT-AC3200-7180:/tmp/home/root# ipset -L | grep BLOCK
Name: ipBLOCKer-customa
Name: ipBLOCKer-white-lista
admin@RT-AC3200-7180:/tmp/home/root# cd /tmp/mnt/sda1/ipBLOCKer
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# ipBLOCKer.sh status
-sh: ipBLOCKer.sh: not found
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# ipBLOCKer.sh refresh
-sh: ipBLOCKer.sh: not found
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer#
 
yes, at the moment i have installed on tmp/mnt/sda1/ipBLOCKer
i delete and remove all older files and directory and router rebooted....so, script is working until reboot the router.....then all gone, lost......i realy do not know what goes wrong in my case?
Code:
ASUSWRT-Merlin RT-AC3200 380.66-0 Fri May 12 22:33:24 UTC 2017
admin@RT-AC3200-7180:/tmp/home/root# iptables -L FORWARD | grep BLOCK
admin@RT-AC3200-7180:/tmp/home/root# ipset -L | grep BLOCK
Name: ipBLOCKer-customa
Name: ipBLOCKer-white-lista
admin@RT-AC3200-7180:/tmp/home/root# cd /tmp/mnt/sda1/ipBLOCKer
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# ipBLOCKer.sh status
-sh: ipBLOCKer.sh: not found
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# ipBLOCKer.sh refresh
-sh: ipBLOCKer.sh: not found
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer#

Just for future references ....
You do not need to restart your router,
this is not a firmware installation.

@RMerlin was smart enough to forsee situations like this,
he included a tool to restore firewall to its initial prestine state
Code:
service restart_firewall

Coming to your situation,
It appears you have accidentally deleted the programme
files from ipBLOCKer folder on your USB.

Also post the contents of your firewall-start script when you can.

The forum for some reasons is banning/blocking me from posting any messages
 
Just for future references ....
You do not need to restart your router,
this is not a firmware installation.

@RMerlin was smart enough to forsee situations like this,
he included a tool to restore firewall to its initial prestine state
Code:
service restart_firewall

Coming to your situation,
It appears you have accidentally deleted the programme
files from ipBLOCKer folder on your USB.

Also post the contents of your firewall-start script when you can.

The forum for some reasons is banning/blocking me from posting any messages

i think i have all correctly installed but after reboot all gone.....
from my firewall-start script:
Code:
#!/bin/sh
# ipBLOCKer: Restore ipset from backup. DO NOT CHANGE MANUALLY
[ -f /tmp/mnt/sda1/ipBLOCKer/refresh/ipset.save ]    && \
{ logger ipBLOCKer Restoring ipsets...; nice -n4    ipset restore    < /tmp/mnt/sda1/ipBLOCKer/refresh/ipset.save    2> /dev/null & }

# ipBLOCKer: Restore iptables from backup. DO NOT CHANGE MANUALLY
[ -f /tmp/mnt/sda1/ipBLOCKer/refresh/iptables.save ] && \
{ logger ipBLOCKer Restoring iptables...; nice -n4 iptables-restore -c < /tmp/mnt/sda1/ipBLOCKer/refresh/iptables.save 2> /dev/null & }

Code:
ASUSWRT-Merlin RT-AC3200 380.66-0 Fri May 12 22:33:24 UTC 2017
admin@RT-AC3200-7180:/tmp/home/root# cd /tmp/mnt/sda1/ipBLOCKer
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# block status
-sh: block: not found
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# cd ipBLOCKer
-sh: cd: can't cd to ipBLOCKer
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# ipBLOCKer.sh status
-sh: ipBLOCKer.sh: not found
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer#

8X4Cpc.png
i3vDxG.png
 
Looks like you have either unselected categories from the
Select Categories Menu or have uninstalled the categories.

I would suggest you to run the below as I see that you have
some files left to completely remove and reinstall
Code:
cd ipBLOCKer

./ipBLOCKer.sh uninstall all

# This will uninstall custom and white-list categories
# as well as remove firewall-start entries
# this will also delete the refresh and filters folders

# NOW you will have a CLEAN system

# Start ipBLOCKer by the below commands

./ipBLOCKer.sh setup

# Select all the categories
# from command prompt run the below command

./ipBLOCKer.sh refresh custom

./ipBLOCKer.sh refresh all

Your system should be back again to normal.
No need to restart the router.

Do not delete any files from the ipBLOCKer folder manually
that includes even the filters and refresh folders.

the uninstall option does all the cleaning up
 
Last edited:
@RMerlin was smart enough to forsee situations like this,
he included a tool to restore firewall to its initial prestine state

I didn't, this is just the internal command that the router runs whenever it needs to reconfigure the firewall :)
 
Looks like you have either unselected categories from the
Select Categories Menu or have uninstalled the categories.

I would suggest you to run the below as I see that you have
some files left to completely remove and reinstall
Code:
cd ipBLOCKer

./ipBLOCKer uninstall all

# This will uninstall custom and white-list categories
# as well as remove firewall-start entries
# this will also delete the refresh and filters folders

# NOW you will have a CLEAN system

# Start ipBLOCKer by the below commands

./ipBLOCKer setup

# Select all the categories
# from command prompt run the below command

./ipBLOCKer refresh custom

./ipBLOCKer refresh all

Your system should be back again to normal.
No need to restart the router.

Do not delete any files from the ipBLOCKer folder manually
that includes even the filters and refresh folders.

the uninstall option does all the cleaning up
i can`t get in? no way.....
Code:
ASUSWRT-Merlin RT-AC3200 380.66-0 Fri May 12 22:33:24 UTC 2017
admin@RT-AC3200-7180:/tmp/home/root# cd /tmp/mnt/sda1/
admin@RT-AC3200-7180:/tmp/mnt/sda1# cd ipBLOCKer
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# ./ipBLOCKer uninstall all
-sh: ./ipBLOCKer: not found
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer#
 
I think you should use ./ipBLOCKer.sh
nothing better, Invalid Option
Code:
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# ./ipBLOCKer.sh

ipBLOCKer blocks IPs & CIDRs
tagged as Adware Country Custom ETF Malware Shalla(exp) Spam Tor-Exits

Usage: ipBLOCKer.sh [option] [parameter]
   Ex: ipBLOCKer.sh status; ipBLOCKer.sh refresh; ipBLOCKer.sh add white-list;
   Ex:        block status;        block refresh;        block add white-list;

   Options:
     help : Shows      this help
    setup : Configures ipBLOCKer
   status : Shows      Status
  refresh : Refreshes  Categories with Updates
      add : Adds       IPs and CIDRs to     a Category
   delete : Deletes    IPs and CIDRs from   a Category
    check : Checks     IPs and CIDRs are in a Category
   backup : Backsup    System
  restore : Restores   System from backup
      off : Turns      off ipBLOCKer Temporarily
       on : Turns      on ipBLOCKer
    synch : Restores   Missing ipBLOCKer Firewall Rules (trouble-shooting)
uninstall : Removes    ipBLOCKer (all) or a Category
  version : Shows      Version Information

Invalid Option
 
nothing better, Invalid Option
Code:
admin@RT-AC3200-7180:/tmp/mnt/sda1/ipBLOCKer# ./ipBLOCKer.sh

ipBLOCKer blocks IPs & CIDRs
tagged as Adware Country Custom ETF Malware Shalla(exp) Spam Tor-Exits

Usage: ipBLOCKer.sh [option] [parameter]
   Ex: ipBLOCKer.sh status; ipBLOCKer.sh refresh; ipBLOCKer.sh add white-list;
   Ex:        block status;        block refresh;        block add white-list;

   Options:
     help : Shows      this help
    setup : Configures ipBLOCKer
   status : Shows      Status
  refresh : Refreshes  Categories with Updates
      add : Adds       IPs and CIDRs to     a Category
   delete : Deletes    IPs and CIDRs from   a Category
    check : Checks     IPs and CIDRs are in a Category
   backup : Backsup    System
  restore : Restores   System from backup
      off : Turns      off ipBLOCKer Temporarily
       on : Turns      on ipBLOCKer
    synch : Restores   Missing ipBLOCKer Firewall Rules (trouble-shooting)
uninstall : Removes    ipBLOCKer (all) or a Category
  version : Shows      Version Information

Invalid Option

You actually need to provide an action command after the name of the script! Valid commands in the output you posted.
 
In your case:

Code:
./ipBLOCKer uninstall all

Once that is done, follow the installation procedure - you should be fine.
 
it is all fine until router reboot....after reboot not working and can`t access to ipBLOCKer with all commands....i have no idea why script not runing after reboot?
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top