# Tailscale VPN

[![image.png](https://bookstack.notflix.pknw1.co.uk/uploads/images/gallery/2026-02/scaled-1680-/image.png)](https://bookstack.notflix.pknw1.co.uk/uploads/images/gallery/2026-02/image.png)

🔗[Tailscale Installation Guide](https://tailscale.com/docs/install/linux)

`curl -fsSL https://tailscale.com/install.sh | sh`

```
sudo tailscale up --auth-key=<your-key> --advertise-exit-node

```

[![FireShot Capture 018 - ks5 - Tailscale - login.tailscale.com.png](https://bookstack.notflix.pknw1.co.uk/uploads/images/gallery/2026-02/scaled-1680-/Orofireshot-capture-018-ks5-tailscale-login-tailscale-com.png)](https://bookstack.notflix.pknw1.co.uk/uploads/images/gallery/2026-02/Orofireshot-capture-018-ks5-tailscale-login-tailscale-com.png)

<table border="1" id="bkmrk-tailscale-startup-%C2%A0-" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 41.3691%;"></col><col style="width: 58.7501%;"></col></colgroup><tbody><tr><td>##### Tailscale Startup

When the server restarts, it takes around 180 seconds for tailscalae to connect and be avialable.

SSH should ONLY be on the tailscale IP

</td><td>```
[Unit]
Description=Wait for Tailscale and start SSH
After=network-online.target tailscaled.service
Wants=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/local/bin/wait-for-ssh.sh
RemainAfterExit=true

[Install]
WantedBy=multi-user.target
cat: /etc/systemd/system/ssh.service.requires: Is a directory
cat: /etc/systemd/system/sshd-keygen@.service.d: Is a directory

#wait-for-ssh
#!/bin/bash
while ! ip addr show tailscale0 | grep -q "inet "; do
    sleep 2
done
systemctl start ssh
root@ks5:/home/apps/cor
```

</td></tr></tbody></table>