This stack uses ZerotierOne, the ztncui and traefik reverse proxy
ZeroTier combines the capabilities of VPN and SD-WAN, simplifying network management and emulates Layer 2 Ethernet with multipath, multicast, and bridging capabilities. This softwarte is used to create zero-trust decentralized networks. https://www.zerotier.com/
Traefik is used as a reverse proxy to be able to host additional webservices and for easier SSL certification. https://traefik.io/
The stack contains of the ztncui
container, which includes the zerotier-one network controller and the web interface. In addition traefik
is included as areverse proxy to handle SSL connection and certification as well as an access log.
mkdir /zerotraefik
mkdir /zerotraefik/traefik
- Create a certificat signing request:
openssl req -new -newkey rsa:2048 -nodes -keyout privkey.key -out server.csr
- Buy certificat
- Upload cert to
/zerotraefik/treafik
- Copy
privkey.key
into/zerotraefik/treafik
- https://letsencrypt.org/getting-started/
- Symlink certifiactes
ln -s /etc/letsencrypt/live/(your.domain.here)/cert.pem /zerotraefik/treafik/certificate.crt
ln -s /etc/letsencrypt/live/(your.domain.here)/privkey.pem /zerotraefik/treafik/privkey.key
Put traefik.yaml
into /zerotraefik/traefik
Set password in ztncui
under environment
- ZTNCUI_PASSWD=
Set domain in ztncui
under environment
- MYDOMAIN=
docker-compose up -d
Test deployment by goning to https://(your.domain.here)
and login with the password set in the docker-compse
for ztncui
under environment
- ZTNCUI_PASSWD
- Log into the
ztncui
via browser inhttps://(your.domain.here)
- Click
Add network
- Enter the
Network name
and clickCreate Network
- Click on tab
Private
and ensure Access control is enabled - Click
Easy setup
and set network subnet and the start and end of the IP assignment pool - Finish by clicking the
Submit
Button - If a DNS server is implemented go to tab
DNS
and enter theDomain
as well as the by zerotier asigned IP adresses for the DNSServers
- Download and install the zerotier-client for the operatingsystem which can be found at
https://www.zerotier.com/download/
- Join a network by entering the 16 digit
network id
shown for the network by theztncui
webinterface - Name and authorize the client in the webinterface
- If needed set a static IP by clicking the assigned IP and set it and delete the automaticly assigned IP