Sign inSign up

yeswanthkumar97/zerotier

By yeswanthkumar97

Updated almost 2 years ago

ZeroTier inside a Docker Image with Full Tunnel Mode (VPN Exit Node) Support

Image
Networking
Security
Internet of things
0

1.3K

yeswanthkumar97/zerotier repository overview

zerotier

DESCRIPTION

This container is based on a Debian Linux image and a copy of ZeroTier One. It's designed to allow you to run ZeroTier One as a service on Docker with the option of Full Tunnel Mode (VPN Exit Node).

RUN

To run this container correctly requires some options to give it special permissions and allow it to persist its files. Here's an example

NOTE: Replace <NTW_ID> with your Zerotier Network ID and set EXIT_NODE=1 or 0 to enable or disable tunnel mode.

docker run -it -d \
--name myzerotier \
--restart=always \
--cap-add=NET_ADMIN \
--cap-add=SYS_ADMIN \
--net=host \
--device=/dev/net/tun \
-e NETWORK_ID=<NTW_ID> \
-e EXIT_NODE=1 \
-v /var/lib/zerotier-one:/var/lib/zerotier-one yeswanthkumar97/zerotier:latest

Warning: If you ran the container in Tunnel mode earlier and try to run it again in Non-Tunnel mode the tunnel connectivity will be retained as iptables and the Default route is not cleared from the Host. So if you are switching from Tunnel to Non-Tunnel mode, restart the Host once before starting the container.

Tag summary

Content type

Image

Digest

sha256:76ed8e6f0

Size

85.9 MB

Last updated

almost 2 years ago

docker pull yeswanthkumar97/zerotier