Blocking applications in a zone

John Smith Ltd offers Wi-Fi to its guests on the guests zone (for the guests, VLAN 20, 192.168.20.0/24). It wants no social networks, peer-to-peer programs and VPNs or proxies to get around the…

Situation

John Smith Ltd offers Wi-Fi to its guests on the guests zone (for the guests, VLAN 20, 192.168.20.0/24). It wants no social networks, peer-to-peer programs and VPNs or proxies to get around the blocks to be used there, but visiting sales staff must be able to open LinkedIn. The offices (lan zone) stay free.

In the production zone (production, VLAN 30, 10.30.0.0/24) are the PCs that run the machines: they must update only during the scheduled downtime, so Windows Update must not download anything there outside that window.

First you look at what really runs (Applications → Applications), then you decide zone by zone (Applications → Application control). A block applies only in the zone where you set it.

What you need

  • The Inspector on for the zones to observe and control (Protection → Inspector, level “Standard” or “Advanced”): the Applications page names the applications from what the Inspector sees, and the Inspector is what controls the sessions. Requirements and the choice of level are in Intrusion prevention.
  • DNS protection on, and ideally forced DNS on the controlled zones (DNS and DHCP → DNS protection): that way the resolver refuses the blocked names too, and the clients cannot use another one. See Filtering domains.
  • Zones with an IPv4 address configured on their interfaces: that is how the appliance recognises the zone’s clients.

Steps

Seeing what runs in the guest zone

  1. Open Protection → Inspector. If inspection is off, choose “Standard” in “Inspection level”. In “Inspected zones” you need GUESTS and PRODUCTION: in the example company LAN and GUESTS are already on (Intrusion prevention), so switch on PRODUCTION and press “Save”. “DPI configuration applied, with warnings — the inspected zones follow the change once the firewall is applied (header)” appears. What it means to inspect a zone of machines is in Protection.

  2. Open the firewall button in the header (“Unapplied changes”), choose “Apply” and press “Confirm” within 60 seconds in the “Keep the new ruleset?” dialog.

  3. Let some real traffic through (half an hour, an hour), then open Applications → Applications and choose the GUESTS zone at the top. The page shows the last hour (“Last hour, in memory only: nothing is archived”):

    • “What could be named”: how much traffic is “Application” (named by the catalog), “Name not in the catalog”, “Protocol only”, “Unclassified”. That share is the quality of the page: what has no name is shown, not hidden;
    • “By category”: the traffic by category (Social networks, Streaming, Peer-to-peer…);
    • “Applications”: the busiest ones, with category, traffic, flows, clients and the “Signal” column, which says what named each one. The name in the client hello (SNI) is the strongest signal; “Range”, the address in a range the vendor publishes, the weakest;
    • “Names not in the catalog”: destinations that no application of the catalog owns, by domain.
    The Applications page on the guest zoneThe Applications page on the guest zone
    The Applications page on the guest zone

In the “Flows” column, next to an application, “N refused” counts the flows that the zone’s application control (or an intrusion prevention rule) stopped. The zones appear at the top only if they had traffic in the last hour, the busiest first.

Encrypted content stays encrypted: the appliance does not intercept TLS and does not ask you to install certificates on the clients. Applications are recognised from what travels in clear: the name the client asks DNS for, the name of the server it opens the connection to (the SNI in the TLS or QUIC client hello, the Host of a plain HTTP request), EDON signatures for the protocols that always present themselves the same way and, when there is no name at all, the address ranges the vendors publish. The JA4 fingerprint of TLS clients does not name an application (it describes the client that opens the connection, a browser or a library, not the service it talks to): you find it in Events and diagnostics → TLS clients.

Blocking social networks, peer-to-peer and VPNs for the guests

  1. Open Applications → Application control. The list has one row per zone, except the wan, with its state: “Off”, “N applications blocked”, or “No interface”.

  2. Choose GUESTS. “Application control / GUESTS” opens.

  3. In the “Policy” block switch on “Application control on this zone”. While it is off, nothing you set below is enforced.

  4. In the “Categories” block each category has the number of its applications and a choice between “Allow”, “Block” and “Block and report”. Set:

    • “Social networks”: “Block”;
    • “Peer-to-peer”: “Block and report”;
    • “VPNs and proxies”: “Block”;
    • all the others: “Allow”.

    “Block and report” also leaves each attempt, with the client’s address, in Events and diagnostics → Detections (low severity) and, for the address ranges, in Events and diagnostics → Firewall: useful for peer-to-peer, which usually points at a device to check.

  5. In the “Exceptions” block press “Add an exception” (on the right of the block’s header).

  6. In the “New exception” dialog type linkedin in “Search the catalog”, choose “LinkedIn” in “Application” (the names the catalog gives it appear below), choose “Allow” in “Verdict” and press “Done”.

    The exception dialog for LinkedInThe exception dialog for LinkedIn
    The exception dialog for LinkedIn
  7. Read the “Where it is enforced” block. The policy reaches three places, and each one catches what the others miss:

    • “Session”: the Inspector refuses the connection on the name in the TLS or QUIC hello and in the HTTP request, whatever resolver the client used;
    • “DNS”: the appliance’s resolver answers “does not exist” to the zone’s clients for the blocked names;
    • “Address”: the blocked applications that publish their address ranges are refused in the firewall, even when the name is hidden.

    If a row says that place is not acting (for example “The Inspector does not inspect this zone…” or “Clients of this zone may use a resolver of their own: force DNS for the zone…”), fix it before relying on the block.

    The application control of the guest zoneThe application control of the guest zone
    The application control of the guest zone
  8. Press “Save”. “Policy saved and applied” appears: the control is active at once, there is no need to apply the firewall.

No Windows Update in production

  1. Still in Applications → Application control, choose PRODUCTION and switch on “Application control on this zone”.
  2. Leave every category on “Allow”. Press “Add an exception”, search for windows, choose “Windows Update”, “Verdict” “Block”, then “Done”.
  3. In the dialog read the application’s note: most of the download comes from caches written as an address (Delivery Optimization), with no name to read, and an EDON signature recognises it. Only the Inspector enforces a signature: the production zone must stay among the “Inspected zones” (step 1).
  4. Press “Save”.

During the scheduled downtime set the exception to “Allow” and save; at the end set it back to “Block”. Each save takes effect at once.

Tip Application control acts on what goes through the appliance. Two PCs on the same network exchanging updates between themselves (peer-to-peer Delivery Optimization) do not go through the appliance and are not seen. Between two different zones, on the other hand, the zone’s forward rules decide (Zones and rules → Zones, “Forward rules”).

What the user sees

There is no block page. A blocked application is refused at once, never left waiting:

  • a blocked name does not exist: the browser says the site cannot be found;
  • a blocked connection is closed: the browser says the connection was reset or failed, an app says it is not connected;
  • QUIC (over UDP) is refused with an ICMP message, which some clients wait for before falling back to TCP, where the close is immediate.

Explain to the guests, for example on the sheet with the Wi-Fi password, that some services are not available on that network.

Verification

  • Applications → Application control: the GUESTS row says how many applications it blocks (“N applications blocked”), and so does the PRODUCTION row.
  • From a phone on the guest network: a social network does not open, LinkedIn does; from the offices both open.
  • Applications → Applications, GUESTS zone: in the “Flows” column of the blocked applications “N refused” appears.
  • Events and diagnostics → Detections: the peer-to-peer attempts of the guest zone appear with low severity and the client’s address.

Limits to know

  • Never on the wan: the wan zone has no clients to hold to a policy, and it does not appear in the list.
  • The hidden name: Encrypted Client Hello (ECH) hides the name the session block reads. With “Keep the site’s name visible” on (the default, in DNS and DHCP → DNS protection) the resolver removes the key that encrypts it from its answers and browsers send the name in clear; a client with a DNS of its own, or a source exempted from DNS protection, can still hide it, and there the DNS answer and the vendors’ ranges remain (see DNS and DHCP).
  • Only what the catalog knows: an application that is not in the catalog ends up among the “Names not in the catalog” and is not blocked by category. The catalog names applications only by their own domains, never by shared infrastructure (the big clouds, the CDNs): blocking it would stop other things too.
  • Encrypted peer-to-peer: a client that encrypts its handshake is not recognised from the first packet, but to find its peers it uses trackers, DHT and uTP, which the EDON signatures recognise.
  • Without the Inspector on the zone only DNS and addresses act; without DNS protection only sessions and addresses; without forced DNS a client can use a resolver of its own.
  • Without a configured IPv4 network (interfaces on DHCP, tunnels only) the “Session” and “DNS” places cannot tell the zone’s clients apart: only the address ranges act.
  • The catalog refreshes by itself: the vendors’ ranges are downloaded every day (Applications → App-ID options, “Catalog” block, with “Update now”).

For the technician Three outputs, all generated from checked text: the Suricata rules (/etc/suricata/argos-appid.rules, tested with suricata -T before replacing the previous ones, then loaded with SIGUSR2), one view per zone in argos’s Unbound snippet (NXDOMAIN) and the inet argos_appid table (forward, refuses the vendors’ published prefixes from the zone’s interfaces). None of them touches argos_filter: that is why there is no need to apply the firewall. Every verdict is a refusal (TCP reset, NXDOMAIN, ICMP), never a silent drop. The generated rules carry priority:3: behavioural analysis bans the sources of high and medium severity alerts, and here the source is a LAN client.

Privacy

By default the Applications page shows each zone as a whole, without naming the clients, and keeps only the last hour in memory.

Per-client detail is switched on in Applications → App-ID options with “Per-client detail”, and the Applications page then adds the “Per client” block (who used what); the same switch also makes Applications → Network visibility name clients and accounts, which, when off, groups its rows. Before switching it on read the warning that comes with it: in Italy a system from which even the mere possibility of remote monitoring of workers’ activity derives falls under art. 4 of the Workers’ Statute, and requires a union agreement or the Labour Inspectorate’s authorisation, information to the workers and a GDPR legal basis.

The App-ID options with per-client detail offThe App-ID options with per-client detail off
The App-ID options with per-client detail off

Even with the detail off, personal data is not zero: a refused name stays in the resolver’s journal and a refused connection in the engine’s log, each with the client’s address, and “Block and report” raises an alert for every attempt. Use “Block and report” where you really need to know who is trying.

If something goes wrong

What you see What it means What to do
Applications: “The applications are named from what the Inspector sees: switch it on for the zones to look at.” The Inspector is off. Switch it on (step 1) and apply the firewall.
The zone does not appear at the top of the Applications page In the last hour it had no inspected traffic: it is not among the “Inspected zones”, or the firewall has not been applied. Add it and apply, then wait for some traffic.
“This zone holds no interface: a policy would hold nobody.” The zone is empty. Assign the interfaces in Zones and rules → Zones.
A blocked application still works The place that should stop it is not acting (see “Where it is enforced”), the client uses a DNS of its own, or the application comes from a name not in the catalog. Check the three rows of “Where it is enforced”; force DNS; look at “Names not in the catalog”.
An allowed application no longer works It shares a name with a blocked one, or part of it is in another category. Add an “Allow” exception for the application you need.
“This application already has an exception.” There is already an exception for that application. Edit the existing one.
“The policy could not be applied — …” An output refused the rules; the text says which. Correct it and save again.
“Policy saved and applied — N rules left out: past the limit of what one render writes.” The policy generates more rules than the appliance writes in one go. Block fewer whole categories, prefer targeted exceptions.
Windows Update still downloads in production The production zone is not inspected: the signature that recognises the download from the caches is not acting. Add PRODUCTION to the “Inspected zones” and apply.
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