Zones and rules → Zones

The bar at the top shows the title “Zones”, the number of zones, the search and, on the right, the “Reload” and “Add zone” buttons (the “+” icon). The list…

The list of zonesThe list of zones
The list of zones

The list

The bar at the top shows the title “Zones”, the number of zones, the search and, on the right, the “Reload” and “Add zone” buttons (the “+” icon). The list is a table with these columns:

Column Content
“Name” the zone’s name in capitals, with the description below
“Interfaces” the zone’s interfaces, or “no interfaces”
“Inbound policy” “Accept”, “Drop” or “Reject”
“Forward policy” “Accept”, “Drop” or “Reject”
“SNAT” “Enabled” if the zone masquerades, otherwise “Disabled”

The search filters by name, description and interface names. Click a row to open the detail: the bar shows the arrow to go back to the list (“List”), the title “Zones / LAN” and, on the right, the “Delete zone” button (the bin icon).

The fixed zones wan and lan

Every appliance has two zones that can be neither renamed nor deleted, because their name is their role:

  • wan is the internet side. The WAN side includes the interfaces of the wan zone and all those that carry a gateway, even if they are in another zone: the DHCP server never answers there. That is why an interface with a gateway cannot be in the lan. Forced DNS does not apply to the wan zone.
  • lan is the trusted local network. SSH and the console always answer on the lan, whatever the other settings say (see “Protection against lockout”).

In the detail of wan and lan the “Name” field is read-only and the “Delete zone” button is disabled; its tooltip explains: “wan (the internet side) and lan (the local network) are the appliance’s fixed zones: their name is their role, so it cannot be changed and they cannot be deleted.”

On a new appliance the two zones start like this:

Zone Inbound policy Forward policy Masquerade Inbound services
wan Drop Drop on none
lan Accept Accept off UDP 53 and TCP 53 (DNS)

The interfaces are assigned during the installation or later. In the example company the wan zone holds eth0 (fibre) and eth2 (FWA), the lan holds eth1.

Creating a zone

  1. Click “Add zone” (the “+” icon in the list’s bar). The title becomes “Zones / New zone”.
  2. Type the “Name”, for example guests (the guests’ network).
  3. Choose the policies, switch on the zone’s interfaces (for example eth1.20), add any rules and services.
  4. Click “Create zone” at the bottom right.
  5. Apply the firewall from the header and confirm within 60 seconds (see “Saving and applying”).

A new zone starts with “Inbound policy” and “Forward policy” on “Drop”, masquerade off and ping answers on: until you open something, the new network reaches neither the appliance nor the other networks.

The detail of the lan zoneThe detail of the lan zone
The detail of the lan zone

The zone’s fields

“Name” — required. Only lowercase letters, digits, - and _, 32 characters at most, and it must start with a letter or a digit. The console always shows it in capitals, but saves it in lowercase. Two zones cannot have the same name. Renaming a zone carries its openings in System → Management access along with it.

“Description” — free text, shown in the list below the name.

“Inbound policy” — what happens to traffic addressed to the appliance itself from this zone, when no inbound service has already accepted it:

  • “Accept”: the appliance answers everything;
  • “Drop”: the packet is discarded silently, the client waits until its own timeout;
  • “Reject”: the packet is discarded and the client gets a refusal at once (“port unreachable”).

“Drop” is the right choice towards the internet (it gives nothing away); “Reject” is handier on internal networks, because a program that tries a closed port gets the error at once instead of hanging.

“Forward policy” — what happens to traffic that comes in from this zone and crosses the appliance towards another network, when neither the forward rules nor the matrix have decided. The same three values.

“Masquerade (SNAT)” — “Traffic leaving through this zone’s interfaces is rewritten with the interface address.” It is needed on the zone that leads to the internet: the provider does not know how to reach your private networks, so connections must leave with the appliance’s address. It is on by default on the wan; it is not normally needed on other zones. Note that it applies to the traffic that leaves through the zone’s interfaces, whatever zone it came in from.

“Answer ping (ICMP)” — on by default. “Off: this zone’s interfaces stay silent to echo requests. The services the zone opens keep answering, and IPv6 neighbour discovery is never dropped.” Switching it off on the wan makes the appliance less visible, but remember that the provider’s diagnostic tools get no answer either.

“Forwarding matrix” — “Per-destination-zone overrides for traffic entering from this zone; unset pairs follow the zone’s forward policy.” There is one row for every other zone that has at least one interface; for each one choose “Zone default” (follows the “Forward policy”), “Accept”, “Drop” or “Reject”. If there is no other zone with interfaces yet you read “No other zone with interfaces yet.”

Example: the guests zone has “Forward policy” on “Drop” and, in the matrix, the WAN row on “Accept”. The guests go out to the internet but reach neither the LAN nor production.

“Interfaces” — “Physical interfaces, VLANs and VPN tunnels. An interface belongs to one zone at most; assigning it here moves it from its previous zone.” Every interface of the appliance has a box with a switch and a line that says “Interface available” or “Interface assigned to zone LAN”. The list includes:

  • the network cards (eth0, eth1…) and the VLANs (eth1.20…);
  • the WireGuard (wg0…) and IPsec (ipsec0…) tunnels, even if the profile is off;
  • the PPPoE links (ppp0…), even if the link is off.

You can also assign the zone from the Network and uplinks → Interfaces and Network and uplinks → VLANs pages and from the detail of a PPPoE link: it is the same setting. The interface of the support link to Citadel never appears and joins no zone; that of the link to EDON Atlas (wg-atlas) is reserved and has rules of its own.

For the technician A zone without interfaces generates no rule at all: its publications are not published and it does not appear in the other zones’ matrix. The matrix cells towards a zone that is empty today stay saved as they were.

Forward rules

Forward rules are for when the matrix is too coarse: opening only one port and one host towards another zone, or closing one protocol towards a zone that is otherwise open. The block is called “Forward rules” and has the “Add rule” button at the right of its header.

“Read in order, ahead of the forwarding matrix: the first rule that matches decides. Traffic no rule matches follows the matrix and the forward policy. A port publication is not affected: its allowed sources are what restrict it.”

Each rule is created and edited in a dialog with these fields:

Field What it does Values
“Destination zone” the rule concerns the traffic that leaves through this zone’s interfaces another zone; for a new rule the wan is proposed
“Action” what to do with the traffic that matches “Accept”, “Drop”, “Reject”; “Reject” for a new rule
“Protocol” “TCP”, “UDP” or “Any protocol”
“Ports” destination ports 25, 465,587, 137-139; “Empty: every port of the protocol.” Disabled with “Any protocol”
“Source” addresses in the zone the traffic starts from “IPv4 address or CIDR, comma separated.” Empty = “Any”
“Destination” addresses in the destination zone as above
“Comment” free note 128 bytes at most

Confirm with “Add” (or “Save” if you are editing) and the rule joins the form’s list. Remember that the zone is not saved yet: you need “Save zone”.

In the list each rule has its order number, a summary (“→ LAN · TCP 445”, with “from …” and “to …” below if you gave addresses), the action in a green (accept) or red (drop, reject) box and the “Move up”, “Move down”, “Edit rule” and “Remove rule” buttons, plus a switch to disable it without deleting it. A rule towards a zone that has no interfaces shows “(no interfaces)”: it matches nothing until the zone gets some. If no other zone exists the button is disabled and you read “No other zone yet: a rule needs a destination zone.”

Example (John Smith Ltd): the production zone (production, eth1.30, 10.30.0.0/24) has “Forward policy” on “Drop”. The PLCs must save their recipes on the NAS 192.168.10.20 over SMB. Add a rule: “Destination zone” LAN, “Action” “Accept”, “Protocol” TCP, “Ports” 445, “Destination” 192.168.10.20, “Comment” PLC recipes on the NAS. Everything else from production towards the LAN stays dropped.

Order example: in the guests zone, with the matrix towards WAN on “Accept”, a rule “→ WAN · TCP 25” with action “Reject” stops the guests from sending mail directly, while the rest of their browsing passes. If you put a rule “→ WAN · Any protocol · Accept” first, the one on TCP 25 would never be reached.

The dialog of a forward ruleThe dialog of a forward rule
The dialog of a forward rule

For the technician The rules are in the zone_<name>_fwd chain, after the refusal of DNS over TLS (port 853) of the zones with forced DNS and before the matrix. A rule is oifname { <the destination's interfaces> }, then ip saddr/ip daddr if given, then <protocol> dport {…} (meta l4proto <protocol> without ports, nothing for “Any protocol”). Every rule that drops or rejects has in front of it a log rule with the prefix argos-drop zone-<a>-to-<b>-rule-<n>, visible in Events and diagnostics → Firewall. A rule that a hand-edited file makes unreadable never opens anything: an unreadable “Accept” is left out, an unreadable “Drop” or “Reject” drops the whole pair of zones. “Reject” is reject with icmpx port-unreachable.

Inbound services

“Openings to the firewall itself, from this zone’s interfaces.” An inbound service makes the appliance answer on a port for the clients of this zone, even if the “Inbound policy” drops everything else. The “Inbound services” block has the “Add service” button in its header; without services you read “No inbound services. Traffic addressed to the firewall follows the zone’s inbound policy.”

Fields of the dialog:

Field What it does Values
“Protocol” “TCP” or “UDP”
“Ports” the appliance’s ports to open required: 443, 137-139 or 80,443 (lists and ranges can be combined)
“Source” restricts the service to some addresses of the zone “Optional: IPv4 address or CIDR, comma separated”
“Comment” free note 128 bytes at most
“Limit (0 = off)” how many new connections to accept per unit of time 0–1000000, 0 = no limit
“Per” the limit’s unit “second”, “minute”, “hour”
“Burst” how many connections to accept at once before the limit steps in 0–10000, 0 = nftables’ default value

“Rate limit: while under the bucket the service accepts; excess connections fall to the zone’s inbound policy.” The limit is overall for the service, not per client.

In the list each service shows protocol and ports (“UDP 53”), source, comment and any limit (“≤ 30/minute”), with the “Edit service” and “Remove service” buttons and a switch to disable it.

Some ports are not opened with a service:

  • SSH and the console are opened only from System → Management access: on a zone where they are off, a service on port 22 does not open SSH, and one on 443 does not open the console (the console answers with a refusal). See System.
  • The listen port of a WireGuard VPN and IPsec’s UDP ports 500 and 4500 open by themselves. The WireGuard port opens to the addresses of the profile’s Endpoint, or to any address if the profile has no Endpoint or its name did not resolve; IPsec’s IKE opens to the remote gateways, and to any address while a profile waits for a peer with a dynamic address. As long as they are restricted to the remote site, a service that would open them to anyone is refused (see the error messages); give the service a “Source” if you really need it.
  • DHCP (UDP 67) opens by itself on the interfaces where you switch on the DHCP server or relay.

Tip The lan is born with “Inbound policy” on “Accept” and with the two DNS services already there. If one day you move the policy to “Drop” to close the appliance to the LAN’s clients, DNS keeps working.

Saving and applying

At the bottom of the form, the “Effect of saving” box reminds you what happens: “Saves the configuration. Use Apply in the header to activate firewall changes. Dependent services may be updated when saving. The console follows the saved configuration at once: a save that would cut it on the interface you are using is refused.”

In practice:

  1. “Create zone” or “Save zone” (at the bottom right) writes the configuration. The “Restore” button beside it puts the form back to the saved values. If you leave the page with unsaved changes, the console asks whether to save or discard them.
  2. The firewall status button in the header changes to “Unapplied changes”. “View the changes”, in its menu, lists what will change (Zones and rules → To apply).
  3. Open that button and choose “Apply” (or use “Apply” in Zones and rules → Overview). The new rules take effect and the “Keep the new ruleset?” window opens.
  4. Click “Confirm” within 60 seconds. If you do not confirm, or if you click “Revert”, the previous rules come back. It is your safety net: if a change has cut you off, you will not be able to confirm and the firewall goes back by itself to how it was.

Some things follow the zone as soon as you save, without waiting for “Apply”: the DHCP server stops serving at once an interface moved into the wan, application control, the Inspector and the reverse proxies line up with the new interfaces, and the console decides at once which interfaces it answers from. The firewall rules proper change only with “Apply”.

If the apply is refused you see the message “The saved configuration cannot be applied”, followed by what the check found at fault, for example “zone wan: interface eth3 is not on this host” when a zone holds an interface the appliance no longer has. Nothing is loaded and the firewall stays as it was. If instead you confirm when the window has already expired you read “The confirmation window had already expired: the previous rules are back”.

The complete procedure is described in First sign-in and using the console.

Deleting a zone

Open the zone and click “Delete zone” in the detail’s bar. The console asks: “Delete zone GUESTS? The interfaces it holds become unassigned and its publications are switched off.”

When you delete a zone:

  • its interfaces are left without a zone: the traffic that comes in through them is dropped;
  • the port publications of that zone are switched off, not deleted: you can reassign them to another zone and switch them back on;
  • the matrix rows and the forward rules of the other zones towards it are deleted;
  • the reverse proxies stop answering on that zone;
  • the zone leaves forced DNS, the zones the Inspector inspects and the openings of System → Management access; its application control policy is deleted.

A zone created later with the same name inherits none of these openings. The configuration changes at once; the firewall rules with the next “Apply”.

You cannot delete the last zone the Inspector covers while inspection is on: first choose another zone or switch inspection off in Protection → Inspector.

What else concerns the zones

Several pages refer to the zones. The settings live there, but the effect is on the zone’s chains:

Where What it does on the zone
System → Management access opens SSH and the console on the chosen zones (on the lan they are always open) and decides from which zones the console asks for the second factor
DNS and DHCP → DNS protection, “Force the appliance’s DNS” for the chosen zones every DNS query is answered by the appliance’s resolver, whatever server the client asked, and DNS over TLS/QUIC (853) towards the outside is refused. Never on the wan. Needs “Apply”
Protection → Inspector, “Inspected zones” what the chosen zones accept goes through the intrusion prevention engine first. No zone chosen means no inspection
Applications → Application control blocks applications per zone
Published services → Reverse proxy opens TCP 80 and 443 on the zones where the proxy answers
Published services → Port publication every publication answers on the interfaces of its “Ingress zone”
DNS and DHCP → DHCP hands out addresses on the interfaces outside the WAN side

For the technician Order of evaluation in the inet argos_filter table.

input chain (traffic to the appliance): loopback; ct state invalid dropped; established connections accepted; Citadel and Atlas links; lockout protection (SSH and console); blocklist; ACME challenge (with Let’s Encrypt); DHCP; WireGuard listen port and IPsec’s IKE; ping switched off per zone; ping and IPv6 control accepted; jump to zone_<name>_in by iifname; log and drop of what has no zone.

zone_<name>_in chain: the resolver’s port if DNS is forced; TCP 80/443 if a reverse proxy answers on the zone; inbound services; log; inbound policy.

forward chain: invalid dropped; MSS of the IPsec tunnels and of the PPPoE links; established connections accepted; blocklist; Atlas link; port publications (Argos’s DNATs only, recognised by the 0x08000000 mark); jump to zone_<name>_fwd; log and drop.

zone_<name>_fwd chain: refusal of port 853 if DNS is forced; forward rules; matrix; log; forward policy.

Masquerade is in the ip argos_nat table, srcnat chain: oifname { <the zone's interfaces> } masquerade. Under inspection, every “accept” of an inspected zone becomes a hand-off to Suricata (queue num 0 bypass); drops and rejects stay. The tables are replaced atomically with a single nft -f; other programs’ tables (podman, for example) are not touched. The policy drops have the log prefixes argos-drop zone-<name>-in and argos-drop zone-<name>-fwd.

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