Comments (4)
Hey @dieterplex Currently the state file is explicitly being set to /etc/config so that the state can be backed up with OpenWRT. Can you confirm if --statedir
works with --state
as well?
from openwrt-tailscale-enabler.
Also, using /tmp as your stateDir does not persist on reboots. What gets generated there (like certs) and would you need them to persist?
from openwrt-tailscale-enabler.
--statedir
is passed into as VarRoot
, from the comment of VarRoot
:
VarRoot is the Tailscale daemon's private writable
directory (usually "/var/lib/tailscale" on Linux) that
contains the "tailscaled.state" file, the "certs" directory
for TLS certs, and the "files" directory for incoming
Taildrop files before they're moved to a user directory.
If empty, Taildrop and TLS certs don't function.
And according to this behavior
If an absolute --state is provided but not --statedir, try to derive a state directory.
Maybe just change the state file to /etc/tailscale/tailscaled.state
in /etc/init.d/tailscale
if we want to keep Taildrop files and cert files?
Or append statedir param for a separate /var/lib/tailscale
dir? Since another copy of crt & key files are save to current working directory when exec tailscale cert <my-tsnet-domain>
.
When using /etc/tailscale/tailscaled.state
, listing files would like this:
root@OpenWrt:/etc/tailscale# ls -1 *
derpmap.cached.json
tailscaled.log.conf
tailscaled.log1.txt
tailscaled.log2.txt
tailscaled.state
certs:
acme-account.key.pem
openwrt.mydomain.ts.net.crt
openwrt.mydomain.ts.net.key
files:
dieterplex-gmail.com-uid-00000000000000000/
Appending both params also works. But to persist on reboots, using /etc/tailscale
do the trick I think. wdyt?
from openwrt-tailscale-enabler.
Ah makes sense. I think we can keep the state file as it is (in /etc/config so that it is backed up by openwrt) and set the stateDir to /etc/tailscale so that it persists.
Would you like to send a quick PR?
from openwrt-tailscale-enabler.
Related Issues (20)
- How do i uninstall it? HOT 1
- Disable auto-update HOT 3
- Headscale not able to access automatically HOT 3
- Unable to establish SSL connection when "tailscale up" HOT 2
- how to Uninstall tailscale on openwrt HOT 1
- can not up,when wget HOT 6
- it's keep downloading tailscale HOT 1
- Step error HOT 2
- Everytime reboot openwrt, tailscale can't work HOT 5
- Unusual use after openwrt restart HOT 3
- bug HOT 3
- requests & bug: stable version for architectures are differents
- unable to start the service, due to update probably
- Kenapa downloadingnya ke versi tailscale 1.52.1 ? padahal sy instal tgz dari link update terbaru ? HOT 1
- Can't install Tailscale - init.d permissions & bin/tailscaled - read-only HOT 2
- how to fix the client version != server version HOT 4
- Got error: Failed to connect to local Tailscale daemon for /localapi/v0/status HOT 1
- Please teach me! HOT 1
- not issue but a question HOT 1
- please support openwrt version with nftbales HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwrt-tailscale-enabler.