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

    Very strange bug in firewall behavior. Pfsense blocks another IP

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 189 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.
    • L
      localhostx
      last edited by

      Hi,

      I've just encountered a very strange bug in the firewall.

      I have been using OpenVPN to remotely connect to our network. There is a firewall rule that allows specific domains in an alias to access the OpenVPN service from the Internet.

      One of the domains in the alias list is dync------.mydomain.network. I host this domain on Squarespace and update the A record manually whenever I want to VPN from my phone.

      The problem is that if I set the IP of that specific domain to 31.94.64.11, the firewall blocks it and logs that the connection is from 31.94.64.10 (-1).

      This is something I can easily reproduce with any IP.

      Following is the A record of the domain in square space:
      1db97eb0-73b5-48c8-9715-afbad5a25d11-image.png

      This is how it is resolved by the pfsense:
      f4d4067a-93f0-49c5-ad02-d85235f43e96-image.png

      And this is the pfsense firewall log
      238d0c13-914d-405b-afb8-edf00ca70a9d-image.png

      Firewall rule
      72910211-b286-4edf-be51-b2586b6e8cee-image.png

      ad2f9de7-9e46-4213-b43b-647481eab697-image.png

      Do you have any idea about the root cause?

      Bob.DigB 1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @localhostx
        last edited by Bob.Dig

        @localhostx said in Very strange bug in firewall behavior. Pfsense blocks another IP:

        Do you have any idea about the root cause?

        How about checking the rule "OpenVPN UDP - Block undefined/unsafe sources and log (1680558643)"? If this is just a general block rule, check the tables in diagnostics.

        1 Reply Last reply Reply Quote 1
        • L
          localhostx
          last edited by

          It is a general block rule in the above firewall screenshot (the third one). The whitelisting is the first rule, and I expect it to allow access.

          The interesting thing is that, regardless of what I whitelist, the firewall perceives it as -1. If my IP ends in .11, pfSense logs it as .10.

          I started to suspect that my mobile ISP (EE) might be causing this issue by assigning an IP of 31.94.64.11, performing some inspection, and then redirecting it as 31.94.64.10.

          I will test it with another ISP to confirm.

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