All Projects → dec0dOS → zero-ui

dec0dOS / zero-ui

Licence: GPL-3.0 license
ZeroUI - ZeroTier Controller Web UI - is a web user interface for a self-hosted ZeroTier network controller.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to zero-ui

docker-zerotier-controller
Dockernized ZeroTierOne Controller
Stars: ✭ 170 (-60.65%)
Mutual labels:  zerotier, zerotier-one, zero-ui, zerotier-controller
Zerotierone
A Smart Ethernet Switch for Earth
Stars: ✭ 7,839 (+1714.58%)
Mutual labels:  vpn, sdn, sd-wan
swanc
🦆 StrongSwan based VPN Controller for Kubernetes
Stars: ✭ 31 (-92.82%)
Mutual labels:  vpn, sdn-controller
husarnet
Husarnet is a Peer-to-Peer VPN to connect your laptops, servers and microcontrollers over the Internet with zero configuration.
Stars: ✭ 128 (-70.37%)
Mutual labels:  vpn, sdn
Libzt
ZeroTier Sockets - Put a network stack in your app
Stars: ✭ 486 (+12.5%)
Mutual labels:  vpn, sdn
nconnect
Securely connect to remote machines without the need of any server, public IP address, or publicly exposed ports.
Stars: ✭ 38 (-91.2%)
Mutual labels:  vpn, sdn
Vedetta
OpenBSD Router Boilerplate
Stars: ✭ 260 (-39.81%)
Mutual labels:  vpn, sdn
v-switch
Virtual Encrypted Switch across the network, using UDP + AES + TAP
Stars: ✭ 27 (-93.75%)
Mutual labels:  vpn, sdn
python-openflow
Low level OpenFlow messages parser used by Kytos SDN Platform
Stars: ✭ 44 (-89.81%)
Mutual labels:  sdn, sdn-controller
Terraform Provider Zerotier
Create, modify and destroy ZeroTier networks and members through Terraform.
Stars: ✭ 113 (-73.84%)
Mutual labels:  vpn, sdn
addon-zerotier
ZeroTier One - Home Assistant Community Add-ons
Stars: ✭ 103 (-76.16%)
Mutual labels:  vpn, zerotier
ZerotierFix
An unofficial Zerotier Android client patched from official client
Stars: ✭ 855 (+97.92%)
Mutual labels:  zerotier, zerotier-one
pilot
Simple web-based SDN controller for family and friends
Stars: ✭ 33 (-92.36%)
Mutual labels:  sdn, sdn-controller
pathman-sr
Pathman SR is an open-source app to compute paths and deploy routes in Segment Routing-enabled network.
Stars: ✭ 79 (-81.71%)
Mutual labels:  sdn
wgctl
Utility to configure and manage your WireGuard tunnels
Stars: ✭ 59 (-86.34%)
Mutual labels:  vpn
VpnHood
Undetectable Fast Portable VPN
Stars: ✭ 349 (-19.21%)
Mutual labels:  vpn
terraform-aws-pritunl-vpn-server
Pritunl VPN Server for your public/private like VPC on AWS
Stars: ✭ 40 (-90.74%)
Mutual labels:  vpn
ansible-tinc
Role to install tinc in a star/ring topology (w/ leaf/spine) (based on your variables)
Stars: ✭ 15 (-96.53%)
Mutual labels:  vpn
addon-tailscale
Tailscale - Home Assistant Community Add-ons
Stars: ✭ 47 (-89.12%)
Mutual labels:  vpn
woodpecker
Custom security distro for remote penetration testing
Stars: ✭ 45 (-89.58%)
Mutual labels:  vpn

Logo

ZeroUI - ZeroTier Controller Web UI - is a web user interface for a self-hosted ZeroTier network controller.
Explore the screenshots »

Bug Report · Feature Request · Ask a Question

Table of Contents

About

This project is highly inspired by ztncui and was developed to address the current limitations of applying the self-hosted network controllers. Some ztncui problems cannot be fixed because of the core architecture of the project. ZeroUI tries to solve them and implements the following features:

  • Full React-powered lightweight SPA that brings a better user experience, and ZeroUI is mobile-friendly.
  • ZeroUI has ZeroTier Central compatible API. That means you could use CLI tools and custom applications made only for ZeroTier Central to manage your networks.
  • ZeroUI implements controller-specific workarounds that address some existing issues. ZTNCUI does not.
  • ZeroUI is more feature complete. ZeroUI has almost all network-controller-supported features, for example, rule editor. The development process hasn't stopped, so you will enjoy new features and bug fixes shortly.
  • ZeroUI deployment is simple. Please refer to installation for more info.
Wait, I haven't heard about ZeroTier yet...

ZeroTier is awesome open source project that is available on wide range of platforms. Most of your hard networking problems could be solved with ZeroTier. It could replace all your complex VPN setups. You can place all your devices on a virtual LAN and manage it easily.

To sum up, ZeroTier combines the capabilities of VPN and SD-WAN, simplifying network management.

Built With

Frontend:

Backend:

Ready to use deployment solution:

Getting Started

Prerequisites

The recommended method to install ZeroUI is by using Docker and Docker Compose. To install Docker and Docker Compose on your system, please follow the installation guide from the official Docker documentation.

For HTTPS setup you will need a domain name. You can get it for free at https://www.duckdns.org.

Installation

The most simple one-minute installation. Great for the fresh VPS setup.

  1. Create a project directory
mkdir -p /srv/zero-ui/
cd /srv/zero-ui/
  1. Download the docker-compose.yml file
wget https://raw.githubusercontent.com/dec0dOS/zero-ui/main/docker-compose.yml

or

curl -L -O https://raw.githubusercontent.com/dec0dOS/zero-ui/main/docker-compose.yml
  1. Replace YOURDOMAIN.com with your domain name and set admin credentials (ZU_DEFAULT_PASSWORD) in docker-compose.yml
  2. Pull the image
docker pull dec0dos/zero-ui
  1. Run the containers
docker-compose up -d --no-build
  1. Check if everything is okay (CTRL-C to stop log preview)
docker-compose logs -f
  1. Disable your firewall for the following ports: 80/tcp, 443/tcp and 9993/udp
  • on Ubuntu/Debian with ufw installed:
 ufw allow 80/tcp
 ufw allow 443/tcp
 ufw allow 9993/udp
  • or you may use the old good iptables:
 iptables -A INPUT -p tcp --dport 80 -j ACCEPT
 iptables -A INPUT -p tcp --dport 443 -j ACCEPT
 iptables -A INPUT -p udp --dport 9993 -j ACCEPT
  1. Navigate to https://YOURDOMAIN.com/app/. Now you could use your ZeroUI instance with HTTPS support and automated certificate renewal.

To disable Caddy proxy and HTTPS, remove the https-proxy from docker-compose.yml, set ZU_SECURE_HEADERS to false and change zero-ui port expose to ports.

Advanced manual setups are also supported. Check the following environment variables as a reference:

Name Default value Description
NODE_ENV unset You could learn more here
LISTEN_ADDRESS 0.0.0.0 Express server listen address
ZU_SERVE_FRONTEND true You could disable frontend serving and use ZeroUI instance as REST API for your ZeroTier controller
ZU_SECURE_HEADERS true Enables helmet
ZU_CONTROLLER_ENDPOINT http://localhost:9993/ ZeroTier controller API endpoint
ZU_CONTROLLER_TOKEN from /var/lib/zerotier-one/authtoken.secret ZeroTier controller API token
ZU_DEFAULT_USERNAME unset (docker-compose.yml: admin) Default username that will be set on the first run
ZU_DEFAULT_PASSWORD unset (docker-compose.yml: zero-ui) Default password that will be set on the first run
ZU_DATAPATH data/db.json ZeroUI data storage path
ZU_DISABLE_AUTH unset If set to true, automatically log in all users. This is useful if ZeroUI is protected by an authentication proxy. Note that when this value is changed, the localStorage of instances of logged-in panels should be cleared
ZU_LAST_SEEN_FETCH true Enables Last Seen feature
ZU_LAST_SEEN_SCHEDULE */5 * * * * Last Seen cron-like schedule

ZeroUI could be deployed as a regular nodejs web application, but it requires a ZeroTier controller that is installed with the zerotier-one package. For more info about the network controller, you could read here.

For Ansible Role, please refer to zero-ui-ansible repo.

Controller setup tips (outside the Docker)

If you are using the existing controller on the host, it may be necessary to allow connection from the Docker container. You could do it in two ways:

  1. Allowing controller management from any IP address:
echo "{\"settings\": {\"portMappingEnabled\": true,\"softwareUpdate\": \"disable\",\"allowManagementFrom\": [\"0.0.0.0/0\"]}}" > /var/lib/zerotier-one/local.conf

Warning: don't forget to block connections to 9993/TCP from WAN. Direct controller API does not mean to be exposed to WAN, it should be proxified via the ZeroUI backend.

  1. Adding network_mode: "host" to zero-ui in docker-compose.yml.

More info is provided in the following discussion.

Usage

After installation, log in with your credentials that are declared with ZU_DEFAULT_USERNAME and ZU_DEFAULT_PASSWORD.

Currently, almost all main ZeroTier Central features are available. Refer to the roadmap for more information.

For the screenshots, please refer to the screenshots.

Update

To get the latest version just run

docker-compose pull && docker-compose up -d --no-build

in the folder where docker-compose.yml is located. Backup is not required as your data is saved in Docker volumes but recommended. You could also set up watchtower for automatic updates.

docker run -d \
 --name watchtower \
 -v /var/run/docker.sock:/var/run/docker.sock \
 --restart always \
 containrrr/watchtower \
 --cleanup --include-restarting \
 zu-main zu-controller

Backup

You should regularly back up the zerotier-one and data folders in your ZeroUI installation directory. You should do it manually before the upgrade via the following commands:

tar cvf backup-ui.tar data/
tar cvf backup-zt.tar zerotier-one/

Roadmap

See the open issues for a list of proposed features (and known issues).

GitHub issues open

Please try to create bug reports that are:

  • Reproducible. Include steps to reproduce the problem.
  • Specific. Include as much detail as possible: which version, what environment, etc.
  • Unique. Do not duplicate existing opened issues.
  • Scoped to a Single Bug. One bug per report.

Contributing

First off, thanks for taking the time to contribute! Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.

  1. Fork the project
  2. Create your feature branch (git checkout -b feat/amazing_feature)
  3. Commit your changes (git commit -m 'feat: add amazing_feature')
  4. Push to the branch (git push origin feat/amazing_feature)
  5. Open a Pull Request

ZeroUI uses conventional commits, so please follow the guidelines. Run yarn commit to open TUI that follows conventional commits guidelines.

Development environment

To set up a development environment, please follow these steps:

  1. Clone the repo
git clone https://github.com/dec0dOS/zero-ui.git
cd zero-ui
  1. Install packages
yarn install
  1. Start the development server
yarn dev
  1. Navigate to http://localhost:3000

It is also required to install the ZeroTier controller. On Linux installing the zerotier-one package is enough, other platforms require some tweaking. Firstly you should get the controller token. On macOS, you could find it with the following command:

sudo cat "/Library/Application Support/ZeroTier/One/authtoken.secret"

After you could start the ZeroUI development environment:

ZU_CONTROLLER_TOKEN=TOKEN_FROM_authtoken.secret yarn dev

For other platforms, please refer to ZeroTier manual.

Support

Reach out to me at one of the following places:

Security

ZeroUI follows good practices of security, but 100% security cannot be assured. ZeroUI is provided "as is" without any warranty. Use at your own risk.

For enterprise support, a more reliable and scalable solution, please use ZeroTier Central.

For more information and to report security issues, please refer to our security documentation.

Copyright notice

ZeroUI is not affiliated or associated with or endorsed by ZeroTier Central or ZeroTier, Inc.

License

License: GPL v3

See LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].