Situation
John Smith Ltd browses over a static-address fibre connected to eth0
(203.0.113.10/29, the provider’s gateway 203.0.113.9). So as not to be left
stranded when the fibre goes down, it adds a backup FWA line: the FWA router is
connected to eth2 and gives it its address over DHCP (192.168.8.100/24, with
the FWA router 192.168.8.1 as gateway).
What you want to achieve:
- the fibre carries all the traffic as long as it works;
- if the fibre goes down, or stays up but no longer leads to the internet, the traffic moves to the FWA by itself;
- when the fibre comes back, new traffic goes back to the fibre;
- the video recorder (NVR 192.168.10.30), published on port 8443, answers only on the fibre, because the fibre’s fixed address is the one the security company’s technicians know.
In Argos each line is a gateway (Network and uplinks → Gateways): an interface’s default route, with a priority and a reachability check. The lowest priority carries the traffic, the others wait and take over when it goes down. Gateways take effect together with the firewall, with “Apply” and the 60-second confirmation window.
What you need
- The FWA router connected to
eth2, set to give an address over DHCP to whoever connects to it (which is how they normally come out of the box). - Access to the console from the office LAN (
eth1). Do not work from either of the two lines you are configuring: a mistake would cut off your session. - Two probe hosts: two addresses on the internet that always answer ping and that do not belong to either provider’s access network. In the example: 9.9.9.9 for the fibre and 1.1.1.1 for the FWA, two public DNS resolvers run by different operators. Check first that they answer, from Events and diagnostics → Diagnostics, “Ping” tool.
- A quiet moment: saving an interface restarts the appliance’s network and the connections in progress may drop for a few seconds.
Tip Do not use the provider’s gateway as the probe host (203.0.113.9 for the fibre): it answers even when the provider has lost its connection to the internet, and the line would never be withdrawn. Two different hosts, one per line, also keep the failure of a single external host from making both lines look down.
Steps
Prepare the second interface
- Open Network and uplinks → Interfaces and select
eth2in the list. - Set “Method” to “DHCP” and “Zone” to “WAN”. The wan zone masquerades by
default: the traffic that leaves through the FWA takes
eth2’s address. - Press “Save”. Argos asks for confirmation with the message “Saving rewrites /etc/network/interfaces and restarts the networking service: addresses may change and connections can drop. Continue?”: press “Save” in the dialog. “Interface applied” appears and the console goes back to the list.


In eth2’s form, below the fields, the line “No gateway on this interface:
default routes are set in Network and uplinks → Gateways” reminds you that the
interface has no gateway yet: you create it in the next steps.
The fibre’s gateway
-
Open Network and uplinks → Gateways. If the fibre is already configured,
eth0is in the list: select it and check the values of step 5. Otherwise press “Add gateway” (the + button in the list’s bar): “Gateways / New gateway” opens. -
In the “Gateway” block fill in:
- “Description”:
Fibre (main line); - “Interface”:
eth0; - “Gateway address”:
203.0.113.9; - “Priority”:
10; - “Active”: on.
- “Description”:
-
In the “Health check” block fill in “Probe host”
9.9.9.9and “Probe every (s)”10. -
Press “Create gateway” (or “Save gateway” if you are editing the existing one). “Gateway saved — apply the firewall to load it” appears.
The FWA’s gateway
-
Press “Add gateway” again and fill in:
- “Description”:
FWA (backup line); - “Interface”:
eth2; - “Gateway address”: leave it empty. On an interface on DHCP the field shows “the lease’s router” and the note “Empty: the router of the interface’s DHCP lease, followed at every lease.”: Argos uses the router the lease names, and follows it if it changes;
- “Priority”:
20; - “Active”: on.
- “Description”:
-
In the “Health check” block fill in “Probe host”
1.1.1.1and “Probe every (s)”10, then press “Create gateway”.


The list now has two rows. In eth2’s, the “Gateway address” column shows
192.168.8.1, the lease’s router, then priority 20, the probe host 1.1.1.1
and, under the name, “FWA (backup line)”. Every gateway just created or
edited carries the “To apply” mark: the save has written the configuration
only, and the kernel still routes as before.
Warning The priority is a number from 0 to 999 and two active gateways cannot have the same one: two default routes with the same priority would replace each other. Leave gaps between the values (10, 20, 30) so you can slot a line in between without renumbering.
Apply and confirm
- In the header, the firewall button reads “Unapplied changes”. Open it and choose “Apply”.
- “Keep the new ruleset?” opens with a countdown. The new routes, the gateways’ tables and the firewall rules are already active. Check that the console answers (open another page), then press “Confirm” within 60 seconds. “Ruleset confirmed” appears.


If you do not confirm, or you press “Revert”, Argos puts the firewall and the gateways back as they were: it is your safety net if something has cut off your access.
Restrict the publication to the fibre
With two or more active gateways Argos does one thing more: a connection that came in on one line gets its replies from that same line, whichever line carries the default route at that moment. That is why a publication “on every interface of the zone” works on both lines. If you want the NVR to answer on the fibre only:
- Open Published services → Port publication and select the NVR’s publication (ingress zone WAN, TCP 8443 towards 192.168.10.30:443; how to create it is in Publishing an internal server to authorised addresses only).
- In the “WAN interface” field choose
eth0instead of “Every interface of the zone”, then press “Save publication”. In the list the row reads “on eth0”. - Apply from the header and press “Confirm” within 60 seconds.
Tip The example’s FWA gives
eth2a private address (192.168.8.100) behind its router: something from the internet arrives oneth2only if the FWA router forwards the ports to 192.168.8.100. Many FWA lines, moreover, give the router itself a private address or one shared with other customers (CGNAT): no connection can be opened towards it from the internet, whatever Argos does. Before publishing a service on the second line, ask the provider whether the address is public and reachable.
For the technician After the confirmation the kernel has
default via 203.0.113.9 dev eth0 metric 10 onlinkanddefault via 192.168.8.1 dev eth2 metric 20 onlink(the lease’s router); each gateway also has a table of its own (1000, 1001… assigned at creation and never reused while the gateway exists) with its own default route. With two active gateways the firewall marks in thegateway_markchain the new connections that came in from a gateway interface (bits0x00ff0000of the ct mark) and the rulesip rule pref 3000+n fwmark … lookup <table>send the replies out of the same line; the rulepref 2999 lookup main suppress_prefixlength 0comes first, so the connected networks, the static routes and the tunnels always win (replies to the LAN never leave through a WAN). On every gateway interfaceignore_routes_with_linkdownis 1: when the link goes down the kernel stops using that route at once. A DHCP interface without a gateway keeps its lease’s route at metric 1000 or more, always after every gateway.
Verification
At rest
- In Network and uplinks → Gateways
eth0is “Primary” andeth2“Standby”; no row carries “To apply”. A “Probe pending” row means a gateway whose first probe has not come in yet: reload after a few seconds. - In System status → Status the “Gateways and tunnels” card lists, under
“Gateways”,
eth0andeth2with the green dot and the time since the last answer to the probe. The WAN interfaces’ cards show, next to the name, the public IP each one reaches the internet with (refreshed every 5 minutes). - In Events and diagnostics → Diagnostics the “Routes” block shows the two
default routes with metric 10 and 20; the “Policy rules” block shows rule
2999 and one
fwmarkrule for each gateway.


Simulate the fibre going down
Run the test out of hours, with a LAN client browsing (for example a page that shows the visitor’s public IP).
- Link down: unplug the cable between
eth0and the fibre router. The kernel stops usingeth0’s route at once and new traffic leaves through the FWA; after three failed probes (about 30 seconds with a probe every 10 seconds) the gateway is officially down as well. - Line up but no internet (the most insidious case): leave the cable
plugged in and instead take the fibre out of the router, or disconnect the
router from the provider’s terminal.
eth0’s link stays up; after three failed probes Argos withdraws the fibre’s default route and the traffic moves to the FWA.
In both cases you see:
- in Network and uplinks → Gateways
eth0“Down” andeth2“Primary”; - in System status → Status, in the “Attention” strip, “WAN uplink eth0 is down: its default route is withdrawn” (and, if you unplugged the cable, also “Interface eth0 has no link”);
- in Events and diagnostics → System, typing
argos-wan-monitorin the “Unit or message” filter, the lineuplink eth0: 3 failed probes — default route withdrawn; - on the client, the public IP page shows the FWA’s address.
- Plug the fibre back in. At the first successful probe Argos puts the route
back (in the journal:
uplink eth0: probe ok — default route restored),eth0goes back to “Primary” and new traffic returns to the fibre.


The publication
From one of the security company’s authorised addresses (198.51.100.0/28),
https://203.0.113.10:8443 opens the NVR. On the FWA port 8443 does not
answer, not even if the FWA router forwarded it to Argos: the publication is
restricted to eth0.
For the technician The check is done by the
argos-wan-monitor.serviceservice: it wakes up every 2 seconds, sends each gateway’s ping through its interface (ping -I) at the chosen interval, and after 3 consecutive failures removes that gateway’s default route from the main table; it puts it back at the first answer. It never withdraws the last default route left (there would be nowhere to go), and every 30 seconds it puts back the route of a gateway that counts as active if someone has removed it (anifup, a hand). A probe that could not start does not count as a failure. While a line is withdrawn, the monitor also removes its policy routes (see Sending a service or a network over a chosen line): the traffic they steered goes to the default route, and they come back with the line. The state is in/etc/edon/argos.wan.state.json. From the shell:ip route show default ip rule show journalctl -u argos-wan-monitor --since "-1h"
What it does not do
- It does not balance the traffic. It is a failover: at any moment only one line carries new traffic, the active one with the lowest priority. The others wait.
- It does not move connections already open. Each connection keeps the route and the address translation it had when it was born. When the fibre goes down (and when it comes back) the connections in progress are cut and the programs reopen them through the active line. Those that never expire, like a phone’s SIP registration renewed endlessly by its keepalives, stay stuck to the old line: they have to be deleted by hand, as explained in After a line change the phones stay on the old one.
- It does not change the public DNS. A service published on the fibre’s fixed address is not reachable while the fibre is down: whoever looks for it uses that address.
- It does not pick a line by itself for a service or a group of clients. All new traffic follows the gateways’ priority. To send a destination (the video archive the NVR uploads to the security company’s cloud) or a source (the guest network) over a chosen line you need policy routes: see Sending a service or a network over a chosen line. When the monitor withdraws a line, its policy routes are removed and the traffic goes to the default route; they come back with the line.
- It does not handle IPv6. Gateways, failover and per-line replies are about IPv4.
- Without a probe host failover happens only when the link is lost: the list says so with “link state only”. A router that stays on with the line dead goes unnoticed.
If something goes wrong
“Another active gateway has this priority: the two default routes would replace each other”. You gave the same priority to two active gateways. Choose a different one.
“A static default route has this metric: the two default routes would
replace each other — delete it in Routing”. An old static route to
0.0.0.0/0 holds the same metric. Default routes are now set only as
gateways: delete it from Network and uplinks → Routing.
“This interface already has a gateway”. Each interface has one gateway at most: edit the existing one instead of creating a second.
“Required” under eth2’s “Gateway address”. The address can stay empty
only on an interface on DHCP. Check in Network and uplinks → Interfaces
that eth2 has “Method” “DHCP”.
The list says “via the lease’s router (no lease yet)”. eth2 has not got
an address yet: check the cable and that the FWA router has DHCP on. In
Events and diagnostics → Diagnostics, “Addresses” block, see whether
eth2 has an address. Until the lease arrives, that gateway has no route to
install.
“You would lose the console on the interface you are using: choose another interface, or do this from another zone or with argos-cli”. You are working from an interface that would become the WAN side, where the console does not answer. Connect from the office LAN and try again.
“Saving the gateway failed — the gateways the interfaces file still names are not adopted yet…”. An apply is waiting for confirmation (or has just failed). Confirm or revert from the header, then save again.
The fibre is withdrawn even when it works. The probe host does not answer ping, or does so intermittently. Test it with the “Ping” tool in Events and diagnostics → Diagnostics; choose another one, save the gateway and apply.
The fibre is never withdrawn, even when the internet is down. The gateway has no probe host (“link state only”), or the probe host is a provider’s address that answers even with the upstream link cut. Use a host outside the provider.
From outside, the console does not answer on the FWA’s address. On the wan zone the console answers only if you opened it in System → Management access, and there it always asks for the second factor. Once opened, it answers on both lines: the replies leave through the line the request came in on.
You confirmed something wrong and can no longer reach the appliance. See Recovering access.