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
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.