Skip to main content

Tailscale VPN

 

🔗Tailscale Installation Guide

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

 

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 

[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