What it is for
An OpenVPN tunnel joins this appliance to one other site: another Argos, or a device that speaks OpenVPN — MikroTik (RouterOS 7), pfSense, OPNsense, Teltonika, a Linux server. It is the right choice when the other side offers OpenVPN and not IPsec, or when only TCP gets through on the way (OpenVPN can travel over TCP, even on port 443 where the appliance does not use it). Between two Argos, WireGuard stays simpler and faster.
Each tunnel has a role, chosen when you create it and fixed afterwards:
- Listening: this Argos waits for the other side on a port of its own (the first free one from 1194). It needs an address the other side can reach.
- Calling: this Argos connects to the other side’s server. It needs no public address.
A listening tunnel serves one site only: for three branches you create three tunnels, each with its own port. It is not made for a single PC or phone, which has no remote networks: for a device there is WireGuard (see Connecting a PC or a phone with WireGuard).
The keys stay where they were made
Each side has its own key pair, and the private key never leaves the device. At the first save Argos makes its own certificate (self-signed, valid ten years) and shows its SHA-256 fingerprint. The other side is recognised in one of two ways:
- by the fingerprint of its certificate: you paste its certificate, its fingerprint or the text its Argos exports. The simplest way, and the one between two Argos;
- by its CA and the name of its certificate: for a device with a PKI of its own (pfSense, OPNsense, a MikroTik with its CA). The other side’s certificate can then be renewed without touching this side.
To the other side you give this Argos’s certificate («Copy the certificate»): a device that cannot pin a fingerprint imports it as a CA. «New certificate» makes another one: the fingerprint changes, and until the other side has the new one the tunnel does not come up.
A tunnel saved without the other side’s certificate waits: it does not start, the Status page does not report it as a fault, and its remote networks stay held back (see below).
The blocks of the form
- Tunnel: description, role, protocol (UDP, or TCP if that is all the way lets through: both sides must use the same), for a listening tunnel the other side’s address (optional: when set, the port opens to that address only) and the port; for a calling tunnel the server’s address and its port.
- Authentication: this Argos’s certificate, how the other side is recognised, its certificate or its CA, and tls-crypt, which encrypts the handshake too (on by default; the listening side makes the key and it travels in the export).
- Networks: the local networks (the lan zone’s, by default) and the remote networks, routed through the tunnel.
- Encryption: the ciphers offered, AEAD only (AES-256-GCM, AES-128-GCM, ChaCha20-Poly1305); the two sides use the first they share.
- State: connected (with the other side’s address and for how long), connecting, waiting for its client; the traffic; who the firewall opens the port to.
Joining two Argos
- On the listening site (A): New tunnel, role «Listening», remote networks = site B’s networks. Save: the tunnel waits.
- On A: Export for the other side. It is a complete client configuration: A’s address and port, A’s certificate, the tls-crypt key and A’s networks. It carries the tls-crypt key: hand it over by a safe way.
- On site B: Import a configuration, paste the text, review and save: a «Calling» tunnel is born already filled in.
- On B: Export for the other side gives B’s certificate and its networks.
- On A: open the tunnel and paste that text into «The other side’s certificate» (the remote networks fill themselves in when the list is empty). Save.
- On both: put the
ovpn0interface in a zone and press «Apply».
An .ovpn file from another device imports the same way: the console reads the server, port, protocol, CA and server name, tls-crypt key and networks. A private key in the file is ignored, and the page says so; tls-auth is not offered.
With the tunnel down, the traffic stops
For each remote network of an active tunnel the appliance keeps a fallback route that discards the traffic. While the tunnel is up its own route wins; when it drops, or still waits for the other side, the traffic for those networks stops instead of leaving in clear through the internet line. Switching the tunnel off removes the fallback route too.
The firewall
A listening tunnel opens its port, in its protocol, to the other side’s address if you gave one (and it resolved), otherwise to anyone: only the right certificate gets in. The port opens with «Apply». No publication may take it and no zone service may open it to everyone while it is limited. A calling tunnel opens nothing.
Where to see the state
In System status → Status, «Gateways and tunnels» shows each OpenVPN tunnel: «Connected · <address>», «Connecting…», «Waiting for the other side» or «Not running». The «Attention» strip reports a calling tunnel that does not connect or a stopped tunnel; a listening tunnel waiting for its client is no fault. The service argos-openvpn@ovpn0 appears among the services.
For the technician Debian’s OpenVPN 2.6, in TLS (never the static key, never compression, TLS ≥ 1.2,
disable-dco). The configuration is/etc/openvpn/argos/ovpnN.conf(a directory Debian’s generator does not read), started byargos-openvpn@ovpnN.service; the credentials are in/etc/edon/openvpn(0700). The listening side is amode serverwith a single client: the client’s address and networks are in theDEFAULTfile ofccd-ovpnN. The process runs asnobodyonce the tun is open. OpenVPN installs the routes to the remote networks; the fallback is ablackholeat metric 100000 installed by argos (at boot too, by the network’s boot pass). The client takesroute-gatewayalone from the server: routes, DNS and redirects pushed by the server are ignored. The state is read from the process’s management socket.