Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Best way to geo-block on VPN ports

    pfBlockerNG
    2
    2
    596
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      davidology
      last edited by

      I'm using the GeoIP function of PFBNG, but wondering if I'm doing it in the most efficient way.

      I noticed a number of rejections hitting my VPN ports. I thought it might be prudent to restrict access to IP addresses to where I may be. As I'm not planning to leave the country in the next 6-months, that meant restricting to US-based IPs.

      I setup a rule to drop any connection attempts from an inversion of the North American IP addresses. This seems to work, but I wanted to make sure I'm not creating any unnecessary overheard in either memory or CPU time.

      Is this way a good way to go about it?

      Thanks for any input/advice!

      1 Reply Last reply Reply Quote 0
      • BBcan177B
        BBcan177 Moderator
        last edited by

        There are many ways to do that… But i would recommend to create a Permit Inbound rules instead. This way your not going to fill the logs will all of the IPs that were blocked hitting that rule… So less noise, means you can review the logs for real events that need attention :)

        Its always better to try to limit down the allowed IPs to as small of a range as possible... There are still a lot of IPs in North America... But its still better than leaving it wide open...

        "Experience is something you don't get until just after you need it."

        Website: http://pfBlockerNG.com
        Twitter: @BBcan177  #pfBlockerNG
        Reddit: https://www.reddit.com/r/pfBlockerNG/new/

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.