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

    PFsense will not let me choose tailscale as a network or alias

    Scheduled Pinned Locked Moved Tailscale
    7 Posts 6 Posters 3.9k 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.
    • J
      jsbsmd
      last edited by

      I just setup my 3rd pfsense firewall for customer3. When I try to create the NAT outbound rule, it will NOT let me select a NAT address other then WAN or LAN.

      The other customers NAT address if TailScaleip but if I enter this into the translation, it errors and will not let me save it.

      2023-12-29_16-25-56.png

      C 1 Reply Last reply Reply Quote 2
      • C
        cyrus104 @jsbsmd
        last edited by

        @jsbsmd

        I'm in the same boat, it was working perfectly and then I noticed it stopped and now if I try to save the config again it says it can't do it.

        026b2cc5-449e-4ee1-80ee-a39b352b446e-image.png

        A 1 Reply Last reply Reply Quote 0
        • A
          ay @cyrus104
          last edited by

          @cmcdonald
          maybe pin one of the more recent youtube commends / edit the youtube description to note the changes to the Outbound NAT dialog ?
          A Tailscale Package for pfSense [Youtube]

          There's a youtube comment reply from mid December, that mentions this work around, but it is buried.

          @8095945088
          1 month ago
          Use network or alias and put the tailscale ip address 100.xx.xx.xx it should work fine.
          

          There's a redmine on this -
          Regression #14987 closed as not a bug
          post #8 from Danilo Zrenjanin has a work around

          As a workaround, you can define an IP Alis VIP using localhost as the Parent interface and the Tailscale address of that node for IP.
          
          In the outbound NAT rule, the VIP address defined in the previous step will be available in the drop-down menu.
          
          C 1 Reply Last reply Reply Quote 0
          • C
            cyrus104 @ay
            last edited by

            @ay thank you

            Will this break is tailscale signs a different ip to this device?

            1 Reply Last reply Reply Quote 0
            • C
              cereal2k
              last edited by cereal2k

              Hi,

              i played arround a bit with pfsense 2.7.2 and for now i found a fix for myself....

              you can add a rule manually under Diagnostic -> Edit file you can edit the config file /cf/conf/config.xml

              under the section NAT you have to enter manually

              it looks like:

              <nat>
              	<outbound>
              		<mode>hybrid</mode>
              		<rule>
              			<source>
              				<network>any</network>
              			</source>
              			<sourceport></sourceport>
              			<descr><![CDATA[NAME OF THE CONNECTION]]></descr>
              			<target>Tailscaleip</target>
              			<interface>Tailscale</interface>
              			<poolopts></poolopts>
              			<source_hash_key></source_hash_key>
              			<destination>
              				<network>YOUR LOCAL NETWORK IE 192.168.2.0/24</network>
              			</destination>
              			<created>
              				<time>1694703053</time>
              				<username><![CDATA[admin@10.10.1.254 (Local Database)]]></username>
              			</created>
              			<updated>
              				<time>1694703198</time>
              				<username><![CDATA[admin@10.10.1.254 (Local Database)]]></username>
              			</updated>
              			<target_subnet></target_subnet>
              		</rule>
              

              After saving the file go to Firewall -> NAT -> Outbound.... you see that the rule is active however it doesn't work.... mark it and click toggle to change the state to disable after applying you make the same again to enable the rule again.... afterwards it's running without an issue :)

              I know it's a bit complicated however till this will be solved (fingerscrossed) it's the way how i do this and it's work perfectly for me even on new installed pfsenses :)

              I hope i could help you and some others a bit...

              1 Reply Last reply Reply Quote 1
              • M mcury referenced this topic on
              • YanapaY
                Yanapa
                last edited by

                This issue has been reported on the bug tracker:
                https://redmine.pfsense.org/issues/14987

                An easy fix is to create an host alias for your local IPv4 tailscale ip (run tailscale ip in shell to see it)

                49141d6a-9246-43c7-b9bf-fe7fd4e05bd3-image.png

                b0d803d5-110a-4d4d-b2c0-0ba4f6a4d651-image.png

                Then you can create a new outbound rule using this alias (you can also see in my screenshot older rules created with pfsense 2.6.0 and automatically recreated after 2.7.2 update, but these rules are no more compatible with the new GUI and cannot be edited in the web interface) :
                2b69b4d8-9243-4580-a7d1-fcf84a14ca32-image.png

                1 Reply Last reply Reply Quote 2
                • D
                  deanfourie
                  last edited by

                  I am having trouble getting this to work.

                  Will this work behind a double NAT? I have pfSense behind another Mikrotik 4G router. I have confirmed too that I can ping the remote host subnet via pfSense directly just not behind the pfSense LAN, So I'm guessing the double NAT is not an issue.

                  Also, for the NAT rule,

                  Would the source be the Source Network of the pfSense LAN, and the destination be the final Destination Network of the other network behind tailscale?

                  Then the NAT Address would be the tailscale IP of the other side network.

                  IE>>

                  pfSense network = 192.168.10.0/24
                  Remote Network = 192.168.20.0/24
                  pfSense Tailscale = 100.90.20.10
                  Remote Tailscale = 100.90.42.2

                  Would my NAT entry look like this.

                  bf2e3c74-f2e2-4b0a-afeb-86630f0964bc-image.png

                  Thanks

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