You need an account on tailscale. You must have a already registered provider account on Google/Microsoft/GitHub/Apple or any OIDC provider.
(Free account until 100 registered devices)
Copy the following content into ACLs tab:
{
"tagOwners": {
"tag:follower": ["autogroup:admin"],
"tag:gw": ["autogroup:admin"],
},
"acls": [
{
"action": "accept",
"src": ["autogroup:admin"],
"dst": ["tag:gw:*", "tag:follower:*"],
},
{"action": "accept", "src": ["tag:follower"], "dst": ["tag:gw:*"]},
],
}
These ACLs rules:
For more information, refers to tailscale documentation about authkey
Under Settings
, click on Keys
, then Generate auth key
.
sudo apt update && sudo apt upgrade
sudo apt install tailscale
sudo tailscale up --authkey tskey-abcdef1432341818
Replace tskey-abcdef1432341818
by your generated key.
Once connected, you can check the tailscale status:
admin@klk-wifc-0304af:~# sudo systemctl status tailscaled.service
● tailscaled.service - Tailscale node agent
Loaded: loaded (/usr/lib/systemd/system/tailscaled.service; enabled; preset: enabled)
Active: active (running) since Tue 2024-07-02 13:26:16 UTC; 17min ago
Docs: https://tailscale.com/kb/
Process: 29877 ExecStartPre=/usr/sbin/tailscaled --cleanup (code=exited, status=0/SUCCESS)
Main PID: 29906 (tailscaled)
Status: "Connected; xxxx@xxxx.com; 100.65.8.51 fd7a:115c:a1e0::xx:xx"
IP: 856.3K in, 420.7K out
Tasks: 12 (limit: 489)
Memory: 35.3M
CPU: 15.389s
CGroup: /system.slice/tailscaled.service
└─29906 /usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled…
Jul 02 13:43:42 klk-wifc-0304af tailscaled[29906]: LinkChange: major, rebind…ue}
Jul 02 13:43:42 klk-wifc-0304af tailscaled[29906]: dns: Set: {DefaultResolve…:1}
Jul 02 13:43:42 klk-wifc-0304af tailscaled[29906]: dns: Resolvercfg: {Routes…pa}
Jul 02 13:43:42 klk-wifc-0304af tailscaled[29906]: dns: OScfg: {Nameservers:…] }
Jul 02 13:43:42 klk-wifc-0304af systemd[1]: tailscaled.service: Got notifica…906
Jul 02 13:43:42 klk-wifc-0304af tailscaled[29906]: restarted resolved after …7ms
Jul 02 13:43:42 klk-wifc-0304af tailscaled[29906]: wgengine: set DNS config …nge
Jul 02 13:43:42 klk-wifc-0304af tailscaled[29906]: Rebind; defIf="wlan0", ip…64]
Jul 02 13:43:42 klk-wifc-0304af tailscaled[29906]: magicsock: 1 active derp …26s
Jul 02 13:43:43 klk-wifc-0304af tailscaled[29906]: post-rebind ping of DERP …kay
Hint: Some lines were ellipsized, use -l to show in full.
On tailscale account, you should also see your gateway connected
After tailscale installation on your computer/smartphone, gateway services (SSH, WebUI, ...) are finally easily accessible.