Tailscale makes creating software-defined networks easy: securely connecting users, services, and devices.
You must first go to https://tailscale.com and click Get Started. After you create an account:
Make sure to save the key when it is displayed since it will not be displayed again!
services:
tailscale:
image: tailscale/tailscale
restart: unless-stopped
volumes:
- /mnt/tank/configs/tailscale:/var/lib
- /dev/net/tun:/dev/net/tun
environment:
- TS_AUTHKEY=
- TS_ROUTES=192.168.1.0/24
- TS_STATE_DIR=/var/lib/tailscale
- TS_EXTRA_ARGS=--advertise-exit-node
- TS_USERSPACE: false
network_mode: host
cap_add:
- NET_ADMIN
- NET_RAW
TS_ROUTES
for the CIDR address of the TrueNAS Server. For example, if your server is at 192.168.1.20 your CIDR address would be 192.168.1.0/24.To use Tailscale as a Split Tunnel
Find your TrueNAS Server and click the 3 dot menu and select Edit Route ➡ Subnet Routes ➡ check box to advertise
To use Tailscale as a Full Tunnel
Find your TrueNAS Server and click the 3 dot menu and select Edit Route ➡ Exit Node ➡ check box to Use as exit node