mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-11-27 07:06:03 +01:00
update public website
This commit is contained in:
@@ -0,0 +1,511 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
|
||||
|
||||
|
||||
<title>WireGuard Cluster · wireguard_webadmin</title>
|
||||
<meta name="description" content="Build a WireGuard cluster with wireguard_webadmin: worker nodes in mirror or distributed mode, automatic synchronization of peers, firewall and DNS, and the App Gateway on every node.">
|
||||
<link rel="canonical" href="https://wireguard-webadmin.com/wireguard-cluster/">
|
||||
|
||||
|
||||
|
||||
<link rel="alternate" hreflang="en-us" href="https://wireguard-webadmin.com/wireguard-cluster/">
|
||||
|
||||
<link rel="alternate" hreflang="pt-BR" href="https://wireguard-webadmin.com/pt-br/wireguard-cluster/">
|
||||
|
||||
<link rel="alternate" hreflang="es" href="https://wireguard-webadmin.com/es/wireguard-cluster/">
|
||||
|
||||
<link rel="alternate" hreflang="fr" href="https://wireguard-webadmin.com/fr/wireguard-cluster/">
|
||||
|
||||
<link rel="alternate" hreflang="de" href="https://wireguard-webadmin.com/de/wireguard-cluster/">
|
||||
|
||||
<link rel="alternate" hreflang="x-default" href="https://wireguard-webadmin.com/">
|
||||
|
||||
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://wireguard-webadmin.com/wireguard-cluster/">
|
||||
<meta property="og:title" content="WireGuard Cluster · wireguard_webadmin">
|
||||
<meta property="og:description" content="Build a WireGuard cluster with wireguard_webadmin: worker nodes in mirror or distributed mode, automatic synchronization of peers, firewall and DNS, and the App Gateway on every node.">
|
||||
<meta property="og:locale" content="en_US">
|
||||
|
||||
<meta property="og:locale:alternate" content="pt_BR">
|
||||
|
||||
<meta property="og:locale:alternate" content="es_ES">
|
||||
|
||||
<meta property="og:locale:alternate" content="fr_FR">
|
||||
|
||||
<meta property="og:locale:alternate" content="de_DE">
|
||||
|
||||
|
||||
<meta property="og:image" content="https://wireguard-webadmin.com/images/peer_list_dark_hu_84f9807efbbcd67e.jpg">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="630">
|
||||
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="WireGuard Cluster · wireguard_webadmin">
|
||||
<meta name="twitter:description" content="Build a WireGuard cluster with wireguard_webadmin: worker nodes in mirror or distributed mode, automatic synchronization of peers, firewall and DNS, and the App Gateway on every node.">
|
||||
<meta name="twitter:image" content="https://wireguard-webadmin.com/images/peer_list_dark_hu_84f9807efbbcd67e.jpg">
|
||||
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
||||
|
||||
<link rel="preload" href="/fonts/inter-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/css/main.min.09e588a4a25bba0c0a964ce43747e8b70b3bde1ddf6d8c884a5d0338d93f3447.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="site-header">
|
||||
<div class="container">
|
||||
<nav class="nav-inner">
|
||||
<a href="/" class="nav-logo">wireguard_<span>webadmin</span></a>
|
||||
<button class="hamburger" aria-label="Toggle menu" aria-controls="site-nav" aria-expanded="false">
|
||||
<span></span><span></span><span></span>
|
||||
</button>
|
||||
<ul class="nav-links" id="site-nav">
|
||||
|
||||
|
||||
<li>
|
||||
<a href="/"
|
||||
|
||||
|
||||
>
|
||||
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="/zero-trust/"
|
||||
|
||||
|
||||
>
|
||||
|
||||
Zero Trust
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="/wireguard-cluster/"
|
||||
|
||||
aria-current="page"
|
||||
>
|
||||
|
||||
Cluster
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="/deployment/"
|
||||
|
||||
|
||||
>
|
||||
|
||||
Deployment
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="/get-involved/"
|
||||
|
||||
|
||||
>
|
||||
|
||||
Get Involved
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="https://github.com/eduardogsilva/wireguard_webadmin"
|
||||
target="_blank" rel="noopener"
|
||||
|
||||
class="nav-github">
|
||||
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z"/></svg>
|
||||
|
||||
GitHub
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-lang-sep"></li>
|
||||
<li class="lang-dropdown">
|
||||
<button class="lang-btn" aria-label="Language" aria-controls="lang-menu" aria-expanded="false">
|
||||
🇬🇧 EN
|
||||
<svg width="10" height="10" viewBox="0 0 10 10" fill="currentColor"><path d="M2 3.5L5 6.5L8 3.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>
|
||||
</button>
|
||||
<ul class="lang-menu" id="lang-menu">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li>
|
||||
<a href="/wireguard-cluster/"
|
||||
hreflang="en"
|
||||
class="lang-active">
|
||||
<span class="lang-flag">🇬🇧</span>
|
||||
<span>English</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li>
|
||||
<a href="/pt-br/wireguard-cluster/"
|
||||
hreflang="pt-br"
|
||||
class="">
|
||||
<span class="lang-flag">🇧🇷</span>
|
||||
<span>Português</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li>
|
||||
<a href="/es/wireguard-cluster/"
|
||||
hreflang="es"
|
||||
class="">
|
||||
<span class="lang-flag">🇪🇸</span>
|
||||
<span>Español</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li>
|
||||
<a href="/fr/wireguard-cluster/"
|
||||
hreflang="fr"
|
||||
class="">
|
||||
<span class="lang-flag">🇫🇷</span>
|
||||
<span>Français</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li>
|
||||
<a href="/de/wireguard-cluster/"
|
||||
hreflang="de"
|
||||
class="">
|
||||
<span class="lang-flag">🇩🇪</span>
|
||||
<span>Deutsch</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
|
||||
<section class="page-hero">
|
||||
<div class="container">
|
||||
<div class="section-label">Cluster</div>
|
||||
<h1>WireGuard Cluster</h1>
|
||||
<p class="section-sub" style="margin-top:1rem">Run WireGuard on several servers and manage all of them from a single panel.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="page-content">
|
||||
<div class="container">
|
||||
<h2 id="how-it-works">How it works</h2>
|
||||
<p>The <strong>primary server</strong> is where you manage everything: instances, peers, firewall, DNS and App Gateway applications.
|
||||
<strong>Worker nodes</strong> run a lightweight agent that connects to the primary server, receives the configuration and applies it locally.
|
||||
Workers have no admin panel and no database of their own: a new node is ready in a few minutes.</p>
|
||||
<div class="flow-cards">
|
||||
<div class="flow-card">
|
||||
<div class="flow-card-header"><span class="flow-card-num">1</span> <strong>Worker connects</strong></div>
|
||||
<p>The agent authenticates with its token and calls the primary server over HTTPS. Workers only make outbound connections.</p>
|
||||
</div>
|
||||
<div class="flow-card">
|
||||
<div class="flow-card-header"><span class="flow-card-num">2</span> <strong>Configuration sync</strong></div>
|
||||
<p>WireGuard, firewall, DNS and App Gateway settings are sent as separate sections. Only what changed is applied again.</p>
|
||||
</div>
|
||||
<div class="flow-card">
|
||||
<div class="flow-card-header"><span class="flow-card-num">3</span> <strong>Status report</strong></div>
|
||||
<p>Each worker reports its WireGuard status, peer traffic, services and certificates back to the primary server.</p>
|
||||
</div>
|
||||
<div class="flow-card">
|
||||
<div class="flow-card-header"><span class="flow-card-num">4</span> <strong>One view</strong></div>
|
||||
<p>The peer list shows on which server each peer is connected, across the whole cluster.</p>
|
||||
</div>
|
||||
</div>
|
||||
<figure class="page-screenshot">
|
||||
<img src="/images/cluster_workers_hu_b91882328faf01c1.webp"
|
||||
srcset="/images/cluster_workers_hu_ed8fa2f029766527.webp 640w, /images/cluster_workers_hu_848145d5c3dee701.webp 1052w, /images/cluster_workers_hu_d6a3ce35efaf8802.webp 1600w, /images/cluster_workers_hu_b91882328faf01c1.webp 2104w"
|
||||
sizes="(max-width: 1100px) 100vw, 1052px"
|
||||
width="2104" height="1367"
|
||||
alt="WireGuard cluster workers list"
|
||||
loading="lazy" decoding="async">
|
||||
</figure>
|
||||
<hr>
|
||||
<h2 id="cluster-modes">Cluster modes</h2>
|
||||
<div class="auth-list">
|
||||
<div class="auth-row">
|
||||
<div class="auth-row-name">Mirror</div>
|
||||
<div class="auth-row-desc">Every node runs every WireGuard instance with the same peers. Users choose the server when downloading the configuration or opening a VPN invite, so the same peer can connect through any node. Useful for redundancy and for servers in different regions.</div>
|
||||
</div>
|
||||
<div class="auth-row">
|
||||
<div class="auth-row-name">Distributed</div>
|
||||
<div class="auth-row-desc">Each WireGuard instance runs on a single server, chosen in the instance settings (the primary server by default). Useful to spread instances across sites or to keep each network in its own location.</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<h2 id="primary-server-as-a-manager-only">Primary server as a manager only</h2>
|
||||
<p>In mirror mode, WireGuard can be disabled on the primary server. It stops its WireGuard interfaces, is no longer offered as a server for peers and only publishes the WireGuard WebAdmin panel, while the workers keep serving every peer.</p>
|
||||
<div class="callout">
|
||||
<p><strong>Before turning it off,</strong> make sure you can reach the panel without the VPN of the primary server.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<h2 id="app-gateway-on-worker-nodes">App Gateway on worker nodes</h2>
|
||||
<p>Workers installed with the App Gateway also publish your <a href="/zero-trust/">Zero Trust applications</a>. Each application chooses where it is served: on the primary server, on all workers or on selected workers.</p>
|
||||
<p>Certificates are issued by the primary server and distributed to the workers, so applications published by workers must use DNS validation or self-signed certificates.</p>
|
||||
<hr>
|
||||
<h2 id="adding-a-worker">Adding a worker</h2>
|
||||
<div class="deploy-steps">
|
||||
<div class="deploy-step-card">
|
||||
<div class="deploy-step-num">01</div>
|
||||
<div class="deploy-step-body">
|
||||
<div class="deploy-step-label">Enable the cluster</div>
|
||||
<p>In the cluster settings of the primary server, enable the cluster and choose the mode. The cluster uses the WireGuard status cache, which is enabled by default.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="deploy-step-card">
|
||||
<div class="deploy-step-num">02</div>
|
||||
<div class="deploy-step-body">
|
||||
<div class="deploy-step-label">Create the worker</div>
|
||||
<p>Add a worker with a name and the hostname clients use to reach it: it becomes the endpoint of the peer configurations downloaded for this server. The worker page shows its token and the installation commands.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="deploy-step-card">
|
||||
<div class="deploy-step-num">03</div>
|
||||
<div class="deploy-step-body">
|
||||
<div class="deploy-step-label">Fetch the compose file on the worker server</div>
|
||||
<div class="tab-group">
|
||||
<div class="tabs">
|
||||
<button class="tab-btn active" data-tab="node-vpn">VPN only</button>
|
||||
<button class="tab-btn" data-tab="node-gateway">VPN and App Gateway</button>
|
||||
</div>
|
||||
<div class="tab-wrap">
|
||||
<div class="tab-panel active" id="node-vpn">
|
||||
<pre><code>mkdir wireguard_webadmin_node && cd wireguard_webadmin_node
|
||||
wget -O docker-compose.yml \
|
||||
https://raw.githubusercontent.com/eduardogsilva/wireguard_webadmin/main/cluster_node.yml</code></pre>
|
||||
</div>
|
||||
<div class="tab-panel" id="node-gateway">
|
||||
<pre><code>mkdir wireguard_webadmin_node && cd wireguard_webadmin_node
|
||||
wget -O docker-compose.yml \
|
||||
https://raw.githubusercontent.com/eduardogsilva/wireguard_webadmin/main/cluster_node-gateway.yml</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="deploy-step-card">
|
||||
<div class="deploy-step-num">04</div>
|
||||
<div class="deploy-step-body">
|
||||
<div class="deploy-step-label">Create the .env file</div>
|
||||
<pre><code>MASTER_SERVER_ADDRESS=https://vpn.example.com
|
||||
TOKEN=token-shown-on-the-worker-page
|
||||
TIMEZONE=America/Sao_Paulo</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="deploy-step-card">
|
||||
<div class="deploy-step-num">05</div>
|
||||
<div class="deploy-step-body">
|
||||
<div class="deploy-step-label">Start the worker</div>
|
||||
<pre><code>docker compose up -d</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h3 id="network-requirements">Network requirements</h3>
|
||||
<ul>
|
||||
<li>Workers must reach the primary server over HTTPS. If the App Gateway protects the panel of the primary server, add a route for <code>/api/cluster/</code> with a public policy.</li>
|
||||
<li>Publish the WireGuard ports (<code>51820-51839/udp</code>) on each worker and, with the App Gateway, ports <code>80</code> and <code>443</code>.</li>
|
||||
</ul>
|
||||
<h3 id="updating-a-worker">Updating a worker</h3>
|
||||
<p>Run <code>docker compose pull</code> followed by <code>docker compose up -d</code>. To switch between VPN only and VPN and App Gateway, download the other compose file to the same directory and run <code>docker compose up -d --remove-orphans</code>. The worker data is kept.</p>
|
||||
<hr>
|
||||
<h2 id="monitoring-and-automation">Monitoring and automation</h2>
|
||||
<p>The worker page shows when the worker was last seen, its agent version, the synchronization state of each section, its services and its certificates.</p>
|
||||
<figure class="page-screenshot">
|
||||
<img src="/images/cluster_worker_details_hu_b188f86bc7711d48.webp"
|
||||
srcset="/images/cluster_worker_details_hu_8d3a25f40205fa4e.webp 640w, /images/cluster_worker_details_hu_84c2bf14991fbd9c.webp 1052w, /images/cluster_worker_details_hu_12fa86f1f2390c11.webp 1600w, /images/cluster_worker_details_hu_b188f86bc7711d48.webp 2104w"
|
||||
sizes="(max-width: 1100px) 100vw, 1052px"
|
||||
width="2104" height="1367"
|
||||
alt="Worker details page"
|
||||
loading="lazy" decoding="async">
|
||||
</figure>
|
||||
<ul>
|
||||
<li><strong>Disable a worker</strong> and it shuts down its WireGuard interfaces until it is enabled again.</li>
|
||||
<li><strong>IP lock</strong> only accepts the worker from a fixed IP address.</li>
|
||||
<li><strong>API v2</strong> lets external tools enable and disable workers and WireGuard on the primary server. The API key needs the cluster management permission.</li>
|
||||
</ul>
|
||||
<div class="callout green">
|
||||
<p><strong>Still one stack.</strong> The cluster is optional: a single server keeps working exactly as before, and workers can be added at any time.</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<div class="container">
|
||||
<div class="footer-inner">
|
||||
<div class="footer-logo">wireguard_<span>webadmin</span></div>
|
||||
<ul class="footer-links">
|
||||
<li><a href="https://github.com/eduardogsilva/wireguard_webadmin" target="_blank" rel="noopener">GitHub</a></li>
|
||||
<li><a href="https://github.com/eduardogsilva/wireguard_webadmin/discussions" target="_blank" rel="noopener">Discussions</a></li>
|
||||
<li><a href="/zero-trust/">Zero Trust</a></li>
|
||||
<li><a href="/wireguard-cluster/">Cluster</a></li>
|
||||
<li><a href="/deployment/">Deployment</a></li>
|
||||
<li><a href="/get-involved/">Get Involved</a></li>
|
||||
</ul>
|
||||
<div class="footer-built">
|
||||
built by <a href="https://github.com/eduardogsilva" target="_blank" rel="noopener">@eduardogsilva</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
|
||||
document.querySelectorAll('.tab-btn').forEach(btn => {
|
||||
btn.addEventListener('click', () => {
|
||||
const group = btn.closest('.tab-group');
|
||||
group.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
|
||||
group.querySelectorAll('.tab-panel').forEach(p => p.classList.remove('active'));
|
||||
btn.classList.add('active');
|
||||
group.querySelector('#' + btn.dataset.tab).classList.add('active');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
const hamburger = document.querySelector('.hamburger');
|
||||
const navLinks = document.querySelector('.nav-links');
|
||||
if (hamburger) {
|
||||
hamburger.addEventListener('click', (e) => {
|
||||
e.stopPropagation();
|
||||
const open = navLinks.classList.toggle('open');
|
||||
hamburger.classList.toggle('open', open);
|
||||
hamburger.setAttribute('aria-expanded', open);
|
||||
});
|
||||
document.addEventListener('click', (e) => {
|
||||
if (!navLinks.contains(e.target) && !hamburger.contains(e.target)) {
|
||||
navLinks.classList.remove('open');
|
||||
hamburger.classList.remove('open');
|
||||
hamburger.setAttribute('aria-expanded', false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
const langBtn = document.querySelector('.lang-btn');
|
||||
const langDropdown = document.querySelector('.lang-dropdown');
|
||||
if (langBtn) {
|
||||
langBtn.addEventListener('click', (e) => {
|
||||
e.stopPropagation();
|
||||
const open = langDropdown.classList.toggle('open');
|
||||
langBtn.setAttribute('aria-expanded', open);
|
||||
});
|
||||
document.addEventListener('click', (e) => {
|
||||
if (!langDropdown.contains(e.target)) {
|
||||
langDropdown.classList.remove('open');
|
||||
langBtn.setAttribute('aria-expanded', false);
|
||||
}
|
||||
});
|
||||
|
||||
langDropdown.querySelectorAll('.lang-menu a').forEach(a => {
|
||||
a.addEventListener('click', () => {
|
||||
try { localStorage.setItem('lang-manual', '1'); } catch (err) { }
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
let langManual = false;
|
||||
|
||||
try { langManual = !!localStorage.getItem('lang-manual'); } catch (err) { langManual = true; }
|
||||
if (location.pathname === '/' && !langManual) {
|
||||
const lang = (navigator.language || navigator.userLanguage || 'en').toLowerCase();
|
||||
const map = [
|
||||
{ prefix: 'pt', url: '/pt-br/' },
|
||||
{ prefix: 'es', url: '/es/' },
|
||||
{ prefix: 'fr', url: '/fr/' },
|
||||
{ prefix: 'de', url: '/de/' },
|
||||
];
|
||||
const match = map.find(m => lang.startsWith(m.prefix));
|
||||
if (match) location.replace(match.url);
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user