First office: one line, one LAN, DHCP and protected DNS

John Smith Ltd has just installed Argos in place of its old router. The appliance has two NICs:

Situation

John Smith Ltd has just installed Argos in place of its old router. The appliance has two NICs:

NIC Connected to Address
eth0 fibre terminal, static line 203.0.113.10/29, gateway 203.0.113.9
eth1 office switch 192.168.10.1/24

The office has some twenty PCs, a printer and the NAS (192.168.10.20). By the end of this scenario the PCs get their address from Argos, browse through the fibre and use the appliance’s DNS with the category filter, the NAS always has the same address, and the appliance sends its notifications by e-mail and updates itself.

What you need

  • Argos installed (see Installation). The installation configures one NIC only, the one it ran on; the other NICs, the zones and everything else are set from the console. Here you start with eth1 already configured as 192.168.10.1/24 and, as a temporary gateway, the old router moved to 192.168.10.254.
  • A PC connected to the office switch, with an address of the 192.168.10.0/24 network set by hand for now (for example 192.168.10.100), and the root password.
  • The line’s data from the provider: address 203.0.113.10/29, gateway 203.0.113.9.
  • The NAS’s MAC address (in this example 00:00:5e:00:53:20): you find it on its label or in the NAS’s own panel.
  • For the notifications: an SMTP relay (here smtp.johnsmith.test, port 587) with a dedicated account.

For the technician As long as the LAN zone has no interfaces, SSH and the console answer on every NIC, and until you apply for the first time the firewall is not loaded: a freshly installed appliance always stays reachable. The first “Apply” loads the rules and switches IPv4 forwarding on.

Steps

The installation’s temporary gateway

  1. From the PC open https://192.168.10.1/ and sign in as root. The browser warns that the certificate is not trusted: that is normal, you sort it out in step 11. The first-run setup opens: switch on “I have read and accept the license” and press “Accept and continue”; then register the product with John Smith Ltd’s data and the 6-digit code mailed to the technical contact (First sign-in and using the console). Then the console opens.

  2. Go to Network and uplinks → Gateways. The list already shows one gateway: the one you typed into the installer, which Argos takes over on the installation’s NIC with priority 0 — here eth1, via the old router 192.168.10.254. Select it, press “Delete gateway” in the detail’s bar and confirm. “Gateway deleted — apply the firewall to take it away” appears: until the apply in step 6 the route stays in use and the appliance keeps going out through the old router.

    Remove it before touching the NICs: an interface that carries a gateway counts as the WAN side, and as long as eth1 has one, putting it in the LAN zone (step 3) would be refused: an interface with a gateway cannot be in the LAN. If, on the other hand, the installation’s gateway is already on eth0 with 203.0.113.9, leave it: in step 5 you open it and correct its values instead of creating a new one.

Interfaces and zones

  1. Go to Network and uplinks → Interfaces and select eth1. Leave “Method” on “Static” and “Address (CIDR)” on 192.168.10.1/24; in “Zone” choose LAN. Press “Save” and, in the dialog that warns about the network restart, “Save” again. Start with eth1 because it is the NIC you are working from: the LAN zone always answers to the console and to SSH.

    Interfaces: the detail of eth1 in the LAN zoneInterfaces: the detail of eth1 in the LAN zone
    Interfaces: the detail of eth1 in the LAN zone
  2. Select eth0. “Method”: “Static”; “Zone”: WAN; “Address (CIDR)”: 203.0.113.10/29. Press “Save” and, in the dialog, “Save” again. The network restarts: the console may not answer for a few seconds, then it reloads the page.

Warning A change that would cost you the console on the interface you are using is refused with “You would lose the console on the interface you are using: do this from another zone, or with argos-cli”. If it appears while you save eth1, your values are not wrong: either the installation’s gateway is still on eth1 (step 2), or you tried to move eth1 out of the LAN. Always work from the LAN.

The line’s gateway

  1. Go back to Network and uplinks → Gateways, press “Add gateway” (the + button at the top right) and fill in:

    Field Value
    “Description” Fibre (main line)
    “Interface” eth0
    “Gateway address” 203.0.113.9
    “Priority” 10 (the console offers 100 for a new gateway: type 10)
    “Active” on
    “Probe host” 9.9.9.9
    “Probe every (s)” 10 (the value offered)

    With a single line the monitor never withdraws the default route, even when the probe fails: it would have nowhere to move the traffic to. The probe is useful all the same: System status → Status shows when the gateway last answered, and the day you add a second line (priority 20, see Two internet lines with automatic failover) failover works without touching this gateway. Press “Create gateway”. The message reads “Gateway saved — apply the firewall to load it” and the row shows “To apply”.

    Gateways: the new fibre gateway on eth0Gateways: the new fibre gateway on eth0
    Gateways: the new fibre gateway on eth0

Applying and confirming

  1. In the header, at the top right, the firewall’s status button now reads “Unapplied changes”. Press it and choose “Apply”. Argos loads the zones and the gateway together and opens the “Keep the new ruleset?” dialog with a 60-second countdown. Press “Confirm”: “Ruleset confirmed” appears.

    The confirmation dialog after “Apply”The confirmation dialog after “Apply”
    The confirmation dialog after “Apply”

    If you do not confirm within 60 seconds, or you press “Revert”, Argos puts the previous rules back by itself. This is the protection against a change that locks you out: if the console no longer answers and you cannot confirm, just wait.

For the technician The zones of a new installation are ready-made: WAN drops inbound and forwarded traffic and masquerades what leaves; LAN accepts inbound and forwarded traffic and opens DNS (udp and tcp 53). The gateway becomes the default route via 203.0.113.9 with metric 10, installed by that same “Apply” in place of the one via 192.168.10.254 and kept after the confirmation.

Host name and domain

  1. Go to System → Host identity. “Host name”: argos; “Domain”: johnsmith.test. The “Full name” box shows argos.johnsmith.test. Press “Save”: “Host identity saved” appears. The system is renamed at once and the console’s self-signed certificate is reissued for the new name. The firewall does not change.

DNS protection

  1. Go to DNS and DHCP → DNS protection and set:

    • “Enable DNS protection”: on.
    • “Port”: 53.
    • “Forwarding DNS (optional)”: leave the two forwarders offered, or type your provider’s, one per line. Empty means full recursion.
    • “Encrypt upstream queries (DNS-over-TLS)”: your choice; with the forwarders offered nothing else is needed.
    • “Queries/second per client”: 0.
    • In “Blocklists”, “Threats”, “Advertising”, “Tracking” and “General” are already on. Switch on “Filter bypass” too: without it, the browsers’ DNS-over-HTTPS gets round the filter. Switch on “Adult” and “Gambling” if the company wants them.
    • In “Force the appliance’s DNS” switch on LAN.

    Press “Save settings”. The first save downloads the lists and can take a few minutes. The final message is “DNS settings applied — the forced zones follow the change once the firewall is applied (header)”: forced DNS is a firewall rule, and you apply it in step 10.

    DNS protection: categories and forced DNS on the LANDNS protection: categories and forced DNS on the LAN
    DNS protection: categories and forced DNS on the LAN

Tip The categories apply to every client of the resolver, in every zone. To block something in one zone only, use Applications → Application control (see Blocking applications in a zone).

The DHCP server with the NAS’s reservation

  1. Go to DNS and DHCP → DHCP and select eth1, the row 192.168.10.0/24 (LAN). In the “DHCP service” block leave “On this interface” on “DHCP server”. In the “DHCP server” block:

    Field Value Note
    “Server active” on
    “Pool start” 192.168.10.128 offered: the upper half of the network
    “Pool end” 192.168.10.254 offered
    “Gateway” empty the interface’s address, 192.168.10.1
    “Lease time (hours)” 24
    “DNS servers” empty the appliance, because DNS protection is on
    “Domain” empty the appliance’s domain, johnsmith.test

    In the “Reservations” block press “Add reservation” and fill in: “MAC address” 00:00:5e:00:53:20, “IP address” 192.168.10.20, “Host name” nas. Press “Add”: the reservation goes into the table but is not saved yet. Press “Save” at the bottom: “DHCP server applied” appears.

    DHCP: the server on the LAN with the NAS's reservationDHCP: the server on the LAN with the NAS's reservation
    DHCP: the server on the LAN with the NAS's reservation

    The reservation may lie outside the pool, as it does here: the NAS gets 192.168.10.20 at its next request. Restart its network interface, or wait for the renewal.

Applying again

  1. The firewall’s status button reads “Unapplied changes” again: the forced DNS on the LAN and the DHCP opening on eth1 are firewall rules. Press “Apply”, then “Confirm” within 60 seconds, as in step 6.

The console’s certificate

  1. Go to System → HTTPS certificate. “Certificate” is on “Self-signed (private CA)”: a private CA of this appliance signs the console’s certificate, which covers argos, argos.johnsmith.test and every IPv4 address of the appliance. Press “Download CA”: the browser saves argos-ca.crt. Import it once on the PCs you manage the appliance from:

    • Windows: double-click the file, “Install Certificate”, store “Trusted Root Certification Authorities”.
    • macOS: open the file in Keychain Access, in the System keychain, and set “Always Trust”.
    • Firefox uses a store of its own: Settings → Privacy & Security → Certificates → View Certificates → Authorities → Import.

    From then on the browser also trusts the certificates the appliance will reissue (for a new name or a new address), because the same CA signs them.

  2. Optional, to open the console by name: DNS and DHCP → Local DNS, press “Add record” (the + button in the block’s bar), “Address” 192.168.10.1, “Names” argos.johnsmith.test, “Comment” The console, then “Add”. The record takes effect at once, with no firewall apply. Now https://argos.johnsmith.test/ opens the console with no warnings.

Notifications and updates

  1. Go to System → E-mail notifications:

    Field Value
    “Send notifications” on
    “Relay host” smtp.johnsmith.test
    “Port” 587
    “Security” STARTTLS (587)
    “Authenticate with username and password” on
    “Username” argos@johnsmith.test
    “Password” the account’s
    “Sender” argos@johnsmith.test
    “Recipients” it@johnsmith.test (one per line)

    Press “Send test e-mail” and check that it arrives; then press “Save”. The notifications (certificates, failed renewals, update reports) are written in the language of the console you save from.

  2. Go to System → Updates. On a new installation “Install updates automatically” is already on, with “Interval (days)” 1. Set:

    • “Report recipient”: it@johnsmith.test (the field appears only once the relay is configured).
    • “Reboot automatically when required”: on. On a new installation it is off; the reboot happens only when an update needs one (a new kernel, libc), at the maintenance time.
    • “Maintenance time”: 03:30. The package lists are refreshed 40 minutes before and the upgrade starts 20 minutes before; any reboot happens at this time.

    Press “Save”: “Automatic updates saved” appears. The details are in Automatic updates, maintenance window, e-mail notifications.

  3. On the PC, set the network interface back to DHCP.

Verification

On the appliance’s status. Open System status → Status. In the “Attention” strip you should read “Everything looks normal: services running, lists current, no alerts in the last 24 hours.”; right after the first download, the items about the DNS lists may linger for a few minutes. In the “Firewall” card, “Filtering” reads “Active”, “Routing” reads “On” and “Configuration” reads “Active”; in “Gateways and tunnels” the gateway on eth0 (“Fibre (main line)”) has the green dot and the time of its last answer to the probe; in “Services” DHCP and the “DNS resolver” are “Running”.

Status: everything normal after the first configurationStatus: everything normal after the first configuration
Status: everything normal after the first configuration

In Zones and rules → Overview the “Zones” table shows WAN with eth0 and NAT, LAN with eth1.

From a LAN PC (Windows, Command Prompt):

ipconfig /all

You should see an address between 192.168.10.128 and 192.168.10.254, “Default Gateway” 192.168.10.1, “DNS Servers” 192.168.10.1 and the DNS suffix johnsmith.test. Then:

ping 192.168.10.1
nslookup argos.johnsmith.test

The second command answers 192.168.10.1 if you created the record in step 12. Open any website: browsing works.

The DNS filter. In Events and diagnostics → Diagnostics choose “DNS lookup”, type in “Name” a domain you know to be an advertising one and press “Run”: along with the answer, “Blocked by DNS protection for the network’s clients — category: Advertising” appears. The PCs’ blocked requests appear in Events and diagnostics → DNS protection, with the client and the domain.

The NAS. In DNS and DHCP → DHCP, detail of eth1, the “Active leases” table shows the NAS with 192.168.10.20 and the word “Reserved”.

If something goes wrong

After “Confirm”, “The confirmation window had already expired: the previous rules are back” appears. You confirmed after the 60 seconds: the previous rules are back. Apply again and confirm straight away.

The console no longer answers after “Apply”. Touch nothing: when the 60 seconds run out Argos restores the previous rules. Then check that you put eth1 in the LAN zone. If you can no longer get in, see Recovering access.

The PCs cannot browse.

  • System status → Status shows “IPv4 forwarding is off: nothing is routed between the zones — apply the firewall to switch it on”: you have not applied yet, or the apply was rolled back. Apply and confirm.
  • The gateway does not answer: with a single line Argos does not withdraw the default route, but in System status → Status, “Gateways and tunnels” card, the last answer to the probe falls further and further behind. Check the fibre cable and the provider’s values; in Events and diagnostics → Diagnostics, “Ping” to 203.0.113.9 tells you whether the gateway answers.
  • In Network and uplinks → Gateways the gateway of eth1 via 192.168.10.254 is still there, and with priority 0 it comes ahead of the fibre: delete it (step 2). If a row shows “To apply”, apply and confirm (step 6).
  • The WAN zone does not have “Masquerade (SNAT)” on: open it in Zones and rules → Zones and switch it back on, then apply.
  • For a step-by-step diagnosis see A client cannot browse.

Saving DHCP shows a field error.

  • “The pool holds an address of this appliance”: the pool includes 192.168.10.1. Use the values offered.
  • “The interface needs a static address”: eth1 is on DHCP; go back to step 3.
  • “The DHCP service is not installed (package dnsmasq-base)”: the package is missing; install Argos with its recommended packages.
  • “This MAC address already has a reservation” or “This IP address is already reserved”: there is already a row for the NAS; edit it instead of adding another.

Saving DNS protection shows “Forcing DNS needs DNS protection on”. You switched on the LAN zone in “Force the appliance’s DNS” with “Enable DNS protection” off: switch it on.

The categories show “not downloaded yet”. The appliance cannot reach the internet: check the gateway and the DNS, then press “Refresh lists”. The lists are also refreshed by themselves every night.

DHCP warns “The clients are told to ask this appliance for DNS, but zone … does not accept it”. The interface’s zone does not open DNS. On the LAN this does not happen (it accepts everything inbound); on another zone add the udp 53 service (see A separate guest network on a VLAN).

The test e-mail does not go out. The “Operation failed” message carries the relay’s answer: check host, port and security (587 with STARTTLS, 465 with SSL/TLS), username and password. Port 587 must be reachable from the appliance: Events and diagnostics → Diagnostics, “TCP port check”, “Host” smtp.johnsmith.test, “Port” 587.

After the identity save the browser flags the certificate again. That is expected until you have imported the CA (step 11). If instead the warning “the console certificate still carries the previous name: reissue it from HTTPS certificate” appears, press “Regenerate self-signed” in System → HTTPS certificate.

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