Situation
John Smith Ltd has its headquarters (office LAN 192.168.10.0/24, appliance
192.168.10.1, the fibre’s public address 203.0.113.10) and a branch with an
Argos of its own (LAN 192.168.50.0/24, appliance 192.168.50.1, public address
198.51.100.20, with the name branch.johnsmith.test). The branch’s PCs must reach the headquarters NAS
(192.168.10.20) by its name, nas.johnsmith.test, and the headquarters
technicians must be able to support the branch’s PCs.
The two appliances connect through a WireGuard tunnel, in VPN → VPN WireGuard. Each side has a profile: the keys, the other side’s address (the Endpoint) and the networks behind it (the Remote networks). Between two Argos there is almost nothing to type by hand: headquarters creates the profile, exports its “Endpoint configuration” and the branch pastes it into “Import”. All that is left is to bring the branch’s public key back to headquarters.
The tunnel is an interface (wg0) like the others: until it joins a zone, the
firewall lets nothing new through. In this scenario you put it in a dedicated
zone, sites (for the sites), on both sides.
What you need
- Access to the console of both appliances (for the branch, remotely too, or with a colleague on site).
- The public address of each site, or a DNS name that resolves to it (if one of the two has none that can be reached, the other is enough: see “If something goes wrong”). If one of the two appliances sits behind a router with NAT, the tunnel’s UDP port must be forwarded to that appliance.
- Different LANs at the two sites: two sites with the same network (for example both 192.168.1.0/24) cannot be connected, because Argos does not translate a tunnel’s addresses. One of the two must be renumbered first.
- DNS protection switched on on both appliances, if you want names across the sites (see “Names across the sites”).
Steps
At headquarters: the profile
-
Open VPN → VPN WireGuard and press “Add VPN” (the + in the list’s bar). “VPN WireGuard / New VPN” opens.
-
Fill in:
- “Description”:
Branch; - “Listen port”: leave it empty. On saving, the console takes the first free UDP port from 51820 up (here 51820), that is one not used by another VPN, by a publication or a UDP service, by IPsec or by a service of the appliance. Type one only if you really need that one;
- “Endpoint”:
branch.johnsmith.test:51820, that is the branch’s name and the port you will call it on (the address works too,198.51.100.20:51820; the port is always required:host:port); - “Endpoint public key”: leave it empty for now;
- “Pre-shared key”: press the icon on the right of the field (“Generate a pre-shared key”). It is optional but adds a second secret;
- “Remote networks”: type
192.168.50.0/24and press the + (“Add network”); - “Enabled”: on.
- “Description”:
-
Press “Create VPN”. “VPN applied” appears. Argos has chosen by itself the interface’s name (
wg0), the tunnel address (10.100.0.1/30), the listen port (51820) and the key pair, and has resolved the Endpoint’s name (198.51.100.20).


In the list the row shows “Waiting for the key”: without the other side’s public key the tunnel does not start, and Status does not report it as down. The detail now shows:
- “Listen port” with 51820, and below the field: “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.”;
- “Local public key”, with the note “It goes into the other Argos’s ‘Endpoint public key’ field; on another WireGuard host it is the peer’s public key.”.
At headquarters: the export
- With the profile selected, press “Endpoint configuration” (the icon in the detail’s bar). “Endpoint configuration — wg0” opens with the text for the branch: its address in the tunnel (10.100.0.2/30), the port it must listen on (51820, the one in your “Endpoint”), the headquarters’ public key, the pre-shared key, the headquarters’ Endpoint (203.0.113.10:51820) and the headquarters’ networks (the networks of the lan zone, here 192.168.10.0/24).
- Press “Copy” and get the text to whoever configures the branch.


Warning The exported text contains the pre-shared key: treat it like a password. Do not send it in clear by e-mail; use a secure channel, or paste it into the branch’s console yourself. The headquarters’ private key is never in it.
Tip If the text contains values in angle brackets (for example
<argos-public-address>), Argos does not know which address headquarters shows on the internet: the dialog says so with “Values in angle brackets are not known here: fill them in on the remote site.”. Replace them before importing. With two lines, check that the Endpoint is the address of the line to use (here the fibre, 203.0.113.10).
At the branch: the import
- In the branch’s console open VPN → VPN WireGuard and press “Import” (the icon in the list’s bar). “Import a VPN from another Argos” opens.
- Paste the text into “Configuration” and press “Import”. “Configuration
imported: review it and apply” appears and a new profile opens, already
filled in: “Listen port” 51820 (the one headquarters will call it on),
“Endpoint”
203.0.113.10:51820, “Endpoint public key” (the headquarters’ one), “Pre-shared key”, “Remote networks”192.168.10.0/24. - Type
Headquartersin “Description” and press “Create VPN”. “VPN applied” appears. The branch generates its own key pair, takes the tunnel address 10.100.0.2/30 and listens on 51820. Below “Listen port” the detail says “The firewall opens UDP port 51820 to 203.0.113.10 only — …”.


If that port is already taken at the branch, Argos picks another one and says so with a warning: see “If something goes wrong”.
Exchanging the public key
- At the branch, in the profile you have just created, copy the value of “Local public key”.
- At headquarters, open the profile
wg0, paste that value into “Endpoint public key” and press “Save VPN”. The row loses “Waiting for the key”.
Public keys are not secret: you can exchange them by e-mail too.
On both sides: the tunnel’s zone
Repeat these steps at headquarters and at the branch.
-
Open Zones and rules → Zones and press “Add zone”. “Zones / New zone” opens.
-
Fill in:
- “Name”:
sites; - “Description”:
Tunnel to the branch(at the branch:Tunnel to headquarters); - “Inbound policy”: “Drop” (the tunnel does not reach the appliance, except for the services you will open);
- “Forward policy”: “Drop” (the tunnel does not go to other zones, except for what the matrix opens);
- “Masquerade (SNAT)”: off. The two sites must see each other with their real addresses;
- “Answer ping (ICMP)”: on, you need it for the tests;
- “Forwarding matrix”: next to “LAN” choose “Accept”; leave “Zone default” for the others (WAN included: the branch does not go out to the internet through headquarters);
- “Interfaces”: switch on
wg0.
- “Name”:
-
Press “Create zone”.


The lan zone of both appliances has “Forward policy” “Accept” by default: the
LAN’s PCs already reach the sites zone without other rules. If you want the
branch to reach only the NAS, instead of “Accept” in the matrix leave “Zone
default” and add, in “Forward rules”, with “Add rule”: “Destination zone” LAN,
“Action” “Accept”, “Protocol” TCP, “Ports” 445, “Destination”
192.168.10.20.
On both sides: apply
- In the header open the firewall button (“Unapplied changes”) and choose “Apply”.
- In the “Keep the new ruleset?” dialog press “Confirm” within 60 seconds.
Only from this moment does the firewall open the tunnel’s port to the other site: before the apply the profile is active but the handshakes are dropped. After the confirmation on both sides the tunnel comes up within a few seconds.
For the technician Each profile is a
wg-quick@wg0unit, with its configuration in/etc/wireguard/wg0.confrendered by Argos:AllowedIPsare the remote networks plus the tunnel’s subnet,PersistentKeepalive = 25. wg-quick installs the routes to the remote networks; Argos does not manage them. Ininput, ahead of the zones, the firewall acceptsip saddr 198.51.100.20 udp dport 51820(commentvpn wg0: endpoint only): the addresses are those the Endpoint’s name resolved to at the profile’s last save, and the renderer never resolves anything. Without an Endpoint, or with a name that did not resolve at the save, the rule isudp dport 51820 counter acceptwith no source (commentvpn wg0: peers from any address): only the holder of the key completes the handshake. The decrypted traffic comes in fromwg0and follows thesiteszone (chainszone_sites_inandzone_sites_fwd).
Names across the sites
For the branch’s PCs to resolve nas.johnsmith.test, the branch asks the
headquarters’ resolver for those names through the tunnel.
At headquarters
- In DNS and DHCP → Local DNS the NAS must have its record: press “Add
record”, type
192.168.10.20in “Address” andnas.johnsmith.testin “Names”, then save. (If it is already there, skip this.) - The headquarters’ resolver must answer the
siteszone: in Zones and rules → Zones opensites, in the “Inbound services” section press “Add service” and add “Protocol” UDP, “Ports”53, “Comment”Branch DNS; then a second, identical service with “Protocol” TCP. Press “Save zone”, apply and confirm.
At the branch
- Open DNS and DHCP → Forwarded domains and press “Add a forwarded
domain”. Fill in “Domain”
johnsmith.testand “Servers”192.168.10.1, leave “Active” on and press “Add”. “Forwarded domain saved” appears.
From then on the branch’s resolver asks headquarters for every name under
johnsmith.test, and answers all the others by itself. For a few names in the
opposite direction (the branch’s printer seen from headquarters) a record in
DNS and DHCP → Local DNS at headquarters, with the branch’s address, is
enough. For Active Directory domains see Clients of a remote Active Directory
domain.
Verification
- In System status → Status, card “Gateways and tunnels”, under “VPN
tunnels” is
wg0with the green dot, “Handshake” and the time elapsed, and below them the bytes received and sent. A tunnel without a handshake for more than six minutes appears in the “Attention” strip as “VPN wg0 is not connected”. - At headquarters, in Events and diagnostics → Diagnostics, tool “Ping”,
type
192.168.50.1in “Host” and press “Run”: the branch’s appliance answers. (The ping starts from the headquarters’ tunnel address; the branch’ssiteszone answers because “Answer ping (ICMP)” is on.) - From a branch PC open
\\nas.johnsmith.testor runping 192.168.10.20. From a headquarters PC reach a branch PC. - At the branch, in Events and diagnostics → Diagnostics, tool “DNS
lookup”, ask for
nas.johnsmith.test: the answer is 192.168.10.20. - If something is dropped, in Events and diagnostics → Firewall filter by
sites: the lineszone-sites-in,zone-sites-fwdorzone-sites-to-lantell you which rule stopped the traffic.


If something goes wrong
After the import the warning “UDP port 51820 is taken here: this profile
listens on 51821. On the other side, set the Endpoint’s port to 51821…”
appears. At the branch the requested port was already in use (by another
profile, by a publication or a UDP service, by a service of the appliance). The
profile listens on the port the message names: at headquarters open wg0,
correct the port in the “Endpoint” (branch.johnsmith.test:51821) and press
“Save VPN”. If the branch sits behind a router, forward the new port there.
You want to move the tunnel to another port (for example because an upstream router forwards a different one). Open the profile, type the new port in “Listen port” and press “Save VPN”. If the port is already in use the save is refused with “Port already in use: by another VPN, a UDP publication or service, IPsec or a service of the appliance”; otherwise the warning “The listen port moved from 51820 to 51821: on the other side set 51821 as the Endpoint’s port (and forward it on a router in front of this appliance), then apply the firewall to open it.” appears. Do both: as long as the other side calls the old port, and as long as the firewall is not applied, the tunnel does not form.
“Overlaps a network attached to this appliance”. One of the “Remote networks” matches a network of this appliance: the two sites use networks that overlap. Renumber one of the two LANs.
“Overlaps another active tunnel (WireGuard or IPsec)”. Another active tunnel already carries that network. A remote network can sit behind only one active tunnel.
Below “Listen port”, in orange: “The Endpoint’s name did not resolve when the profile was saved: the firewall opens UDP port 51820 to any address…”. When you saved, the name typed in “Endpoint” had no address. The profile is saved all the same and, once the firewall is applied, the port is open to everyone: only the holder of the branch’s key gets through the handshake. Check the name (Events and diagnostics → Diagnostics, “DNS lookup”) or type the address; once it resolves press “Save VPN” and apply: the opening is limited to the Endpoint again.
“Add the port: host:port”. The Endpoint always needs the port.
“No WireGuard configuration with a single [Peer] recognised”. The text pasted into “Import” is incomplete or is not the one an Argos exported: copy it again in full.
“A UDP port publication forwards this port: it would take the tunnel’s handshakes” or “A zone service opens this port to any source (Zones and rules → Zones): give it a source or remove it”. The tunnel’s port is already used elsewhere. Move the publication, or give the service a source.
The tunnel makes no handshake. Check, in this order:
- the firewall is applied and confirmed on both sides: if the firewall button in the header says “Unapplied changes”, the port is not open yet;
- each side has in “Endpoint public key” the “Local public key” of the other side, not its own;
- the port in each side’s “Endpoint” is the other side’s “Listen port”;
- the “Pre-shared key” is identical on the two sides (if you generated it again after the export, copy it to the other side too);
- the row no longer says “Waiting for the key”.
A site’s public address has changed, or the site goes out through its backup line. Once the Endpoint has resolved, the tunnel’s port is open only to the addresses found at the profile’s last save, and it stays that way: the firewall does not resolve the name again by itself. If the other site shows up from a different address (a dynamic IP that has changed, its backup line), its handshakes are dropped until you open the profile, press “Save VPN” (the name is resolved again) and apply the firewall. If the other site’s address changes often, leave the “Endpoint” empty on this side, as in the case below: the port opens to any address and it is always the other site that calls.
One of the two appliances sits behind a router with NAT. On the router forward the tunnel’s UDP port (the one the profile shows in “Listen port”) to the appliance. As the Endpoint on the other side use the router’s public address. The export already uses the public address the appliance shows on the internet, not the private one of its interface. The keepalive every 25 seconds keeps the router’s translation open.
A site has no address that can be reached (for example a line with a shared address). On the side that can be reached leave the “Endpoint” empty: that side only listens, and the other one calls it. The firewall then opens the port by itself to any address, and the detail says so: “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.” No service on the wan zone is needed: apply the firewall. The keepalive of the calling side keeps the tunnel up.
The handshake is there but the traffic does not get through.
wg0is not in a zone: linesunzoned-fwdappear in the firewall log. Add it to thesiteszone.- The
siteszone’s matrix does not open the LAN, or a forward rule limits it: lineszone-sites-fwdorzone-sites-to-lan. - The network you are looking for is not among the profile’s “Remote networks”.
- The destination PC does not use the appliance as its gateway, or its firewall refuses traffic from another network (Windows Firewall often does this with ping and file sharing).
Names do not resolve. The branch’s DNS protection is off (the forwarded
domains say so with “DNS protection is off: the appliance resolves nothing…”),
or the headquarters’ sites zone lacks the UDP and TCP 53 services.