Page 1 of 1

Allow geoblock instead of block

Posted: Thu Feb 26, 2015 10:57 am
by atomicbox
If we want to allow only 1 or 2 countries in firewall we have to explicitly block all of the rest.

This creates a table with around 250.000 blocked IP networks.

Is there any chance in ASL to reverse this and only add which GEO IPs are allowed and block all the rest?

Re: Allow geoblock instead of block

Posted: Thu Feb 26, 2015 4:27 pm
by scott
Kind of like "Only allow country XX" right?

Re: Allow geoblock instead of block

Posted: Tue Mar 03, 2015 9:25 am
by atomicbox
Yes,

Instead of "Block these and allow the rest"...

It would be "Allow these and block the rest"...

In pratical terms it would be the same, the difference would be in performance since you would be loading for example 5.000 IP sets instead of 250.000 depending on how many countries would be on the list.

In the future ASL could even make this decision automatically taking in consideration how many IP sets would be on one option or the other.

Re: Allow geoblock instead of block

Posted: Thu Mar 05, 2015 4:04 pm
by scott
For reference that is called an "Unless Allow, Deny" policy, and something we have planned for a future sprint. A great thing about ipsets in general is that you can load gigantic lists (billions definitely, trillions possibly?) in a few milliseconds, so far we really havent hit any kind of bottleneck with handling monster lists.