VergMesh
The agent
The agent is one shell script. It needs Linux with WireGuard (kernel 5.6 or newer), and it must run as root because it creates a network interface.
Install
Add a node in the console and run the command it shows on that machine:
curl -fsSL https://api.cloudverg.com/install.sh | sudo sh -s -- --token vgm_...The installer adds the WireGuard tools, nftables and curl from your distribution's packages, downloads the agent, checks it against its published SHA-256, and joins. You can read both scripts first: install.sh and verg-agent.sh.
What it touches
- One interface,
verg0. - Routes in its own routing table (7710), with two routing rules. The machine's main routing table is not changed, and routes the machine already has always win over mesh routes. WireGuard's own packets are marked and skip the mesh table, so a route can never swallow the tunnel itself.
- One nftables table,
inet verg. It never edits another table. net.ipv4.ip_forward, switched on for gateways and hubs.- Files in
/etc/verg(the key and the node's credential) and/run/verg. - A systemd service,
verg-agent.
What it sends
Every 30 seconds: its version, the host name, kernel and distribution, the last handshake time and byte counts for each peer, ping times to the other nodes, the private networks the machine is attached to, and counters for its firewall rules. Never the private key, and never the contents of your traffic.
What the console can ask it to do
Apply peers, routes and rules as above, and run four measurements: ping, path MTU discovery, a route trace and an iperf3 throughput test, each only against an address inside your own network. There is no way to send a shell command to an agent.
Commands
verg-agent status # tunnel, peers and last applied configuration
verg-agent sync # ask the console now instead of waiting
verg-agent reset # leave the network and delete this machine's key
verg-agent uninstall # reset, then remove the service and the scriptFirewalls on the machine
A gateway forwards traffic between the tunnel and its LAN. If the machine runs ufw or Docker, their rules drop forwarded packets by default. The node's page in the console says so when it sees this. With ufw:
ufw route allow in on verg0
ufw route allow out on verg0