This is the IPSET for those brazillian IPs tat are hitting locations.
config rule
option src 'wan'
option name 'br-block'
option target 'DROP'
option direction 'in'
option device 'eth0'
option ipset 'brazil'
list proto 'all'
config ipset
option name 'brazil'
option family 'ipv4'
option maxelem '65535'
option counters '1'
list match 'ip'
list entry '64.62.156.162'
list entry '85.11.183.25'
list entry '78.128.112.74'
list entry '179.189.0.0/16'
list entry '198.235.24.254'
list entry '189.36.0.0/16'
list entry '45.172.0.0/16'
If I run it as a pure firewall system as..
config rule
option src '*'
option name 'blockerz'
option target 'DROP'
option dest '*'
list src_ip '179.189.0.0/16'
list src_ip '189.36.0.0/16'
list src_ip '45.172.0.0/16'
list src_ip '186.209.0.0/16'
list src_ip '179.108.0.0/16'
list src_ip '143.0.0.0/16'
Well I want to block the incomming from the external, so yes I set it to the DEVICE so that it wasn't looking at the traffic from the other NICs and wasting the resources checking all those too.
I'm wanting to know if there is any way I can perform IP blocking without having to do the save and apply?
Can be by the CLI, just want one command that will allow me to add an IP or IP with CIDR and jsut have it take effect immediately and drop all the connections for that IP/Range.
Is there any way to add a start and end IP address and have it calculate the CIDR for ease of use?