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

    Question: How to set pfBlockerNG GeoIP rule exemption on a specific port?

    Scheduled Pinned Locked Moved pfBlockerNG
    2 Posts 2 Posters 378 Views
    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.
    • U
      urbanovits
      last edited by urbanovits

      HI all,
      Need your assistance. My pfSense on latest build. I have a well configured pfBockerNG and perform it's job as well including GeoIP blocking.
      What I would like to configure around GeoIP to block all traffic exempt on some specific ports.
      For instance I would like to block a specific country or zillion of countries exempt on port53 UDP and port25 TCP to have incoming mail and provide DNS query access. The rest communication on all other ports have to be blocked.
      How is it possible to setup as much as easy way on pfBolckerNG console? (I won't to do it using firewall policies)
      Thanks

      NogBadTheBadN 1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad @urbanovits
        last edited by NogBadTheBad

        @urbanovits Create an alias using the GeoIP then use that alias on an outbound rule on the lan interface and allow the required ports.

        I do this to only allow SSH / SFTP from the UK to the host in my DMZ and I switch the rules on when required:-

        Screenshot 2022-08-18 at 12.32.05.png
        Screenshot 2022-08-18 at 12.36.09.png

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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