Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    pfBlocker with GEO IP not block IPSEC

    Scheduled Pinned Locked Moved IPsec
    4 Posts 2 Posters 1.6k Views 2 Watching
    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.
    • P
      Piter 0
      last edited by Piter 0

      I have configured firewall with GEO block for IPSEC.
      After all, in the IPSEC logs I see attempts to connect to addresses outside of geolocation, e.g.:

      Jan 4 07:18:18 charon 98918 03[NET] received unsupported IKE version 6.15 from 45.33.46.249, sending INVALID_MAJOR_VERSION

      Geolocation works properly, because I do not see blocked addresses on the list. The VPN alias ports are 500 and 4500. Where do these entries come from? Shouldn't the firewall cut them out?

      IPSEC Firewall rules:
      IPSEC.jpg
      WAN Firewall rules:
      WAN.jpg

      keyserK 1 Reply Last reply
      Reply Quote 0
      • keyserK
        keyser Rebel Alliance @Piter 0
        last edited by

        @piter-0 That depends on you having disabled the “built-in” rules that allows VPN Server access.
        By default pfSense has built-in rules to allow access to UDP 500, 4500 and ESP - these rules have a higher ppreference than user created rules.
        So if you want to GEO block access to your VPN service, you need to disable the built-in rules, and then create som “allow VPN rules” after your block rules.

        You can disable the built-in rules in SYSTEM->ADVANCED->FIREWALL&NAT

        Love the no fuss of using the official appliances :-)

        P 2 Replies Last reply
        Reply Quote 1
        • P
          Piter 0 @keyser
          last edited by

          @keyser Thanks, sounds reasonable. I'll test it when I have time :)

          1 Reply Last reply
          Reply Quote 0
          • P
            Piter 0 @keyser
            last edited by

            @keyser Works fine, thx :)

            1 Reply Last reply
            Reply Quote 1

            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 Login
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
            Privacy Policy · Cookie Policy