How do I block visitors by country using IP address ranges?
-
I want to block traffics from a certain country. I know I can export and save a free IP address list from firewall generator and one of the common CIDR output format is as below.
What should I do next to import the list to enable blocking in pfSense? I don't want to enter it manually.
# ------------------------------------------------------- # Free IP2Location Firewall List by Country # Source: https://www.ip2location.com/free/visitor-blocker # Last Generated: 19 Nov 2018 04:57:38 GMT # [Important] Please update this list every month # ------------------------------------------------------- 217.29.232.0/21 194.112.14.0/24 194.112.13.128/25 194.112.13.64/26 194.112.13.32/27 194.112.13.16/28 194.112.12.0/24 -
You probably want the pfBlockerNG package.
-
How do we use the pfBlockNG package?
-
https://www.youtube.com/watch?v=g0KOcfGicjM
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy