-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart.sh
More file actions
17 lines (12 loc) · 692 Bytes
/
Copy pathstart.sh
File metadata and controls
17 lines (12 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# Install Tailscale
curl -fsSL https://tailscale.com/install.sh | sh
# Start Tailscaled
sudo tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/var/run/tailscale/tailscaled.sock --tun=userspace-networking --socks5-server=localhost:1055 --outbound-http-proxy-listen=localhost:1055 &
# Start Tailscale
sudo tailscale up --ssh --auth-key=${TAILSCALE_AUTHKEY} --hostname=${TAILSCALE_HOSTNAME} --advertise-exit-node ${TAILSCALE_ADDITIONAL_ARGS} || sudo tailscale up --ssh --auth-key=${TAILSCALE_AUTHKEY} --hostname=render-vpn
--advertise-exit-node ${TAILSCALE_ADDITIONAL_ARGS}
# Enable SSH
# sudo tailscale up --ssh
# Keep the container running
exec sleep infinity