Tailscale VPN

🔗Tailscale Installation Guide
curl -fsSL https://tailscale.com/install.sh | sh
Â
sudo tailscale up --auth-key=<your-key> --advertise-exit-node
Â

Â
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
|
Â