What it is for
An IPsec tunnel connects this appliance to one remote gateway: a FortiGate, a MikroTik, a DrayTek, a Sophos, a pfSense, an AWS or Azure VPN, another Argos. You use IPsec when the other side does not speak WireGuard. Between two Argos, WireGuard remains the simpler choice.
Argos makes route-based tunnels only: each tunnel is an interface ipsecN and the routes to the remote networks always point at it. If the tunnel is down, traffic to the remote network is dropped: it never leaves the WAN in clear. The other side can be either route-based or policy-based; what matters is that the traffic selectors match (see the “Networks” block).
In this chapter’s example, headquarters connects to the warehouse, which has a FortiGate reachable as warehouse.johnsmith.test (198.51.100.60) with the network 192.168.60.0/24. The tunnel is ipsec0, description “Warehouse”: IKEv2 with a pre-shared key, “Compatible” proposals, local network 192.168.10.0/24 and remote network 192.168.60.0/24; the interface ipsec0 is in the sites zone, like wg0.
What the page looks like
- The list’s bar carries the title “VPN IPsec”, the count, the search and the icon buttons “Reload”, “Import” and “Add an IPsec tunnel”.
- Each row shows the interface name and the description, below them the gateway (or “Peer with a dynamic address”) and the remote networks, and on the right the state: “Disabled”, “Waiting for its certificate”, “Connected”, “Waiting for the peer”, “Connecting” or “Not negotiated”.
- The detail’s bar carries the arrow back to the list (“List”), the title (“VPN IPsec / ipsec0 · Warehouse”, or “VPN IPsec / New tunnel”) and two buttons acting on the whole tunnel: “Parameters for the other side” and “Delete the tunnel”.
- The detail is divided into blocks: “Tunnel”, “Authentication”, “Networks”, “Cryptography” and, for a tunnel already saved, “State”. Required fields have their label in bold. At the bottom: “Restore” and “Create tunnel” or “Save tunnel”.


Here too the console chooses the interface name (ipsec0, ipsec1…) and its internal identifier by itself, and never changes them.
The “Tunnel” block
Description. A free name (“Warehouse”), at most 128 bytes.
Remote gateway. The other side’s public IPv4 address or name, without a port (IKE always uses UDP ports 500 and 4500). Left empty, the tunnel becomes a tunnel waiting for a peer with a dynamic address (see below). A name is resolved at save time; if it does not resolve, the save is refused. Two active tunnels cannot have the same gateway.
Start the tunnel. On by default: this side opens the tunnel as soon as it is saved, reopens it when it drops and, if the other side closes it, brings it back up at the first packet. Off, this side only answers when the other one calls. With the gateway empty the switch is off and locked.
IKE version. “IKEv2” (default) or “IKEv1 (compatibility)”. Choose IKEv1 only for a device that does not speak IKEv2; the form reminds you: “IKEv1 is deprecated (RFC 9395): use it only for a peer that cannot speak IKEv2. Main mode only, never aggressive mode.” With IKEv1 some choices narrow: no peer with a dynamic address, fewer algorithms, no “One SA for every network” selectors, and the lifetimes become fields to set.
Active. On by default. Off, the tunnel is torn down and its routes removed.
Two warnings may appear in the block: “The IPsec VPN service is not installed (package charon-systemd): the tunnels cannot start”, and, for a tunnel already saved, “ipsec0 is in no zone: the traffic from the tunnel is dropped until a zone holds it (Zones and rules → Zones).”
The peer with a dynamic address
When the other side has no fixed address (a branch on a line with a dynamic address, a device behind a NAT), leave the “Remote gateway” empty. The tunnel then:
- never dials: it waits for the other side to show up, and in the list it shows as “Waiting for the peer”;
- requires the “Remote identity”, which must be a name (for example
warehouse.johnsmith.test), never an address: it is the identity the other side presents, and what tells it apart. Two waiting tunnels cannot have the same remote identity; - works with IKEv2 only;
- carries ESP inside UDP 4500, so the firewall need not open anything else.
As long as at least one active tunnel waits for a dynamic peer, the firewall opens UDP ports 500 and 4500 to any address; the “State” block says so: “A peer with a dynamic address: UDP 500 and 4500 are open to any address while this tunnel waits for it; the peer gets in only with its identity and credentials.”
The “Authentication” block
Method. “Pre-shared key” (default) or “Certificate”. Both sides must use the same.
Pre-shared key. The secret key both sides share: from 20 to 128 printable characters. The icon button “Generate a key” creates one of 32 characters; the “Copy the key” button copies it. The key is write-only: once saved it is never shown again, not even to you. Copy it before saving and hand it to the other side over a secure channel. In a tunnel already saved the field stays empty (when you enter it, it shows “Unchanged (not shown)”) and the note says “Leave empty to keep the current key; type or generate one to replace it.”: leave it empty to keep the current key, type or generate a new one to replace it.
Local identity. How this appliance presents itself to the other side. Left empty, the console uses the console’s domain (if there is a Let’s Encrypt certificate) or the WAN’s public address, and writes it in the field as a suggestion; if it finds neither, the field becomes required. After the save, the chosen value stays written in the tunnel.
Remote identity. How the other side presents itself. Empty, the gateway applies. It is required for a peer with a dynamic address.
An identity can be:
| Type | Example | Notes |
|---|---|---|
| IPv4 address | 203.0.113.10 |
The most common case with the pre-shared key. |
| Name (FQDN) | warehouse.johnsmith.test |
Required for a dynamic peer. |
| E-mail address | vpn@johnsmith.test |
Some devices use it as their identity. |
| Distinguished name (DN) | CN=warehouse, O=John Smith Ltd |
With certificate authentication only. |
Warning Many negotiation problems come from the identities. A device behind a NAT tends to present itself with its private address: set on it, explicitly, the identity this appliance expects. The “Parameters for the other side” sheet reminds you of it for FortiGates.
Certificates
With the “Certificate” method each side authenticates with an X.509 certificate signed by a CA the other side trusts. The “Authentication” block then shows the “Certificate of this appliance” field, a panel with the installed certificate and the steps to take, and the “CA of the other side” field.
Certificate of this appliance has three origins:
- “Issued by this Argos”. The appliance has an IPsec CA of its own, separate from the one that signs the console’s certificate. On save, the CA issues the tunnel’s certificate for the local identity; it issues it again by itself 30 days before it expires or when you change the local identity. The panel shows the “IPsec CA of this appliance” with the “Download the CA” and “Copy the CA” buttons: this is the certificate the other side imports as a trusted CA. The “Re-create the CA” button creates a new CA, after a confirmation (“Re-create this appliance’s IPsec CA? Every certificate it issued is issued again, and every peer must import the new CA.”). The CA is never re-created by itself.
- “Signing request for the other side’s CA”. The key is created on the appliance and never leaves it. Save the tunnel first: while the certificate is missing, the form stays open on the tunnel after the save. Then press “Create the request”, copy the request with “Copy the request” and have it signed by the other side’s CA. Paste the signed certificate (the certificate first, then any intermediates) into the field “Signed certificate (PEM, intermediates after it)” and press “Install the certificate”. “New request” generates another one.
- “Imported PKCS#12”. A
.p12or.pfxbundle prepared by another PKI, at most 64 KB. Save the tunnel first (the form stays open on it, as for the signing request), choose the file in “PKCS#12 bundle (.p12, .pfx)”, type the “Bundle password” and press “Import the bundle”. The password is used once and is not stored.
As long as the certificate is missing, the panel says “No certificate yet: the tunnel waits for it” and in the list the tunnel shows as “Waiting for its certificate”. As soon as the certificate is installed, the tunnel starts by itself.
CA of the other side. The PEM certificate of the CA that signs the other side’s certificate (the root first, then any intermediates). The tunnel accepts only certificates signed by this CA. Once installed, the field shows “Installed: …, valid until …”, with the CA’s subject and expiry date: paste a new one only to replace it.
With certificates, if the remote identity is empty the gateway applies, and the other side’s certificate must then carry it (as a name or as an address).
Expiry dates show on System status → Status: “IPsec certificate of ipsec0 expires in 12 days” (from 30 days before), “IPsec certificate of ipsec0 has expired: the tunnel cannot authenticate”, and “The IPsec CA is damaged (its certificate and key do not match): re-create it”. Every day the appliance renews the certificates its CA issued, and warns by e-mail (if notifications are configured) about those about to expire that it cannot renew by itself.
The “Networks” block
Local networks. The networks behind this appliance that the tunnel carries. For a new tunnel the field starts with the networks of the lan zone (in the example 192.168.10.0/24). Each network must really belong to the appliance: the network of an interface, a network reached by a static route or the remote network of another tunnel. At most 16.
Remote networks. The other side’s networks, routed into the tunnel (192.168.60.0/24). At most 16; not 0.0.0.0/0; no overlap with the local networks, with the appliance’s networks or with those of another active tunnel.
Traffic selectors. How the two sides describe the tunnel’s traffic. It must match what the other side expects:
| Option | When to use it |
|---|---|
| “One SA per network pair” (default) | Policy-based peers: MikroTik, DrayTek, most firewalls. One security association (SA) for each local network × remote network pair, at most 64 pairs. |
| “One SA for every network” | IKEv2 peers that negotiate several networks in a single SA. Not available with IKEv1. |
| “Any to any (route-based peer)” | 0.0.0.0/0 on both sides: FortiGate in interface mode, pfSense with VTI, AWS, Azure. The routes still cover only the remote networks. |
The “Cryptography” block
“Both sides must offer the same algorithms.” The Proposals field offers three choices:
- “Compatible (AES-256, SHA-256, DH 14)” (default): accepted by every common peer (FortiGate, MikroTik, DrayTek, Sophos, pfSense, AWS, Azure). It applies to both phases, with PFS on group 14.
- “Modern (AES-256-GCM, SHA-384, DH 20)”: authenticated encryption and an elliptic curve group, for the peers that support them (another Argos, recent firewalls). IKEv2 only.
- “Custom”: you choose each algorithm of “Phase 1 (IKE)” (Encryption, Integrity or PRF, DH group) and of “Phase 2 (ESP)” (Encryption, Integrity, PFS group).
The algorithms on offer are only those the appliance considers secure: encryption AES-128-CBC, AES-256-CBC, AES-128-GCM, AES-256-GCM, ChaCha20-Poly1305; integrity SHA-256, SHA-384, SHA-512; DH groups 14, 15, 16, 19, 20, 21 and 31; for phase 2 also “None (no PFS)”. SHA-1, 3DES, DES, MD5 and DH groups 1, 2 and 5 are not there: a device that knows only those needs updating. With IKEv1, phase 1 accepts neither GCM nor ChaCha20, and Curve25519 (group 31) is not there; the form shows only what the chosen version can negotiate.
Phase 1 lifetime (s) and Phase 2 lifetime (s) appear only with IKEv1, which often wants the same lifetimes on both sides: phase 1 between 3600 and 86400 seconds (default 28800), phase 2 between 900 and 28800 (default 3600). With IKEv2 each side decides its own.
The “State” block
For a saved tunnel the “State” block says what it is doing right now: “Connected · for 2h 14m · through NAT (UDP 4500)”, with “Received … · sent …”; or “Connecting”, “Not negotiated”, “The tunnel is off”. If the console cannot query the service, “The IPsec VPN service could not be asked for the tunnel’s state” appears; if the interface is missing, “The interface ipsec0 is missing: save the tunnel again”.
Below, the block says where the firewall opens IKE: “The firewall opens IKE and ESP to 198.51.100.60 only — the gateway, resolved when the tunnel is saved; it holds once the firewall is applied”, or “Not open yet: save the tunnel to resolve the gateway, then apply the firewall”.
“Parameters for the other side” and “Import”
“Parameters for the other side” opens a sheet with everything the other side’s administrator must enter in their device, seen from their side: the remote gateway (that is, this appliance), the IKE version, the method, the identities exchanged, the proposals, the lifetimes, the local and remote networks swapped, the selectors, dead peer detection (30 s) and NAT traversal. The pre-shared key is not there: hand it over separately.


The “Other side’s device” menu changes the algorithm names to follow each vendor’s documentation: “Generic”, “Fortinet FortiGate”, “MikroTik RouterOS”, “DrayTek Vigor”, “Sophos Firewall”, “pfSense”, “AWS Site-to-Site VPN”, “Azure VPN Gateway”, “strongSwan”, “Another Argos”. For some it adds practical notes (where to set the Local ID on a FortiGate, how to name the sides on AWS, the custom policy on Azure, IPsec access on Sophos’s WAN zone) and, for MikroTik, strongSwan and pfSense, a configuration to adapt. A question mark flags an algorithm that device does not offer: choose the “Compatible” proposals then. The sheet ends with an [argos-ipsec] block, which another Argos reads with “Import”, and, for a certificate tunnel, with this appliance’s IPsec CA. The buttons are “Copy” and “Close”.
“Import” opens “Import an IPsec tunnel from another Argos”: paste the other Argos’s sheet into the “Parameters” field and press “Import”. A new tunnel opens, not yet saved, with the other side’s values already turned round to your point of view (gateway, identities, method, proposals, lifetimes, selectors, networks; for a certificate tunnel, the other side’s CA too). Set the pre-shared key, the same as on the other side, and press “Create tunnel”. If the text does not contain the block, the window answers “No [argos-ipsec] block recognised”.
The firewall: what opens, and to whom
For each active tunnel with a gateway, after “Apply” the firewall accepts UDP 500 and 4500 and the ESP protocol only from the gateway’s addresses, resolved at save time. For the tunnels waiting for a dynamic peer it opens UDP 500 and 4500 to anyone, as said above. There is no need to add zone services.
While an IPsec tunnel is active, these are refused:
- a UDP publication on ports 500 or 4500, which would take IKE to an internal server;
- a zone service opening UDP 500 or 4500 to any source, when every active tunnel has a fixed gateway (it would widen the opening limited to the gateways). A service with its own sources remains allowed.
Then the ipsecN interface goes into a zone, as for WireGuard, and the firewall is applied.
Saving, switching off, deleting
The save checks the tunnel, prepares the certificates and loads it into strongSwan at once. If the tunnel’s configuration changed, the running session is closed and renegotiated: the tunnel stays down for a few seconds. A save that changes nothing does not touch it. On success “IPsec tunnel applied” appears; otherwise “Applying the IPsec tunnel failed” with the reason, and the tunnel stays recorded anyway, so the next save tries again.
“Delete the tunnel” asks for confirmation (“Delete IPsec tunnel Warehouse? It goes down, its configuration and its certificates are removed.”). The interface leaves its zone.
Main checks and messages
| Message | What it means |
|---|---|
| “An IPv4 address or a host name, without a port” | The gateway is not valid. |
| “The gateway’s name does not resolve: the firewall cannot be opened to it” | The name gave no IPv4 address. |
| “Another active tunnel uses this gateway” | Each gateway has a single active tunnel. |
| “IKEv1 cannot wait for a peer with a dynamic address (it would need aggressive mode): use IKEv2” | Empty gateway with IKEv1. |
| “An IPv4 address, a host name or an e-mail address” | Invalid identity. |
| “A DN identity needs certificate authentication” | A distinguished name used with the pre-shared key. |
| “Required: the identity the other side sends” / “A peer with a dynamic address needs a name, not an address” | Remote identity missing, or not suitable for a dynamic peer. |
| “Set a pre-shared key” / “At least 20 characters” / “Printable characters only, 128 at most” | Pre-shared key missing, too short or with characters not allowed. |
| “Not negotiable with IKEv1 (no GCM or ChaCha20 for phase 1, no Curve25519): choose the Compatible proposals” | Algorithm not available with IKEv1. |
| “Phase 1 3600-86400 s, phase 2 900-28800 s” | IKEv1 lifetimes out of range. |
| “IKEv1 carries one network pair per SA” | “One SA for every network” with IKEv1. |
| “Add at least one network” / “16 networks at most” | Local or remote networks empty, or too many. |
| “0.0.0.0/0 would take the whole routing table: use the selectors ‘any to any’” | The default route as a network. |
| “Too many network pairs (64 at most): use ‘one SA for every network’” | Too many local × remote combinations. |
| “A local network overlaps a remote one” | The two lists touch. |
| “Not a network of this appliance (an interface, a static route, or another tunnel’s remote network)” | A local network the appliance does not reach. |
| “Overlaps a network attached to this appliance” / “Overlaps another active tunnel (WireGuard or IPsec)” | No-overlap rules. |
| “A UDP publication forwards port 500 or 4500: it would take the IKE traffic” | Conflicting publication. |
| “A zone service opens UDP 500 or 4500 to any source (Zones and rules → Zones): give it a source or remove it” | Conflicting zone service. |
| “The IPsec VPN service is not installed (package charon-systemd)” | The IPsec service is missing: a tunnel cannot be activated. |
| “The certificate does not match the key” / “The certificate does not carry the local identity” / “The certificate has expired” | The signed certificate does not suit the request or the identity. |
| “Wrong password” / “The bundle is too large (64 KB at most)” | Problems with the PKCS#12. |
| “Not a valid CA certificate (or expired)” | The other side’s CA you pasted is not suitable. |
What IPsec on Argos does not do
- Only links between sites with IPv4 addresses, no IPv6. No IPsec client of a PC or a phone: those clients ask for an address to use in the tunnel, which Argos does not assign (for a device there is WireGuard, see Connecting a PC or a phone with WireGuard). Remote access for the staff is EDON Atlas’s “VPN Roadwarrior” (see EDON Atlas).
- No IKEv1 aggressive mode and no weak algorithms.
- No dynamic routing (BGP): the networks are written by hand.
- If the gateway has a name and changes address, the firewall follows only after a new save and “Apply”. For a peer whose address changes, use the tunnel waiting for a dynamic peer.
- With two internet lines, when the main line goes down the tunnel forms again over the other line after a few tens of seconds, provided the other side also accepts that address.
Where to see the state
In System status → Status, in the “Gateways and tunnels” card, every IPsec tunnel shows under “VPN tunnels” with its state: “Connected”, “Connecting”, “Not negotiated”, “Waiting for the peer” or “State unknown”. The “Attention” strip reports “VPN ipsec0 is not connected” when the interface is missing or when a tunnel this side starts keeps connecting; a tunnel waiting for the peer, or idle because the other side closed it and nobody has reopened it yet, is not a fault. The strongswan.service service shows among the page’s services.
For the technician The engine is strongSwan (
charon-systemd,swanctl). Argos owns only/etc/swanctl/conf.d/argos.conf(0600; the pre-shared key is written in it in hexadecimal) and the credential filesargos-<id>*under/etc/swanctl; the IPsec CA is in/etc/edon/ipsec. Each CHILD_SA carries the tunnel’sif_id; the XFRM interfaceipsecNhas MTU 1400 and the console installsip route replace <network> dev ipsecN src <local address>, so the appliance’s own traffic too (a ping from Diagnostics) falls within the selectors. A tunnel that starts usesstart_action = trap|start,close_action = trap,dpd_action = restart,unique = replace; MOBIKE is off; with certificatessend_cert = always. With IKEv1 the phase 1 lifetime is split intoreauth_time+over_timeso that the total proposed is the one set. The firewall clamps the MSS of the TCP leaving throughipsecN. The state is read fromswanctl --list-sas, never fromip xfrm state, which would print the keys. Interfaces and routes come back at boot with the network’s boot pass.