Files
shell-scripts/0-部署应用/Oracle-Cloud/k3s集群/Seoul-amd64-01.sh
2024-11-28 16:42:36 +08:00

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