8000 GitHub - Yari55/docker-zerotier-server
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Yari55/docker-zerotier-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-zerotier-server

Overview

Features:

  • Fully functional, privately deployed Zerotier planet server with Official Controller and Controller UI (Zero-UI).
  • Automatically detect the public ipv4 address of the server and generate the planet file to download.
  • One-click deployment using docker-compose with small size docker image.
  • Support switch China source to build.

Getting Started

Prerequisites

  • A VPS with a static public ip (Open the following ports: 4000/tcp and 9993/udp)
  • docker and docker-compose installed

Installation

  1. Clone this repo to your VPS

    $ git clone https://github.com/hamlinzheng/docker-zerotier-server.git
  2. Modify the installation version of ZeroTier(default: 1.8.6) and Zero-UI(default: 1.2.1) in docker-compose.yml

  3. Build the images

    $ docker-compose build
  4. Run the containers in daemon

    $ docker-compose up -d
  5. Navigate to http://[PUBLIC_IP]:4000/app/ to config your private ZeroTier service.

Note:

  • This project does not provide HTTP reverse proxy, which needs to be deployed on the host machine.
  • Since the public network ip of the server needs to be detected, it needs to be compiled on the deployed server
  • A static key pair is used by default. You can use zerotier-idtool generate identity.secret identity.public command to generate a new key pair on the machine where ZeroTier is installed according to your own needs, and replace the config folder.

Peers Usage

Download private planet file from http://[PUBLIC_IP]:4000/app/static/planet and use it replace the peer's planet file. Then you can connect to your own ZeroTier planet server.

Linux

$ wget http://[PUBLIC_IP]:4000/app/static/planet -O /var/lib/zerotier-one/planet
$ sudo systemctl restart zerotier-one.service

Windows

Replace the planet file in the C:\ProgramData\ZeroTier\One path and restart the ZeroTier service.

Android

See kaaass/ZerotierFix

OpenWrt

Replace the planet file in the /etc/config/zero path and restart the ZeroTier service with $ /etc/init.d/zerotier restart

TODO

  • Optimize the docker image size of zero-ui
  • Support IPv6
  • Support domain

Acknowledgement

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%
0