Skip to content

Commit

Permalink
note on tailscale
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Apr 18, 2024
1 parent c888480 commit a82e8c8
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions user-guide/30-Advanced/02-remote-access/03-tailscale.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,20 @@ Tailscale is a really really cool service! You may find yourself using it for ot
4. [SSH into your leader Pioreactor](/user-guide/accessing-raspberry-pi). Install Tailscale for Raspberry Pi with the following: `curl -fsSL https://tailscale.com/install.sh | sh`. You don't need to install anything on the workers.
5. Back in your [Tailscale admin](https://login.tailscale.com/admin/machines), you should see two machines: your computer and the leader Pioreactor. Make note of the ipv4 address for the leader - we will use it below.
6. You should still be able to access `http://pioreactor.local` without any problems.
8. In your config.ini, add your ipv4 address to::
```
[mqtt]
...
broker_address=<ipv4 address>
...
```
8. In your config.ini, add your ipv4 address to the `[mqtt]` section:
```
[mqtt]
...
broker_address=<ipv4 address>
...
```

If you have other Pioreactors in your cluster: you likely won't be adding those to tailscale (only adding the leader is necessary for remote access), so in each of the worker config files, add:
```
[mqtt]
broker_address=<leader name>.local
```
And save. This means that your workers will connect "locally" (over the local network), but the UI and will connect "remotely".

7. Now, when you leave the local network, and if you have internet access, you can turn your VPN on and still access `http://<ipv4 address>`. Troubleshooting: try `http://<hostname>`, but confirm that magicDNS is on, too.
8. You can use the Tailscale admin to add users to your VPN, too.

0 comments on commit a82e8c8

Please sign in to comment.