Project

General

Profile

Actions

Bug #17034

open
JP MM

Tailscale package does not add tailscale0 to Tailscale interface group

Bug #17034: Tailscale package does not add tailscale0 to Tailscale interface group

Added by Jerry Poole 30 days ago. Updated 3 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
Tailscale
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
26.07
Affected Architecture:

Description

On pfSense Plus 26.07, Tailscale starts successfully and accepted
subnet routes are installed through tailscale0. However, tailscale0
is only a member of the "tun" group and is not a member of the
"Tailscale" interface group.

This prevents firewall and outbound NAT rules using the Tailscale
interface group from matching.

ifconfig tailscale0 | grep groups
groups: tun

An outbound NAT rule compiles successfully:

nat on Tailscale inet from 10.21.1.0/24 to 10.23.1.0/24
-> <PFSENSE_TAILSCALE_IP>

However, the state leaves tailscale0 untranslated:

tailscale0 tcp 10.21.1.11 -> 10.23.1.10:443 SYN_SENT:CLOSED

Manually running:

ifconfig tailscale0 group Tailscale

immediately fixes the problem. New states are translated and establish:

tailscale0 tcp 100.77.152.102 (10.21.1.11)
-> 10.23.1.10:443 ESTABLISHED:ESTABLISHED

The package startup code appears intended to add this group membership,
but it is missing at runtime. This may be a startup timing issue or may
occur when tailscale0 is recreated after the package startup hook runs.

→L Updated by → luckman212 28 days ago Actions #1

I'm hitting this too, but hadn't realized it until I looked at my logs:

# grep 'tailscale0 does not have interface group set' /var/log/system.log
<13>1 2026-08-15T15:10:01.057491-04:00 r1.lan tailscaled 24021 - - tailscale0 does not have interface group set
<13>1 2026-08-15T15:15:00.043996-04:00 r1.lan tailscaled 41538 - - tailscale0 does not have interface group set
<13>1 2026-08-15T20:15:00.041474-04:00 r1.lan tailscaled 37756 - - tailscale0 does not have interface group set
<13>1 2026-08-18T08:30:00.038498-04:00 r1.lan tailscaled 65194 - - tailscale0 does not have interface group set

Don't think it's a new bug in 26.07, this issue was definitely occurring on my systems as far back as April, because I had already picked up on it as a bug and added it to my catch-all Tailscale fixer-upper script tscheck.sh (GitHub: tscheck.sh) which I have scheduled to run every 5 minutes via Cron.

DF Updated by Daniel Fisher 21 days ago Actions #2

I have this issue as well after updating to 26.07. My pfSense box stays connected to Tailscale showing "Connected" via https://console.tailscale.com/admin/machines, however traffic can no longer route from LAN networks outbound to the tailscale interface.

In this state system logs show:

Aug 21 02:15:17     kernel         tailscale0: link state changed to DOWN
Aug 21 02:15:18     kernel         tun0: link state changed to UP
Aug 21 02:15:18     kernel         tun0: changing name to 'tailscale0'

Restarting the tailscale service allows outbound traffic to route again and system logs show:

Aug 21 22:15:40     php-fpm     8782     NOTICE The command '/usr/local/etc/rc.d/pfsense_tailscaled stop' returned exit code '1', the output was 'Stopping tailscaled. Waiting for PIDS: 56985.'
Aug 21 22:15:40     kernel         tailscale0: link state changed to DOWN
Aug 21 22:15:40     tailscale     74121     Waiting for device tailscale0
Aug 21 22:15:40     kernel         tun0: link state changed to UP
Aug 21 22:15:40     kernel         tun0: changing name to 'tailscale0'
Aug 21 22:15:41     tailscale     76241     Found device tailscale0
Aug 21 22:15:41     tailscale     77371     Added tailscale0 to interface group Tailscale
Aug 21 22:15:41     tailscale     77783     Bringing up tailscale0 with --auth-key=tskey-auth-XXXXXXXXXXXXXXXXXX --login-server=https://controlplane.tailscale.com --advertise-exit-node --accept-routes=false --accept-dns=false --advertise-routes=192.168.XX.0/24,192.168.XX.0/24,192.168.XX.0/24

JP Updated by Jerry Poole 21 days ago Actions #3

I added the following command to a Cron job running every 1 minute; tailscale outbound traffic has worked every since.

/sbin/ifconfig tailscale0 2>/dev/null | /usr/bin/grep -q Tailscale || /sbin/ifconfig tailscale0 group Tailscale >/dev/null 2>&1

Also, I created a pfsense alias, "PFSENSE_TAILSCALE_TP" and used it for the NAT translation address in the Tailscale NAT Outbound rule. Set the alias to your tailscale ip address.

Paste this single command into Diagnostics → Command Prompt → Execute Shell Command to determine if tailcale0 is in the group and it will provide you with your tailscaleip as well as the pfsense alias address for further diagonstics.

/bin/sh -c 'echo "Current Tailscale IP:"; /usr/local/bin/tailscale ip -4; echo "PFSENSE_TAILSCALE_IP alias:"; /sbin/pfctl -t PFSENSE_TAILSCALE_IP -T show; echo "tailscale0 interface groups:"; /sbin/ifconfig tailscale0 | /usr/bin/grep groups'

NM Updated by Nikola Milekic 15 days ago Actions #4

Disabling Tailscale auto-updates with tailscale set --auto-update=false fixed this for me.
The auto-update mechanism recreates the interface for some reason, and after it is recreated it is no longer a member of the Tailscale group.
See https://github.com/tailscale/tailscale/issues/18136.

MM Updated by Marcos M 10 days ago Actions #5

That looks promising. I've not tested this myself but here's a patch to try (set strip count to 4 when adding it with the System Patches package). Show

MM Updated by Marcos M 10 days ago Actions #6

  • Project changed from pfSense Plus to pfSense Packages
  • Category changed from VPN (Multiple Types) to Tailscale
  • Release Notes deleted (Default)

DF Updated by Daniel Fisher 4 days ago · Edited Actions #7

Marcos M wrote in #note-5:

That looks promising. I've not tested this myself but here's a patch to try (set strip count to 4 when adding it with the System Patches package). {{collapse
[...]
}}

I installed this using System Patches then restarted Tailscale, and have not had issues with losing tailscale routing since.

JP Updated by Jerry Poole 4 days ago Actions #8

I haven't had the issue either since installing the patch.

MM Updated by Marcos M 4 days ago Actions #9

  • Status changed from New to Feedback
  • Assignee set to Marcos M
  • % Done changed from 0 to 100

Pushed 23121ebe339b771e78be4078a364cb5f07375716 with the above fix to 2.9.0 and 26.07.

→L Updated by → luckman212 3 days ago Actions #10

Is this supposed to show up in System Patches?

Also I saw a new Tailscale pkg this morning: v0.1.10 - do we still need this patch with that version of the pkg installed?

MM Updated by Marcos M 3 days ago Actions #11

The patch is in the new version.

Actions

Also available in: Atom