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

    iCloud Private Relay breaks pfSense Split DNS - be warned

    Scheduled Pinned Locked Moved NAT
    5 Posts 2 Posters 802 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.
    • C
      Cabledude
      last edited by Cabledude

      After my opening post I discovered the solution to my own issue, so I changed the title and added the solution below.

      Hi all,
      I have a server running on the Local network (VLAN10). As I have mobile clients (laptops) that connect to that server outside and inside my network I configured DNS resolver split DNS as recommended on this forum.

      one local client (M1 MacBook Pro) keeps resolving a ping to the FQDN as the external (WAN) IP instead of the local IP. This rebellious MBP has worked well for months now, but two days ago I activated FileVault and after that this issue started. At least 7 other MacBooks resolve that ping to the local IP as normal. One of those also has FileVault enabled and works fine, so I doubt that FileVault has anything to do with it.

      Meanwhile I wiped the entire drive, installed macOS from scratch (with FileVault) and then initially the ping resolved to the local IP. Hurray. After reinstalling some of my apps (synology drive, then carbon copy cloner, then Adobe creative suite, it’s back to the ping resolving to the WAN IP again. This breaks the synology drive client sync.
      When I create a new user the ping resolves to local IP.

      Client DNS is on auto for all MacBooks and reads 192.168.10.1, just like it should.

      Nslookup always returns local IP, even while the trouble MacBook pings to external IP.

      Https access works fine on this local client ie when I type the FQDN in a web browser I can reach the server and all is well.

      I know this doesn’t seem to be a pfsense issue, but I hope you could provide some troubleshooting suggestions.

      Thanks a lot in advance.

      Pete

      Pete
      Home: SG-2100 + UniFi + Synology. SG-1100 retired
      Parents: SG-1100 + UniFi + Synology
      Testing: SG-1100 w/ 120GB SSD via ext USB (eMMC dead). Works great

      C S 2 Replies Last reply Reply Quote 0
      • C
        Cabledude @Cabledude
        last edited by

        @cabledude
        Just wanted to add: first time the ping <domain> command takes a little longer than it should, as if it is trying to resolve the local IP but can't, then reverts to the public route.

        After the first ping, the consecutive pings go very fast, but I believe the ping resolution is retrieved from buffer/cache whereas the nslookup always queries a fresh set.

        Pete
        Home: SG-2100 + UniFi + Synology. SG-1100 retired
        Parents: SG-1100 + UniFi + Synology
        Testing: SG-1100 w/ 120GB SSD via ext USB (eMMC dead). Works great

        C 1 Reply Last reply Reply Quote 0
        • C
          Cabledude @Cabledude
          last edited by Cabledude

          @cabledude Schermafbeelding 2023-04-17 om 00.34.42.png

          So I finally found out what is going on. After logging into iCloud I carelessly enabled Private Relay:
          230417 DNS.jpg

          Apparently this breaks the Split DNS, though I don't know why.

          After disabling Private Relay, all pings get back to resolving local IP and instantly my Synology Drive Client picks up syncing files where it left off...

          This also perfectly accounts for the fact that only this client had this issue, as it was the only one out of 8 units that had Private Relay enabled.

          Hope this helps others too.

          Pete
          Home: SG-2100 + UniFi + Synology. SG-1100 retired
          Parents: SG-1100 + UniFi + Synology
          Testing: SG-1100 w/ 120GB SSD via ext USB (eMMC dead). Works great

          1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @Cabledude
            last edited by

            @cabledude Private Relay is sort of like a VPN. It bypasses local DNS.
            https://support.apple.com/en-us/HT212614

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote 👍 helpful posts!

            C 1 Reply Last reply Reply Quote 1
            • C
              Cabledude @SteveITS
              last edited by

              @steveits
              Thank you Steve, that explanation makes perfect sense. I never realised it could mess up my setup but I learned the hard way, it took me two full days of troubleshooting, wiping the MacBook and rebuilding its setup before it dawned on me that it came down to my silly mistake. Oh well. At least it broadened my understanding of the way it works.

              Pete
              Home: SG-2100 + UniFi + Synology. SG-1100 retired
              Parents: SG-1100 + UniFi + Synology
              Testing: SG-1100 w/ 120GB SSD via ext USB (eMMC dead). Works great

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