Connecting the site to Argos: tunnel, domain DNS and backup

John Smith Ltd has two places. At the site (offices, LAN 192.168.10.0/24) there is the Argos appliance argos.johnsmith.test, the site's router and firewall. In the server room (LAN 10.20.0.0/24)…

Situation

John Smith Ltd has two places. At the site (offices, LAN 192.168.10.0/24) there is the Argos appliance argos.johnsmith.test, the site’s router and firewall. In the server room (LAN 10.20.0.0/24) there is Atlas atlas.johnsmith.test (10.20.0.2, reachable from the internet as 198.51.100.40), which is also the domain controller of the domain corp.johnsmith.test (10.20.0.10).

You want the site to:

  • reach Atlas through a WireGuard tunnel that opens by itself, so that the office PCs reach Atlas’s domain, shares and services and Atlas sees the PCs’ real addresses (192.168.10.x);
  • resolve the names of the domain corp.johnsmith.test by asking Atlas;
  • save its own configuration on Atlas every night, to restore it on a new appliance if it breaks.

In this link Atlas is the hub: in the tunnel it takes the address .1 (10.250.0.1 in the example) and the site receives one (10.250.0.2). Sites do not talk to each other: each Argos talks only with Atlas. The link always starts from Argos: Atlas cannot “call” a site. The steps on Argos are already described, field by field, in the Argos manual, scenario “Joining the site to EDON Atlas: tunnel, domain DNS and backup”: they are not repeated here. This scenario instead follows the order of someone who has the two consoles open, and says what to do on Atlas’s side before, during and after.

Warning In the values of this manual the tunnel’s subnet is 10.250.0.0/24. In the real console Atlas chooses a free /24 by itself, starting from 10.201.0.0/24, which overlaps neither Atlas’s networks nor the site’s: your addresses will be those the console shows.

What you need

  • An Atlas administrator account (lwhite): its password is needed by Argos twice (link and backup enrollment) and is not kept.

  • The SHA-256 fingerprint of Atlas’s certificate, to compare on Argos before linking. In the Atlas pages described in this manual there is no place that shows it; you get it from the appliance: in Atlas’s console open System → Shell and run

    openssl s_client -connect atlas.johnsmith.test:443 -servername atlas.johnsmith.test </dev/null 2>/dev/null | openssl x509 -noout -fingerprint -sha256

    (or read it from the certificate’s details in the browser, opening https://atlas.johnsmith.test).

  • From Argos to Atlas, outbound: tcp 443 to atlas.johnsmith.test. For the tunnel also Atlas’s hub UDP port; at the first link Atlas chooses it (the first free one from 41820 up). Nothing is opened towards the internet on Argos.

  • In front of Atlas, forwarding of the hub’s UDP port to 10.20.0.2 (router or the Argos on the other side; see step 5). Without it, the link registers but the tunnel does not open.

  • That the site’s networks do not overlap Atlas’s (10.20.0.0/24, 10.20.1.0/24, the VPN clients’ network 10.20.30.0/24) nor those of other sites already linked.

  • For the backup: the Backup module on Atlas with at least one storage ready and the archives’ encryption password set (Backup), and on the other side the edon-agent client 1.4.0 or later (it comes with Argos).

Steps

On Atlas’s side: before linking

  1. Open Network → Argos. For now the block says «No site linked: the link has not been started yet.» It is the starting point: the block lists the sites and lets you revoke them, but does not create them.
  2. Check in Network → Interfaces that eth0 has 10.20.0.2/24 and, if you want the DC to announce a different address, in System → Settings → Active Directory domain → Domain controller address that the address offered is reachable from the site. With a private LAN the DC stays on the LAN address (10.20.0.10) which the site reaches through the tunnel; if Atlas has no private LAN, at the first link the DC announces the hub’s address.
  3. Open Network → IPAM and check that the networks to be linked do not already exist with other addresses. A network already created by hand with the same prefix as the site is “taken over” by the link (it becomes trusted and locked), and on unlinking it goes back as it was.
  4. Prepare the backup: Network → Local firewall, «Firewall settings» icon → «Services» block: turn on «Backup» (tcp 8443) with «Reachable from» «LAN and VPN sites», press «Apply» and within 60 seconds «Keep changes». The site counts as «LAN and VPN sites» when the tunnel is up; with «Backup» off the port is closed and the client waits with no other message.

For the technician If the DC were on a rented server with no private LAN, the site reaches it at the hub’s address; this changes the address the DC publishes in the DNS: it is automatic, and an address set by hand is never overwritten.

Follow the Argos manual, scenario “Joining the site to EDON Atlas”. In short, in System → Atlas:

When What you do on Argos
Tunnel In «Atlas address» type atlas.johnsmith.test, press «Verify», compare the fingerprint with the one obtained above, set «Site name» (headquarters), enter lwhite and the password and press «Link»
Firewall Confirm «Keep the new ruleset?» within 60 seconds
Backup In the «Backup on Atlas» panel press «Verify», compare the fingerprint, check «Name on Atlas» (argos.johnsmith.test) and «Source address», enter the credentials again and press «Enrol»

Link with Atlas’s public address or name, never with an address reached through an old manual tunnel that the link replaces: Atlas refuses it («Atlas was reached inside the manual tunnel the join replaces: join with Atlas’s public address or name»).

On Atlas’s side: after linking

  1. Go back to Network → Argos. Now the block shows the «Link» (the UDP port and the tunnel’s subnet: «UDP port n · Subnet network», for example 41820) and the site headquarters with its state.
    • Right after the first link the state may be «Waiting»: the join (which goes through 443) succeeded but the tunnel’s handshake did not. If Argos shows «Waiting for the handshake: check that UDP port … of Atlas is reachable from here», forward that UDP port from the router (or from the Argos in front of Atlas) to 10.20.0.2, same port. Atlas’s firewall opens it by itself, from the tunnel’s projection, from any source (sites often have dynamic IPs).
    • Once the handshake succeeds the state becomes «Connected» and «Networks» (192.168.10.0/24), «Version» and «Last contact» appear. Argos updates Atlas every 5 minutes, and at once if the site’s networks change.
  2. Open Network → IPAM. The network 192.168.10.0/24 appears as «Argos headquarters», with the marker «managed by the Argos link» and «Trusted» on and locked (it is not deleted from IPAM: it is removed by unlinking the site). A trusted network is not blocked by fail2ban; the meaning of «Trusted» is in the chapter Network.
  3. Open System → Settings → Local firewall → Services. «Active Directory», «DNS», «LDAP» and «File sharing» must be on with «Reachable from» «LAN and VPN sites» (if they were off the link turned them on; if they were on «Anywhere» they stay so). The site’s networks are now among the services’ «LAN and VPN sites».
  4. There is no need to touch Atlas’s DNS for the site: the site’s networks entered by themselves into the trusted networks of the domain DNS’s ACL, so the site’s PCs can query it. Atlas’s forwarder (System → Settings → Active Directory domain → DNS Settings) must be an external DNS; do not put Argos’s address (192.168.10.1) there while Argos uses Atlas as its DNS, because requests would go round in circles between the two.

The domain DNS for the site

  1. On Argos, with the tunnel up, the domain corp.johnsmith.test is asked of Atlas, and all other requests go to Atlas as long as the tunnel has a fresh handshake (under 3 minutes); when the tunnel drops they go back to the forwarders saved on Argos (the «DNS» row says «fallback: the saved forwarders»). The lan’s DHCP scopes with «DNS server» empty hand out Argos as DNS, and their clients resolve the domain with nothing else. A scope with an explicit DNS does not: Argos flags it.
  2. If the site already has an Active Directory domain of its own (ad.johnsmith.test, dc1 192.168.10.10), its forwarded domain stays as it is: the link adds Atlas’s domain beside it, it does not replace it.

Argos’s backup on Atlas

  1. Open Backup → Clients. After the enrollment from Argos, argos.johnsmith.test appears with the labels «Authorized» and «Enabled». Select it and check in «Associated IP» the address from which Atlas accepts it: it is the one declared as «Source address» on Argos. If the client connects through the tunnel, the right address is the site’s in the tunnel (10.250.0.2 in the example values); if the client is refused («Client refused: it connects from an address that is not authorized») correct it here and press «Save».
  2. Check «Included folders»: those Argos declared at enrollment must appear (/etc, /var/lib/argos, /var/lib/edon). The list is on the client and the only source of truth: if it is empty, «No folders configured: the client will back up nothing.»
  3. In the scheduling block choose the storage (for example Office NAS, see Backup), a daily cycle at 22:00 and press «Save» at the bottom of the page (a single «Save» for the whole client card). The form is prefilled with the appliance’s values but is not saved until you save. It is Atlas that decides when to save, how many snapshots to keep and which to delete.
  4. To avoid waiting for the night, in the detail’s bar press «Run now» (choose the «Storage» and the «Cycle»). «Command queued: the client runs it at its next contact. If it does not collect it within an hour, the command expires.» appears: the client collects it at its next contact.

For the technician Argos enrols with --restore-root /var/lib/argos-restore: a restore can write only there, never over files in use. Before each backup a hook writes the manifest that lets the restore verify which version of Argos the backup comes from. Atlas tells Argos its own LAN address on 8443 as the write-server: the site must be able to reach it. The client’s certificate lasts a year and renews itself.

Check

  • On Atlas, Network → Argos: the site headquarters is «Connected», with «Networks» 192.168.10.0/24 and a «Last contact» of a few minutes ago.
  • On Atlas, in the «Satellites» card of the same page, headquarters appears «Connected for» a few minutes, within a minute of Argos’s console starting (from Atlas 1.3.6~deb112; the Argos side is in its manual).
  • On Atlas, in the window of the satellite headquarters, «Open the console» opens the site’s console in a new tab, already signed in as atlas:lwhite@John Smith Ltd, and opening the window again the «Open connections» block shows the session (from Atlas 1.3.6~deb117, with an Argos that takes Atlas’s administrators; see Open the console). From a PC of the site, on Argos’s sign-in page, «Sign in with Atlas» goes through Atlas’s sign-in and the confirmation «Open the console of headquarters (…) as lwhite?» and gets in the same way.
  • On Atlas, System → Shell: ping -c 3 10.250.0.2 answers (Argos answers ping from the hub); ping -c 3 192.168.10.57 (a PC of the site’s LAN) answers too: in the tunnel zone Argos lets through from Atlas towards the LAN only ping and replies to connections opened by the site.
  • On Argos, System → Atlas: «Linked», «Tunnel» «Handshake fresh», «DNS» «Atlas», and the resolution of the name corp.johnsmith.test from the diagnostics page gives the domain controller’s address (10.20.0.10).
  • From a PC of the site: nslookup corp.johnsmith.test resolves, ping 10.20.0.10 answers, and \\atlas\common opens (the shares of a PC in the domain are in the scenario A new PC in the domain). From a PC of the site’s guest network the same ping must not answer: only the office LAN reaches Atlas.
  • In Backup → Logs «Backup started» and «Backup finished» appear for the client argos.johnsmith.test; in Backup → Clients the client does not have the «With errors» label. On Argos the «Backup on Atlas» panel shows «Atlas answers.» and the last backup.

Which networks pass and which do not

  • The site sends Atlas only the private networks (10/8, 172.16/12, 192.168/16) of Argos’s lan zone, between /16 and /30. The guest and production networks stay out. The site’s network 192.168.10.0/24 goes in; a guest network 192.168.20.0/24 does not.
  • Atlas sends the site its own private networks (10.20.0.0/24 and, if there are any, the other adapters). A network that Atlas sends and that already exists at the site (it overlaps an interface or another tunnel) is not routed: Argos flags it as «not routed» in the «Networks received» row.
  • The link does no NAT: Atlas sees the PCs’ real addresses (192.168.10.x), by which to recognise them in IPAM, in the DNS and in the logs.
  • A second site links in the same way from another Argos, with another «Site name». Each Argos talks only with Atlas: the two sites do not see each other. In Atlas’s «Argos» block there is one row per site.

Checklist before saying “done”

  1. The site is «Connected» in Atlas and «Linked» with «Handshake fresh» in Argos.
  2. The hub’s UDP port is forwarded to 10.20.0.2 and the «Backup» service (tcp 8443) is on for «LAN and VPN sites».
  3. The site’s PCs resolve corp.johnsmith.test and reach 10.20.0.10.
  4. The client argos.johnsmith.test has its schedule confirmed and a first backup finished in the Log.
  5. You have noted (outside the appliance) Atlas’s archive encryption password: without it Argos’s backups, like all the others, cannot be restored.

If something goes wrong

What you see What it means What to do
Argos: «Waiting for the handshake…» The tunnel does not open Forward the hub’s UDP port (you read it in Atlas’s «Argos» block, «UDP port n») from the router to 10.20.0.2
Site «Waiting» in Atlas No recent handshake As above; also check that Argos is on
Site «Unreachable» Atlas has not seen contact for a while Check the site’s line and the tunnel on Argos
Argos: «A network of this site overlaps one Atlas already has: …» Equal or overlapping LANs Change the addressing of one of the two (the message names the networks)
Argos: «Atlas refused the user name or the password» / «That user is not an administrator of Atlas» Wrong credentials or an account without rights Use an Atlas administrator (lwhite); after too many errors wait a few minutes
Backup: «Client refused: it connects from an address that is not authorized» «Associated IP» does not match Step 11
Backup: buttons off and «Backup port closed by the local firewall» «Backup» service off in Atlas’s firewall Step 4
Backup: «Atlas does not answer: …» on Argos The client does not reach the write-server On Atlas the «Backup» service (tcp 8443) on and the site reachable; if it is reached through the tunnel, enrol the client again with the tunnel source address
The site’s management application does not open from Atlas’s proxy From the tunnel zone Atlas opens only ping See the scenario Publishing an internal site, warning about the tunnel
«Not connected for time» in «Satellites» The channel with Argos is closed Check the line and Argos’s console; after 15 minutes Atlas sends a notification
«Of another Atlas» The satellite is enrolled with another Atlas If it is a mistake, remove it from that Atlas and restart Argos’s console
«To accept» The backup presents itself as an Argos, without the hub Open it and press «Accept as Argos»
«nginx unreachable: the satellites’ channel is not published…» Atlas cannot write to nginx Check System → Status: Atlas retries every minute
«Argos too old: it does not take Atlas’s administrators.» on «Open the console» The site’s Argos does not have Atlas administrators’ access Update Argos; meanwhile sign in with a local account of the site
«Atlas administrators’ access is off on the site.» The site’s switch «Access for Atlas’s administrators» is off A local account of the site turns it on again in Settings → Atlas, «Atlas satellite» card, under «Management from Atlas»; turning it off closes the Atlas sessions on the site at once (Argos manual, and Open the console)
«This site asks for the code and your account has no token: …», «This site asks for the code, but Atlas has no MFA module: …» or «This address asks for the code and root has none: …» The address chosen asks for the code and your Atlas session cannot give it Enrol a token in Tools → MFA enrollment, sign in to Atlas with a domain account instead of root, or choose the local network address; without the MFA module, sign in to the site with one of its local accounts
«Sign in with Atlas» on the site answers that it is busy Someone began many «Sign in with Atlas» from the site’s public sign-in page and filled its waiting slots Get in with «Open the console» from the satellite’s window, which is not affected; after a few minutes «Sign in with Atlas» is back
«The sign-in has expired or was already used: start again from the site’s sign-in page.» «Sign in with Atlas» begun more than 5 minutes before, already used, or Atlas restarted meanwhile Start again from the site’s sign-in page
«Open the console» on the «Atlas tunnel» address does not load from a computer on Atlas’s LAN The computer has no route to the sites’ tunnel networks Add the route to the sites’ tunnel networks, via Atlas, on the LAN’s gateway (or on the computer)
The console of a site behind NAT, or linked by backup only, opens from no address Your browser reaches none of the site’s addresses Use the console proxy (from Atlas 1.3.6~deb123), which needs Atlas’s mail name; with «Certificate not obtained» beside the site’s name check the wildcard *.<mail name> in the public DNS and Atlas’s port 80

Removing the site

  • From Argos: System → Atlas, «Leave» panel, «Unlink» and confirm the firewall window within 60 seconds. Atlas forgets the site and its networks.
  • From Atlas (if Argos does not answer or the site closes): Network → Argos, open the site and press «Revoke»; confirm «Revoke the site…». The site becomes «Revoked»: its networks leave IPAM, the DNS ACL and the firewall’s LAN. At the next synchronisation Argos answers with the unlinking and the site disappears from the list; on Argos the block becomes «Link revoked» and must be removed by hand («Remove»). If Argos is unreachable, Atlas deletes the revoked site after 7 days. Revoking the site here also revokes its satellite; leaving the hub from Argos only unlinks it. A revoked site linked again stays revoked as a satellite until you turn «Active» back on in the satellite’s window (from Atlas 1.3.6~deb112).
  • The backup is independent of the tunnel: to stop it use «Remove» in the enrollment on Argos (the copies already made stay on Atlas) or «Delete» the client in Backup → Clients (with «Erase the client’s archives too» only if you no longer need them).
  • The old manual tunnels (argos0), created before the automatic link, appear in the block as «manual», with only «Delete»; a new link of the same site replaces them by itself.

Restoring Argos from the backup

If the site’s appliance breaks, the procedure is in the Argos manual (scenario “Replacing a failed appliance with the backup on Atlas”). On Atlas’s side: Backup → Clients → argos.johnsmith.test → «Restore», choose storage, repository and snapshot, and a folder as destination: the Argos client writes only in /var/lib/argos-restore and refuses any other destination, including «Restore to the original location». Then on Argos you press «Restore» in the dedicated panel.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer