Management access

It decides where SSH and the console answer and where the console asks for the second factor. It is the most delicate point of the configuration: a mistake…

The Management access block with the lan zone and the other zonesThe Management access block with the lan zone and the other zones
The Management access block with the lan zone and the other zones

What it is for

It decides where SSH and the console answer and where the console asks for the second factor. It is the most delicate point of the configuration: a mistake here can lock you out of the appliance. That is why the console has checks of its own, described below.

The basic rule (the lockout protection) is fixed: SSH and the console always answer on the lan zone. Every other zone answers only with its switch on, and in no other case: an inbound service or an “accept” policy of the zone on the same port opens neither SSH nor the console. On a zone that is switched off SSH is dropped before the zone’s rules, and the console answers with a refusal (403).

The table

The table has one row per zone and these columns:

Column What it does
“Zone” The name of the zone. The first row is always the lan.
“SSH (22)” On: SSH answers on the zone’s interfaces. On the lan it is fixed at “always”.
“console (443)” On: the console answers on the zone’s interfaces. On the lan it is fixed at “always”.
“Console 2FA” On: a console login that comes from this zone also asks for the app’s code. On the wan it is fixed at “always”; on the lan it is a switch like the others.
“Interfaces” The interfaces the zone holds right now.

All the switches are off by default: on a freshly installed appliance SSH and the console answer only on the lan, and the second factor is asked for only from the wan.

Under the table, the lines “SSH answers on” and “console answers on” list, as you change the switches, the interfaces each service will answer on. If the lan zone has no interfaces yet, the notice “The lan zone has no interface: until it gets one, SSH and the console answer on every interface, or the appliance could not be reached.” appears: it is the case of a new installation, still to be configured.

When it takes effect

The two halves of the block have different timings, and the Effect of saving box reminds you of them:

  • SSH follows the firewall: the switch opens or closes the port at the next “Apply” in the header, with the 60-second confirmation window.
  • The console reads the switches as soon as they are saved: a zone switched off gets a refusal at once; a zone switched on answers when “Apply” opens the port there.
  • The second factor holds from the save: it does not change the firewall, it is the login that asks for it.

After the save the message is “Saved — a zone switched off for the console is refused at once; SSH and the zones switched on follow the next firewall apply”.

Warning If you manage the appliance from a zone other than the lan (for example from the wan, from outside), switch the console on for that zone and apply the firewall before doing anything else. The scenario Managing the console from outside shows the steps.

The second factor per zone

The zone a login comes from is the one on which the appliance answers the client, that is the interface the reply leaves from, not the address the client contacted. A client on the wan network that contacted the appliance’s LAN address is still a wan client. The gateways’ interfaces always count as wan, even when they are not in the wan zone.

Some special cases:

  • the wan always asks for the code, but only once the lan zone has an interface: before that the appliance is being configured and nobody can have a factor;
  • a request that comes from the appliance itself (an SSH tunnel to the local port) never asks for the code;
  • a Citadel remote session does not ask for the code (it has a check of its own: see Remote Support and Monitoring below);
  • a session opened from the lan without a code is not valid from a zone that asks for one: the console refuses it at the first request from there.

The checks: what the console refuses and what it reports

Message What it means
“You would lose the console on the interface you are using: do this from another zone, or with argos-cli” You are switching the console off on the zone you are connected from. The save is refused. Do it from another zone, or from a shell with argos, which runs on the appliance and is not refused (see Argos from the shell).
“Your account has no second factor, and this would ask for one on the network you are connected from: enroll it in System → Users first” You are asking for the code on the zone you are connected from, but your account has no factor. The save is refused.
“the console answers on a zone that asks for a second factor, and your account has none: enroll it in System → Users” Warning after the save: from those zones you would be refused.
“the console answers on a zone that asks for a second factor, and some accounts that can sign in have none: from there they are refused until they enroll (System → Users marks them)” Warning after the save: other administrators have no factor. In the user list the “2FA” column says who.

The same “you would lose the console” check also protects the other saves that move the console: the zones (moving an interface or deleting a zone), the interfaces, the VLANs (saving or deleting one), the PPPoE links (saving or deleting one), the gateways and the restore of a backup.

Conflicting publications

If you open SSH or the console on a zone where a publication forwards the same port to an internal host, the publication would capture that traffic before it reaches the appliance. The console then shows the Publications in the way window with the list: “Disable and save” switches them off (they stay in Published services → Port publication, disabled) and saves; closing the window saves nothing. The message after the save says how many were disabled (“publications disabled: 1”).

This always holds for the SSH port, and for 8000 when another publication already takes 443 on the console’s zones. For 443 and 80 the conflict is soft: the publication wins, the console moves to 8000 (see below) and the Status page reports it.

The console’s ports: 443, 80 and 8000

The console answers over HTTPS on 443, served by the appliance’s proxy. On the same zones:

  • 80 redirects to https (and serves the Let’s Encrypt validation, if you use it);
  • 8000 is a transitional bridge: it answers only with a redirect to 443, for old bookmarks.

443 and 80 are shared with the Reverse proxies: on a zone where a proxy opens them, the firewall cannot close them, and the console answers with a refusal (403) if the zone does not have its switch on. The lan always answers.

The console moves to the full 8000 in two cases, and the Status page reports it:

  • “The console answers on port 8000: the running firewall does not open 443 yet — apply the firewall and the console moves back to 443”;
  • “The console answers on port 8000: a publication takes 443 elsewhere on the console’s zones — remove or move the publication and the console moves back to 443”.

The move to 8000 is immediate; the return to 443 happens only with a clean firewall (no pending changes, no apply awaiting confirmation).

If nginx does not start, the console goes into a direct mode, in plain http on port 80 (8000 if 80 is taken by a proxy or a publication), so that it never ends up unreachable. The Status page says so and tells you how to put nginx back in front; the details are in Recovering access.

For the technician The management ports are handled in the input chain before any zone rule, after the acceptance of loopback and established connections: that is why a save never cuts a session already open. SSH and 8000 are dropped explicitly on the other interfaces; 443 and 80 are not, because the proxies share them, and the zone check is done by the console (403 answer). The console’s check reads the saved configuration, not the running ruleset: that is why switching off takes effect at once. The detail of the ruleset is in Files and services.

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