Self-hosted · WireGuard · MikroTik

A VPN network
you can see.

Visual VPN is a panel for designing and running hub-and-spoke WireGuard networks. MikroTik routers, laptops, phones and servers share one topology, and access between them is something you draw as a connection.

Linux Hub|Docker · GHCR|PL / EN|Light and dark theme
Visual VPN access inspector: flows from groups and devices to services with ports
Access inspector — who, where, on which ports
Hub-and-spoke model Every device has a WireGuard tunnel to the Hub only. Traffic from the laptop to the server passes through the Hub and its rules. There is no direct tunnel between devices. ✕ no direct tunnel HUB WireGuard · nftables · DNS Head office MikroTik · 192.168.10.0/24 Branch MikroTik · 192.168.88.0/24 Phone Technician laptop WireGuard · QR / .conf Server / NAS tcp/443 for the laptop only

How it works

Hub-and-spoke: one centre, everything under control

  • Every device has exactly one tunnel — to the Hub. Routers, laptops and phones never build tunnels to each other.
  • Traffic between nodes goes through the Hub. That is where nftables decides who may reach what.
  • Everything is denied by default. Access exists only once you draw a connection or a rule to a service.
  • The Hub is your own Linux server. Visual VPN manages WireGuard, routes and DNS on it, and MikroTik satellites through their REST API.

Features

What you get

Live topology

Devices, groups, services and connections on one canvas, with online status and traffic taken from WireGuard handshakes.

Rules instead of scripts

A connection from a group to a service becomes nftables rules on the Hub. The access inspector shows what is actually allowed.

MikroTik without manual setup

The panel generates a WireGuard script for RouterOS 7, then maintains the router over REST: routes, subnet mapping, backups and metrics.

Same subnets in many branches

Two offices on 192.168.88.0/24? Visual VPN maps LANs onto a virtual address pool, so nothing needs renumbering.

Clients in a minute

Automatic VPN address, a downloadable WireGuard config or a QR code for phones.

Monitoring and alerts

Status history, client statistics and notifications via Telegram or e-mail when something stops responding.

Backups

Encrypted export and import of the whole configuration, plus scheduled MikroTik backups.

Your data, your server

The panel runs in Docker on your own Debian. No broker cloud, no vendor account.

Demo

Try it without installing

The demo is the full panel with a fictional bakery chain network: 12 routers, laptops, phones, servers and 11 rule tabs. Move nodes, add connections, press APPLY — nothing reaches a real network.

The demo is shared by all visitors and returns to its initial state every hour (or with the “Reset” button). Do not enter real data. The demo data is in Polish; the interface itself switches between Polish and English.

Open the demo

Install

Installing from GHCR

Visual VPN installs from ready-made images in the GitHub Container Registry. The installer is fetched from there as a public artifact — no login and no source code required.

System
Clean Debian 13, amd64 / x86_64 (VM, LXC container or VPS), root access and Internet. No ARM images are built.
Resources
1 vCPU, 1 GB RAM and 8 GB of disk are enough to start.
Kernel
The WireGuard module and /dev/net/tun. In LXC the Proxmox host provides them (the Proxmox script sets this up).
Ports
Free TCP 80 and 443 (panel) and a WireGuard UDP port — 13231 by default.
Address
A public IP or DNS name of the server that clients can reach. Behind NAT you need UDP port forwarding.
Dedicated
Use a dedicated system: the installer installs nginx and takes over its default site.
  1. Download the installer from GHCR

    As root, on the server that will become the Hub. The ghcr.io/winacz/visualvpn-new-installer artifact contains the scripts and the Compose file.

    apt-get update && apt-get install -y curl ca-certificates
    REPO=winacz/visualvpn-new-installer
    TOKEN=$(curl -fsS "https://ghcr.io/token?scope=repository:$REPO:pull" | sed -n 's/.*"token":"\([^"]*\)".*/\1/p')
    LAYER=$(curl -fsS -H "Authorization: Bearer $TOKEN" \
      -H "Accept: application/vnd.oci.image.manifest.v1+json" \
      "https://ghcr.io/v2/$REPO/manifests/latest" \
      | tr ',' '\n' | sed -n 's/.*"digest":"\(sha256:[0-9a-f]*\)".*/\1/p' | tail -1)
    curl -fsSL -H "Authorization: Bearer $TOKEN" "https://ghcr.io/v2/$REPO/blobs/$LAYER" -o installer.tar.gz
    mkdir -p /root/vvpn-install && tar -xzf installer.tar.gz -C /root/vvpn-install
  2. Read the script

    You run it as root, so know what it does: installs Docker and nginx, creates secrets, pulls the visualvpn-new-backend and visualvpn-new-frontend images and starts them.

    cd /root/vvpn-install/docker
    less install-docker.sh
  3. Run the installation

    Use your own public address or domain of the Hub — without https://, port or path. Without ENDPOINT_HOST the installer uses the server's local address, which behind NAT is usually unreachable from the Internet.

    ENDPOINT_HOST=vpn.your-domain.com WG_PORT=13231 APP_TIMEZONE=Europe/Warsaw \
      bash ./install-docker.sh

    At the end the script checks the backend's /health and prints the panel address.

  4. Open the WireGuard port

    On your edge router forward UDP 13231 to the server and open it in the provider's firewall (VPS). See Caveats.

  5. First login

    Go to https://SERVER_ADDRESS. The certificate is self-signed, so the browser will warn you. Log in as admin / admin — the wizard forces a new password and confirms the Hub address, port and addressing.

  6. Add your first devices

    MikroTik router (RouterOS 7): add it in the panel, download the generated WireGuard script and paste it into the router terminal. Computer or phone: download the config or scan the QR code in the WireGuard app. Then draw connections — without them traffic is blocked.

Updating

The installer adds the aktualizacja (“update”) command. It backs up the database, pulls new images from GHCR, recreates the containers and checks the backend. Tunnels may drop briefly.

sudo aktualizacja --sprawdz   # check only
sudo aktualizacja             # update
sudo aktualizacja --wersja sha-1234567   # specific version

Where the data lives

Back these directories up off the server. Without master_key encrypted secrets cannot be recovered.

/var/lib/visual-vpn     # database, router backups
/etc/visual-vpn         # master_key, JWT, certificate
/opt/visualvpn-new      # docker-compose.yml and .env

Caveats

Before you connect the first branch

01WireGuard port forwarding

Without it no client on the Internet can reach the Hub. The panel works, but tunnels never come up.

  • On the edge router forward UDP (not TCP) to the server — same external and internal port, 13231 by default.
  • On a VPS open the port in the provider's firewall (security group / cloud firewall), not only in the OS.
  • Changing the port in the panel does not change the router's forwarding — update it by hand.
  • To verify: the client should show a fresh handshake in Statistics. /health only confirms the panel, not the VPN.

02Public address and CGNAT

If your ISP gives you no public IP (CGNAT, some mobile and fibre networks), forwarding will not help. Put the Hub on a VPS instead. With a changing IP, use a DDNS name as the Hub address.

03The Hub is a single point

All traffic between nodes goes through the Hub. Its uplink limits the throughput of the whole network, and if it fails, communication stops. Pick a location with a good uplink and keep backups.

04Panel access

Change the admin password on first login. Never expose ports 8000 and 8081 — the panel is served by nginx on 443. Restrict access to trusted addresses or make the panel reachable only through the tunnel.

05Deny by default

Once connected, devices only see the Hub. That is intended: you grant access with connections and service rules. If “nothing works”, check the access inspector first.

License

Free for non-commercial use

Visual VPN is available under the PolyForm Noncommercial 1.0.0 license. You may use and modify it free of charge for non-commercial purposes: personal, hobby, study and research, as well as in non-profits, schools and public institutions.

Commercial use — e.g. inside a company or as a service for customers — requires separate permission from the author. The full license text prevails.

Commercial use?

Get in touch via GitHub, describe your use case, and we will agree on terms.

github.com/winacz