headscale相关命令
headscale users ls
headscale users create xxxheadscale preauthkeys create -e 10000d --reusable -u xxxx
headscale preauthkeys list -u xxxxxheadscale apikey create
headscale apikeys create -e 10000d
headscale apikey lsheadscale nodes ls
tailscale netchecktailscale ip -4 # 获取当前ip¡
tailscale down
tailscale up --login-server=https://yourdomain.com --authkey=xxxxxxxxx --accept-dns=false
tailscale up --login-server=https://yourdomain.com:443 --authkey=xxxxxxxxx --accept-dns=false --accept-routes --advertise-routes=192.168.22.0/24# 先查看当前的可用节点状况
tailscale status
# ping 请求延迟情况。mj 为其中一个节点
tailscale ping mjheadscale routes list -i 2
headscale routes enable -i 2 -r "192.168.1.0/24"
headscale routes enable -i 2 -r "192.168.1.0/24,192.168.0.0/24"
headscale routes enable -i 6 -a
ip route show table 52|grep "192.168.88.0/24"./tailscale up --login-server=https://yourdomain.com --authkey=hskey-auth-IX_uJ3GoaaUL-G41nR5yH8aVnZYdhzU5t4EDGecBMEycVlakw88AwyFyQjb-m-4u1DUIJyOM8Dijv --accept-dns=false --accept-routes --advertise-routes=192.168.22.0/24./tailscale up --login-server=https://yourdomain.com --authkey=hskey-auth-IX_uJ3GoaaUL-G41nR5yH8aVnZYdhzU5t4EDGecBMEycVlakw88AwyFyQjb-m-4u1DUIJyOM8Dijv --accept-dns=false --accept-routes --advertise-routes=192.168.88.0/24我的hashkey