Project

General

Profile

Actions

Bug #13632

closed

tailscale does not survive reboot on pfsense with ram disk in use

Added by Bill Flood over 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Normal
Category:
Tailscale
Target version:
-
Start date:
04/18/2023
Due date:
04/18/2023
% Done:

100%

Estimated time:
3.00 h
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:
All

Description

pfSense-pkg-Tailscale 0.1.0_1pfSense package Tailscale 1.26.2
pfsense 2.6.0-RELEASE (amd64)

With a properly configured and connected Tailscale configuration setup the authentication with Tailscale fails after reboot when using a Ram disk on pfsense. Keys are set to not expire. When the Ram disk is disabled (assuming a new key is used after a failure) the connection succeeds after every reboot. Expectation is that a configuration can survive a reboot/crash as configuration and keys should be stored in non-volatile locations like any other service.

The status log on failure shows:

Error executing command (/usr/local/bin/tailscale status)
  1. Health check:
  2. - not logged in, last login error=invalid key: API key [key id shown here] not valid

Logged out.


Files

clipboard-202304221733-iciba.png (20.7 KB) clipboard-202304221733-iciba.png Jordan G, 04/22/2023 05:33 PM
Actions #1

Updated by Bill Flood over 1 year ago

The ram disk is configured in pfsense->System->Advanced->Miscellaneous and backup parameters are populated.

Actions #2

Updated by Christian McDonald about 1 year ago

  • Status changed from New to In Progress

Looking at this.

First I need to expose the --statedir tailscaled option to the rc script (and upstream it). I'm testing a build now with this patch. Second, modify the PHP to set this new RC option to a non-volatile path.

This should be fixed soon.

Actions #3

Updated by Christian McDonald about 1 year ago

  • Status changed from In Progress to Feedback

v0.1.3 includes migration code that will move the state file from /var/db/tailscale/tailscale.state to a location that is guaranteed to be persistent /usr/local/pkg/tailscale/state. This is also configurable via the Settings page.

Actions #5

Updated by Christian McDonald about 1 year ago

  • Due date set to 04/18/2023
  • Start date set to 04/18/2023
  • % Done changed from 0 to 100
  • Estimated time set to 3.00 h
  • Affected Version deleted (2.6.0)
Actions #6

Updated by Danilo Zrenjanin about 1 year ago

The latest Tailscale version under available packages is 0.1.2.

v0.1.3 is not listed yet. Please check.

Actions #7

Updated by Jordan G about 1 year ago

tailscale v0.1.3 on 23.05.a.20230421.0022 in the package's settings provides a configurable field for state directory which is pre-populated with a persistent directory with RAM disks previously enabled

Actions #8

Updated by Danilo Zrenjanin 12 months ago

Tested against:

23.05-BETA (amd64)
built on Wed May 03 06:05:00 UTC 2023
FreeBSD 14.0-CURRENT

Tailscale 0.1.3_1

It connected sucesefully after reboot with ram disk in use.

I am marking this ticket as resolved.

Actions #9

Updated by Danilo Zrenjanin 12 months ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF