tailscale
Uses my dotfiles on Fedora
Daemon
$ tailscaled &
$ systemctl start tailscaled
Control client
$ tailscale
Control server
$ tailscale up
To authenticate, visit:
https://login.tailscale.com/a/8e1c9e44ca05
Success.
$ tailscale up
Now network should have 2 nodes
$ tailscale ping ngage
pong from ngage (100.103.237.1) via 10.0.21.193:41642 in 2ms
VM
$ watch -n1 \
tailscale status
Codespace
$ tailscale ping [nodename]
Uses a relay to establish a path (DERP)
100.103.237.1 ngage gbraad@ linux active; direct 10.0.21.193:41642
$ tailscale up
$ tailscale status
100.112.112.8 workspace-to8ua08 gbraad@ linux -
100.103.237.1 ngage gbraad@ linux -
100.88.207.80 ngage-podman gbraad@ linux -
100.77.26.55 codespaces-88c2bb gbraad@ linux -
Sender
$ echo "Hello, World" > hello
$ tailscale file \
cp hello [nodename]:
Receiver
$ tailscale file \
get ~/Downloads/
$ cat hello
You could use ssh
for this, but does your phone?
Host
$ tailscale up \
--ssh # advertise SSH
Client
$ tailscale ssh [nodename]
$ ssh [nodename] # * MagicDNS needs to be enabled
Use of nodename
will only work when MagicDNS is used
$ tailscaled \
--tun=userspace-networking \
--socks5-server=localhost:3215
$ curl \
--proxy socks5://localhost:3215\
https://ifconfig.co/json
Host
$ tailscale up \
--advertise-exit-node
Client
$ tailscale up \
--exit-node=[nodename] \
--exit-node-allow-lan-access
$ curl ifconfig.co
Make sure to allow the use of the exit node from the control server
Set up private services