Situation
Sooner or later it happens: a change takes away the way to the console, or the
console answers in an unexpected way, or someone has lost their phone or their
password. Argos is built so that you can go back from almost any mistake
without reinstalling. This chapter collects the typical cases, from the most
common to the rarest, with the symptom you see and the way back in. The
examples are those of John Smith Ltd: console on the office LAN,
https://192.168.10.1/, with eth1 in the lan zone.
First of all, three things Argos guarantees and that are worth remembering:
- the lan zone always answers: SSH (port 22) and the console (port 443) are open on the lan zone whatever its rules say, before any other rule. If the lan zone has no interfaces yet, they answer on every interface;
- firewall changes are on trial for 60 seconds: “Apply” loads the new rules, and if you do not press “Confirm” the previous ones come back on their own;
- a save that would take the console away from you is refused: Zones, Interfaces, VLANs (deletion included), the PPPoE links (save and deletion), Gateways, Management access and the restore of a backup answer “You would lose the console on the interface you are using…” instead of going ahead.
What you need
- A PC to connect to the office LAN.
- For the more serious cases, a shell on the appliance: SSH from the LAN, or a
keyboard and screen connected to the appliance (the “local console”). On the
screen, before the login, the
WebUI:line gives the console’s address. - The password of
rootor of another administrator.
Steps
Case 1 — A wrong change, not yet confirmed
You pressed “Apply” and the page no longer answers, or the countdown of “Keep the new ruleset?” is running and something is wrong.
- Do nothing for 60 seconds. Without “Confirm”, the appliance puts back the previous rules and gateways on its own.
- If the window is still visible, you can also press “Revert”: the previous rules come back at once.
- If the page stayed open, “Ruleset reverted” appears; otherwise reload it. In the header the firewall’s status button says “Unapplied changes”: the saved configuration is still the wrong one, but it is not live. Correct it and apply again.
Warning The 60-second window protects what goes through “Apply”: zones, publications, gateways, blocklist, management access. It does not protect the pages that act on the network at once: Network and uplinks → Interfaces, VLANs and the PPPoE links. There “Save” rewrites the network configuration and restarts it immediately (for a PPPoE link, it restarts the session). The console refuses a save, or the deletion of a VLAN or of a PPPoE link, that would take the console away from the very interface you are using, but changing the LAN’s address (for example from 192.168.10.1 to 192.168.11.1) is allowed: afterwards, the console is at the new address.
Case 2 — Confirmed, and now you cannot get in
-
Try from the office LAN, at the address the console had:
https://192.168.10.1/. If you changed the LAN’s address, your PC must be in the new network: give it an address by hand in the new network (for example 192.168.11.50/24) or renew it from DHCP. -
Try
https://192.168.10.1:8000/too: in some cases the console moves to port 8000 (see case 4). -
If the console does not answer from the LAN, get into a shell: from a LAN PC
ssh root@192.168.10.1, or with keyboard and screen on the appliance. An appliance installed from the ISO accepts SSH logins ofrootwith the password. -
Look at the situation with the
argoscommand, which brings the console’s pages to the shell:argos firewall status # filtering? changes to apply? confirmation pending? argos firewall zones list # which interfaces each zone has argos network interfaces list # addresses and zone of each interface argos system settings access show # where SSH and the console answer, where 2FA is asked -
Correct what is missing. The most common examples:
# The LAN has lost its address or zone (acts at once: the network restarts) argos network interfaces set eth1 --method static --primary 192.168.10.1/24 --zone lan # eth1 has left the lan zone argos firewall zones set lan --add-interface eth1 # The console no longer answers on the zone you used it from (here: the wan) argos system settings access set --console wanFrom the shell these commands are not refused as in the browser: they run on the appliance, not through one of its interfaces.
-
Apply:
argos firewall applyOn a terminal the command asks for confirmation within 60 seconds, like the console’s window. With keyboard and screen on the appliance you can use
argos firewall apply --confirm, which confirms at once: there is no connection to lose there. Not from SSH: if the apply took SSH away from you, the automatic confirmation would lock you out.
For the technician
argostalks to the console through the socket/run/argos/cli.sock, reachable by root only, and runs the same actions as the pages, with the same checks and messages. If it answers with exit status 7 (“the console does not answer on /run/argos/cli.sock: is argos.service running…”), restart the console withsystemctl restart argos.serviceand try again. The full reference is in Argos from the shell.
Case 3 — After a reboot only management gets through
After a reboot (often after an update) the clients can no longer browse, but the console answers. The “Attention” strip of the Status page says “Firewall at boot is not running” and “Saved changes are not applied yet”.
This is the boot protection: the confirmed rules could not be loaded (the file was unreadable, or a new version of nft refused it), and the appliance, instead of staying open, loaded the emergency rules: everything dropped, except the management ports on every interface.
- In the header open the firewall’s status button, choose “Apply” and press “Confirm” within 60 seconds. The rules are rebuilt from the saved configuration, which is intact.
- If the apply does not succeed, the message after “Applying the ruleset
failed” says why; if the checks refuse it, the message is “The saved
configuration cannot be applied”, followed by what is wrong. The details
are in Events and diagnostics → System, filtering on
argos-firewall.
Case 4 — The console answers in http, on port 80 or 8000
You open the console and the browser shows no padlock: the console answers in
plain http, at http://192.168.10.1/ (or :8000). The Status page says “The
proxy in front of the console is down: the console answers directly, in plain
http, on port 80 — fix the proxy, then run scripts/console-setup.ts to put it
back in front”.
This is direct mode. Normally the console is served by the proxy (nginx) over HTTPS.
If during an update or an installation nginx cannot restart (a foreign file in
/etc/nginx/conf.d that fails the check, nginx stopped, the port taken),
Argos does not leave the console unreachable: it makes it answer by itself, in
http, on port 80, or on 8000 when 80 is taken by a reverse proxy or by a
publication.
If you started the update yourself with “Update now”, the waiting page
(“Updating…”), when the console still does not answer it, says “If the
console’s HTTPS front did not come back, the console answers in plain http
meanwhile:” and offers http://192.168.10.1/ and, “while a Reverse proxy or a
publication holds port 80”, http://192.168.10.1:8000/. Try the first, then
the second: the page does not take you there by itself. Beside them it reminds
you of another possible cause: if the console’s certificate has been renewed
in the meantime, the browser asks about it only when it loads a page. Before
switching to http, press “Open the console” and, if the browser asks, accept
the new certificate.
-
While you are in direct mode, use the console only from the LAN: in http the password travels in clear. The certificate settings are refused (“The proxy in front of the console is down and the console answers directly (plain http)…”).
-
From a shell as root read nginx’s error and correct it:
nginx -t -
Put nginx back in front of the console:
deno run -A --node-modules-dir=manual /usr/lib/argos/scripts/console-setup.tsIf it succeeds, the console is back on
https://192.168.10.1/and the warning disappears from the Status page.
Two related variants, which the Status page tells apart:
- “The console’s site in the proxy is not in place (…): the proxy runs on with its previous configuration, which still serves the console…”: the console is still on HTTPS with the previous configuration. Correct what the error names, then run the same script.
- “The console answers on port 8000: …”: this is not a failure. The running
firewall does not open 443 yet (apply the firewall), or a publication has
taken 443 on the console’s zones (remove or move the publication). The
console is on
https://192.168.10.1:8000/and goes back to 443 by itself when the cause goes away.
Case 5 — “Too many attempts — try again in a few minutes”
-
Five failed logins in a row from the same address with the same account block that pair for 5 minutes. Twenty failed logins on the same account, from any address, block it everywhere for 15 minutes: in Events and diagnostics → System an
argos-authline says so. Wait, or sign in with another account. -
If you cannot wait, from SSH (which is not affected) restart the console: the block is reset.
systemctl restart argos.serviceA firewall apply waiting for confirmation, if there is one, is rolled back by the restart.
-
Twenty failed attempts that are not yours mean that someone is trying passwords: in Events and diagnostics → System filter on
argos-authand look at the addresses they come from (see Managing the console from outside).
Case 6 — The second factor is lost
The phone with the authenticator app is lost or broken. Another administrator
removes the factor from System → Users; if nobody can get in, you use
argos-mfa-reset from a shell. The steps are in
Personal administrators and two-factor authentication.
Case 7 — The root password is forgotten
- If there is another console account, sign in with it, open System →
Users, select
root, type the new password in “Password” and “Repeat password” and press “Save user”. - If there is none, recovery is outside Argos: it is Debian’s standard procedure for resetting the root password, with physical access to the appliance (booting into recovery mode from the boot loader). Afterwards, create a second administrator straight away.
Case 8 — Every page leads to the first-run setup
- The console asks for the license and the product registration before any other page (First sign-in and using the console). If the registration service does not answer, “The service does not answer: continue for this session”, under the form, opens the console for this session.
- When the browser is not enough, the way is the shell: SSH from the LAN or
the text console, not System → Shell, which is one of the console’s
pages and does not open during the setup.
argos system setupsays where it stands and what comes next;argos system setup accept-licenseaccepts the license;argos system settings registration submitandverifyregister the product. - On an Argos EDON Krios created the Network step never holds the
console: “Later” is always there. If the reboot that hands the NICs over
never came, the step offers “Reboot now” and “Put back”; from the shell
argos system setup network reboot-noworabandon.
Verification
- From the office LAN the console answers on
https://192.168.10.1/and the login works. - In the header the firewall’s status button says “Active”, without “Unapplied changes”.
- The “Attention” strip of the Status page carries no warnings about the console, the firewall at boot or direct mode.
argos firewall statusfrom the shell says that the firewall is filtering and that there are no changes or confirmations pending.
If something goes wrong
- “The console does not answer from this network zone.” (a white page, error 403). You are coming from a zone the console is not open on: connect from the LAN, or open the zone in System → Management access.
- From the LAN neither the console nor SSH answers. The problem is below
the firewall: cable, switch, the PC’s address, or the LAN interface no longer
has the address you think. Use keyboard and screen and
argos network interfaces list. argosanswers with status 5. You are not root: usesudo argos …or log in as root.argos firewall applyanswers that the apply is refused. The configuration has a problem that would prevent loading it (for example a zone that names an interface that does not exist): the message names it. Correct it and try again.- The
console-setup.tsscript fails again. The message names the nginx line that is wrong; until you correct it, the console stays in direct mode, reachable. - You confirmed a restore from backup by mistake. The previous
configuration is beside it, in
/etc/edon/argos.json.before-restore-<time>(see Replacing a failed appliance).