2021-07-03 05:34:16 +00:00
|
|
|
# Run ZeroTier VPN on your UDM
|
|
|
|
|
|
|
|
## Install
|
2023-02-22 16:49:54 +00:00
|
|
|
|
|
|
|
1. Copy 20-zerotier.sh to /data/on_boot.d
|
2021-07-03 05:34:16 +00:00
|
|
|
2. Create directories for persistent Zerotier configuration
|
|
|
|
|
|
|
|
```
|
2023-02-22 16:49:54 +00:00
|
|
|
mkdir -p /data/zerotier-one
|
2021-07-03 05:34:16 +00:00
|
|
|
```
|
2023-02-22 16:49:54 +00:00
|
|
|
|
2021-07-03 05:34:16 +00:00
|
|
|
3. Start the zeriotier container
|
|
|
|
```
|
|
|
|
podman run -d \
|
|
|
|
--name zerotier-one \
|
|
|
|
--device=/dev/net/tun \
|
|
|
|
--net=host \
|
|
|
|
--cap-add=NET_ADMIN \
|
|
|
|
--cap-add=SYS_ADMIN \
|
|
|
|
--cap-add=CAP_SYS_RAWIO \
|
2023-02-22 16:49:54 +00:00
|
|
|
-v /data/zerotier-one:/var/lib/zerotier-one \
|
2021-07-03 05:34:16 +00:00
|
|
|
bltavares/zerotier
|
|
|
|
```
|
|
|
|
4. Join your zerotier network
|
|
|
|
```
|
|
|
|
podman exec zerotier-one zerotier-cli join <your network id>
|
|
|
|
```
|