19 lines
618 B
Bash
19 lines
618 B
Bash
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
|
|
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install tailscale
|
|
|
|
systemctl enable --now tailscaled
|
|
|
|
tailscale up --login-server=http://tailscale.107421.xyz --accept-routes=false --accept-dns=false --advertise-routes=10.100.0.0/16,10.74.0.0/16
|
|
|
|
|
|
systemctl status tailscaled
|
|
|
|
headscale routes enable -i 26 -r 10.74.0.0/16,10.100.0.0/16
|