Wednesday, December 07, 2022

Re: PF rules to block out every IP from a given country

Hi,

On 07/12/2022 18:36, Peter N. M. Hansteen wrote:
...> and can now be found at
https://nxdomain.no/~peter/ripe2cidr_country.sh.txt --
> as it says in the script itself, a trivial hack.
>
> And I might add, it comes with *NO* warranties of any kind.

I think instead of :
grep allocated
in the two important lines, it should be :
egrep '(allocated)|(assigned)'

coz both can go to countries.

Frank

No comments:

Post a Comment