What it is for
A WireGuard profile is a tunnel to one remote site: headquarters to the branch, the branch to headquarters, the office to an EDON Atlas. You create one profile per remote site. In the example company, headquarters has a profile wg0, description “Branch”, towards branch.johnsmith.test:51820, with the remote network 192.168.50.0/24; the interface wg0 is in the sites zone.
What the page looks like
The page has the list and detail layout common to the console.
- The list’s bar carries the title “VPN WireGuard”, the count, the search and, on the right, three icon buttons: “Reload”, “Import” (opens a configuration exported by another Argos) and “Add VPN” (a new, empty profile).
- Each row shows the interface name, below it the Endpoint (or
:portwhen there is none) and the remote networks, and on the right a label: “Enabled”, “Disabled” or “Waiting for the key”. - With nothing selected, the “How to” guide with the three essential steps appears below the list.
- The detail’s bar carries the arrow back to the list (“List”), the title “VPN WireGuard / wg0 · Branch” (for a new profile “VPN WireGuard / New VPN”) and two buttons acting on the whole profile: “Endpoint configuration” (the export for the other site) and “Delete VPN”. A new profile does not show them.
- At the bottom of the form are “Restore” (it appears only once you have changed something, and puts the form back as it was) and the save button, “Create VPN” for a new profile and “Save VPN” for an existing one.


What the console chooses by itself
The form does not ask for the interface name, the tunnel address or the keepalive: the console decides them at the first save and never changes them afterwards, because they are the values the other side is configured with. The listen port, instead, is a field of the form: if you leave it empty, the console chooses it (see “Listen port” below).
| Value | How it is chosen |
|---|---|
| Interface | The first free one among wg0, wg1, wg2… |
| Tunnel address | A small /30 network reserved for the tunnel: the first free one among 10.100.0.0/30, 10.100.1.0/30, 10.100.2.0/30… (one at the start of each /24), clear of the appliance’s networks, the static routes and the networks of the other tunnels. This side takes the first address (10.100.0.1), the other side the second (10.100.0.2). |
| Keepalive | 25 seconds for every profile: it keeps the connection open even through a NAT. |
| Keys | At the first save the console generates the profile’s key pair. The private key never leaves the appliance and appears on no page. |
A profile created with “Import”, instead, takes the tunnel address the other Argos left for it, and finds the port the other side will dial already written in the “Listen port” field, so the two sides match (see below).
The profile’s fields
Description. A free name to recognise the profile (“Branch”). It appears in the detail’s title next to the interface name.
Listen port. The UDP port on which this side receives the handshakes: the one the other side dials, and which an upstream router must forward here. Left empty (the field says “assigned on save”), the console takes the first free one from 51820 up; a profile already saved keeps its own. The port must not be used by anything else: another profile, an active UDP publication or UDP zone service, IPsec’s IKE and NAT-T (500 and 4500), the relay of the Citadel link (51819) or a program already listening on that port on the appliance.
- For a profile already saved, a port in use is refused: “Port already in use: by another VPN, a UDP publication or service, IPsec or a service of the appliance”. A free port is taken, and the console warns you with a message that stays on screen for a long time: “The listen port moved from 51820 to 51830: on the other side set 51830 as the Endpoint’s port (and forward it on a router in front of this appliance), then apply the firewall to open it.”
- For a new profile, a port in use (typed by you or brought by an import) does not block the save: the profile gets the first free one and the console says so (see “Connecting two Argos: export and import”).
Endpoint. Where the other site is, in the form host:port: a name (branch.johnsmith.test:51820) or an IPv4 address (198.51.100.20:51820). The port is required: without it WireGuard would not know where to dial. Leave the field empty when the other site has no reachable address and will always be the one dialling: this side then only listens, and the firewall opens the listen port to any address. The Endpoint decides who may knock on the listen port (see “The listen port and the firewall”).
Endpoint public key. The other site’s public key, the one shown there as “Local public key”. It may stay empty at the first save: the profile stays “Waiting for the key” until you enter it (see below). A key you enter must be a valid WireGuard key (44 base64 characters ending in =).
Pre-shared key. Optional. It is a second key, the same on both sides, that adds one more layer of confidentiality, even against someone recording the traffic today to decrypt it in the future with a quantum computer. The icon button in the field, “Generate a pre-shared key”, creates a new one: the key is written into the field and saved only when you save the profile. It must then be given to the other side (the export contains it).
Remote networks. The other site’s networks that go through the tunnel, one per line, in CIDR notation: type the network in the field and press “Add network”; to take one away, select it and press “Remove network”. In the example: 192.168.50.0/24. 0.0.0.0/0 is not allowed (it would send all of the appliance’s traffic into the tunnel), and the no-overlap rules apply.
Local public key. It appears after the first save (before, there is only the note “A key pair is generated on first save; the public key appears for the remote site afterwards”). It is the key to give the other site, which enters it as its Endpoint’s public key.
Enabled. On by default. Off, the tunnel is torn down and the profile stays in the list as “Disabled”; its networks no longer count in the overlap checks, except the tunnel’s network, which must never overlap the appliance’s networks.
On demand. Off by default. Switch it on for a tunnel the other side opens only when it needs it, such as a PC connecting from outside: while the other side is away, System status → Status does not report the VPN as not connected. It changes nothing in the tunnel or in the firewall.
The listen port and the firewall
Each profile listens on a UDP port, and the firewall opens it by itself: there is no need to add a zone service. Who can reach it depends on the Endpoint. For a saved, enabled profile the form says so below the “Listen port” field:
- With an Endpoint that resolves, the port opens only to its addresses, resolved at save time: “The firewall opens UDP port 51820 to 198.51.100.20 only — the Endpoint, resolved when the profile is saved; it holds once the firewall is applied.”
- Without an Endpoint, the port opens to any address: “No Endpoint: the firewall opens UDP port 51820 to any address (only the holder of the Endpoint’s key gets in); it holds once the firewall is applied.” This is the case of the other site without a fixed address, which always dials.
- With an Endpoint whose name did not resolve at save time, the profile is saved all the same and the port opens to any address; the line, in orange, says how to narrow it: “The Endpoint’s name did not resolve when the profile was saved: the firewall opens UDP port 51820 to any address (only the holder of the Endpoint’s key gets in). Save the profile again once the name resolves to limit it to the Endpoint; it holds once the firewall is applied.”
Opening the port to any address does not open the tunnel to anyone: WireGuard does not answer a handshake that does not carry the right key. If instead you see “Not open: the Endpoint’s address list in the configuration cannot be read (a hand edit). Save the profile again, then apply the firewall.”, someone has edited the configuration file by hand: save the profile and apply the firewall.
If the appliance sits behind the provider’s router, that router must forward the profile’s UDP port to the appliance’s WAN address.
Two configurations are refused because they would take the tunnel’s port, or its opening, away from it:
- an active UDP publication (Published services → Port publication) forwarding the same port to an internal server: it would take the handshakes before they reach the tunnel;
- a UDP zone service without a source that opens the same port to everyone while the profile’s port is limited to its Endpoint: it would widen the opening the profile limits. A service with its own sources is allowed, and so is one on the port of a profile already open to any address (it adds nothing).
The checks work from both sides: the zones page and the publications page also refuse the service or the publication described above.
The profile waiting for the key
Between two Argos, the other side’s public key exists only once the other side has created its profile. This is why you can save a profile with the “Endpoint public key” empty: it is recorded, gets keys, address and port, and shows in the list with the label “Waiting for the key”. The tunnel stays down (without the other side’s key it is not a tunnel) and the System status → Status page does not report it as faulty. When you have the key, paste it into the field and save: the tunnel starts.
Connecting two Argos: export and import
The intended way to join two Argos is to have the console write the half of the tunnel that belongs to the other side. The complete procedure, step by step, is in the scenario Connecting two Argos sites with WireGuard; here you find what the two buttons do.
“Endpoint configuration” (in the detail’s bar) opens a window with the other site’s WireGuard configuration, already filled in from its point of view. The buttons are “Copy” and “Close”. For headquarters’ wg0 profile the export looks like this:
[Interface]
Address = 10.100.0.2/30
PrivateKey = <peer-private-key>
ListenPort = 51820
[Peer]
PublicKey = (headquarters' local public key)
Endpoint = 203.0.113.10:51820
AllowedIPs = 192.168.10.0/24, 10.100.0.0/30
PersistentKeepalive = 25
Addressis the second address of the tunnel’s network, the other side’s.PrivateKeystays a placeholder: the other side’s private key is generated by the other side. The values in angle brackets are those this appliance does not know, and the window says so (“Values in angle brackets are not known here: fill them in on the remote site”).ListenPortis the Endpoint’s port you wrote here: the other side will listen where this side dials it.Endpointis where the other side finds this appliance: the console’s Let’s Encrypt domain, if there is one (System → HTTPS certificate); otherwise the public address with which the WAN goes out to the internet; otherwise the address of the WAN interface. Followed by this profile’s listen port.AllowedIPsare the networks of the interfaces of this appliance’s lan zone, plus the tunnel’s network. If the other site must reach other zones too (for example the production VLAN), add those networks to its remote networks and open the way in this appliance’s zones.
“Import” (in the list’s bar) opens the window “Import a VPN from another Argos”. Paste the text exported by the other Argos into the “Configuration” field and press “Import”: a new profile opens, not yet saved, with the other side’s values (Endpoint, Endpoint public key, pre-shared key, remote networks, and in the “Listen port” field the port the other side will dial; the tunnel address stays hidden in the form). Check it and press “Create VPN”. The text’s private key, if there is one, is never taken: this appliance generates its own pair on save. The text must describe a single [Peer]; otherwise the window answers “No WireGuard configuration with a single [Peer] recognised”.
If the new profile’s listen port (the one brought by the imported text, or one you typed) is already in use on this appliance, the profile gets another one and the console says so with a warning that stays on screen for a long time: “UDP port 51820 is taken here: this profile listens on 51821. On the other side, set the Endpoint’s port to 51821 (and forward it on a router in front of this appliance), or it keeps dialling 51820.” Make the correction on the other Argos, otherwise the tunnel does not form.
After the import, one thing is still missing on the other Argos: this profile’s public key. Copy the “Local public key” that has just appeared and paste it, on the other Argos, into the “Endpoint public key” of the waiting profile; save.
Towards EDON Atlas or another WireGuard device. The same export is pasted into “Import from Argos” on an EDON Atlas, or into any WireGuard host: in that case the other side’s administrator generates their own key pair, puts their private key in place of the placeholder and gives you their public key for the “Endpoint public key” field. The same goes for the WireGuard app of a PC or a phone: see Connecting a PC or a phone with WireGuard.
Tip The permanent link to an EDON Atlas is set up in System → Atlas, which manages a tunnel of its own (
wg-atlas, a reserved name that cannot be used here). When you join the appliance to Atlas from there, the WireGuard profiles created by hand towards the same Atlas are replaced by the link.
Saving, switching off, deleting
- Saving. The profile is written and its tunnel started or restarted (only if something changed). If all goes well, “VPN applied” appears and the console goes back to the list; a profile just created stays open instead, with its public key and its export. If the tunnel does not start, “Applying the VPN failed” appears with the reason: the profile is recorded anyway, the form stays on it, and the next save (or a restart of the appliance) tries again. After saving, apply the firewall, because the listen port opens with “Apply”.
- Switching off. Clear “Enabled” and save: the tunnel goes down, the profile stays.
- Deleting. “Delete VPN” asks for confirmation: “Delete VPN wg0? The tunnel goes down and its config is removed.” The tunnel is torn down before the profile disappears, and the interface leaves the zone that held it. If the teardown fails, the profile stays and the deletion can be repeated.
Checks and messages
| Message | What it means |
|---|---|
| “Use host:port” | The Endpoint is not a name or an IPv4 address followed by a port. |
| “Add the port: host:port” | You wrote the host without the port. |
| “Port must be 1-65535 (empty: the first free one)” | The “Listen port” is not a port number. |
| “Port already in use: by another VPN, a UDP publication or service, IPsec or a service of the appliance” | You moved a saved profile to a port something else already uses. Choose another one, or leave the field as it was. |
| “Not a valid WireGuard key” | The Endpoint public key or the pre-shared key is not a WireGuard key. |
| “Not a valid CIDR (e.g. 10.100.0.1/30)” | A remote network is not written as address/prefix. |
| “0.0.0.0/0 would hijack the whole routing table” | A remote network is the default route. |
| “Overlaps a network attached to this appliance” | A remote network (or the tunnel’s network) partly coincides with a network of the interfaces. |
| “Overlaps another active tunnel (WireGuard or IPsec)” | Another active tunnel already carries that network. |
| “Overlaps this VPN’s remote networks” | The tunnel network brought by an import falls inside the remote networks. |
| “A UDP port publication forwards this port: it would take the tunnel’s handshakes” | Move or switch off the publication on the profile’s port. |
| “A zone service opens this port to any source (Zones and rules → Zones): give it a source or remove it” | A UDP service without a source would widen the opening limited to the Endpoint. |
An Endpoint name that does not resolve is not an error: the profile is saved and the port opens to any address (see “The listen port and the firewall”). When an error concerns the tunnel address, which the form does not show, it appears below “Description” with the name and the value at fault.
Where to see whether the tunnel works
In System status → Status, the “Gateways and tunnels” card lists every tunnel under “VPN tunnels” with the time of the last “Handshake” (or “No handshake yet”, or “Interface missing”). With the keepalive at 25 seconds a live tunnel renews its handshake all the time: if the last one is older than six minutes, or the interface is missing, the “Attention” strip shows “VPN wg0 is not connected”. A profile waiting for the key is not reported, and an “On demand” profile only when the interface is missing.
For a live test use Events and diagnostics → Diagnostics (a ping to a host of the remote network, for example 192.168.50.1) and Events and diagnostics → Firewall to see whether the tunnel’s zone drops anything.
For the technician Each enabled profile is
/etc/wireguard/wgN.conf(0600, rewritten by the console: do not edit it by hand), started by thewg-quick@wgNunit, enabled for boot.AllowedIPsholds the remote networks plus the tunnel’s network; the routes to the remote networks are installed by wg-quick. A save first tears down the deleted, renamed or disabled tunnels, then restarts only the profiles whose configuration changed or whose unit is not active. The firewall rule is in theinputchain, before the zones and never handed to inspection:ip saddr { <Endpoint addresses> } udp dport <port> counter accept comment "vpn wg0: endpoint only"or, without an Endpoint or with a name that did not resolve,udp dport <port> counter accept comment "vpn wg0: peers from any address". The Endpoint’s name is resolved the way wg-quick does it (first/etc/hosts, then DNS), with a 5-second limit. The UDP ports already in use on the appliance are read from/proc/net/udpand/proc/net/udp6. If a DHCP relay reaches its server through the tunnel, the export also adds the networks that relay serves toAllowedIPs.