We have spent three lessons postponing the same piece of work. In 03-01 we diagnosed Rutalia's flat 10.10.0.0/16 network as a risk multiplier. In 03-02 we protected what travels, but we did not change where it is allowed to travel. In 03-03 we wrote an excellent firewall policy... for a perimeter that internal traffic never crosses, and lateral movement detection rules that a sensor placed on the internet link cannot see.
Everything points in the same direction. Without internal boundaries there is no internal control, no internal visibility and no containment. This is the lesson that breaks the flat /16.
And it goes further. The mental model that holds up Rutalia's network — and that of most companies of its size — is the castle and the moat: a strong wall facing outwards and total trust inwards. That model died more than a decade ago, for reasons that have nothing to do with information security and everything to do with how people work today: the cloud, remote working, mobiles and suppliers with permanent access. Rutalia is a textbook case: it has data in Microsoft 365 and in S3, sixty drivers with tablets who never set foot in the office, and an ERP supplier with a VPN open twenty-four hours a day since 2019.
By the end of this lesson you will have three concrete things: a complete segmentation design for Rutalia with its flow matrix and a phased implementation plan that does not stop the warehouses; a redesigned VPN, with an annotated WireGuard configuration for a remote worker; and a realistic Zero Trust roadmap for a company of 180 people, honestly separating what is achievable from what is marketing.
- The end of the castle and the moat
The classic network security model can be summed up in one sentence: the bad is outside, the good is inside. A strong perimeter is built — firewall, proxy, antivirus at the door — and whoever is already inside is assumed to be trustworthy.
That model worked reasonably well when four conditions held:
- All the data was on your own servers, inside the building.
- All the users worked from the building, on company machines.
- Suppliers did not have permanent access.
- The devices were managed computers.
Today not one of them holds. Let us check that against Rutalia:
| Condition of the classic model | Rutalia's reality |
|---|---|
| The data is inside | Microsoft 365 (A004), S3 with the nightly export (A009): critical data outside the perimeter |
| The users are inside | 60 drivers with tablets who never enter an office; remote working since 2020 |
| Suppliers do not come in | The ERP supplier has had a permanent VPN since 2019 (hypothesis H5) |
| The devices are managed | Android tablets, personal mobiles on the corporate wifi, IoT probes nobody can update |
But the decisive argument is none of those. It is this: the perimeter did not fail, it simply stopped being relevant. In the 01-04 scenario, the attacker did not get through the firewall: they were invited in, in an email, and the traffic manager opened the door from the inside. From that moment on the perimeter was behind them, and the implicit trust of the internal network — "if you are inside, you are trustworthy" — was precisely what allowed them to go from one machine to one hundred and forty.
The conclusion is not "the perimeter is useless". The perimeter is still useful and it must be maintained: it is what removes the background noise of the internet. The correct conclusion is: the perimeter is one more layer, not the defence. And behind it there have to be boundaries.
- What segmenting is and at which levels it is done
Segmenting is dividing the network into zones with explicit communication policies between them. The goal is not to prevent the initial compromise — other controls do that — but to limit how far it gets when it happens. It is containment, and in the language of 01-01 it is a control that reduces impact.
Segmentation happens at several levels at once, and each one solves a different problem:
| Level | How it is implemented | What it isolates | Cost |
|---|---|---|---|
| Physical | Separate networks, with no connection | Everything | Very high; only for critical environments |
| Layer 2 (VLAN) | 802.1Q tags on the switches | Broadcast domains: ARP, DHCP, discovery | Low if the switch is a managed one |
| Layer 3 (subnets + rules) | Routing with a firewall between segments | Which IP talks to which IP and on which port | Low to medium |
| Micro-segmentation | Rules per workload, not per subnet | Server to server, even within the same segment | Medium to high; it requires a tool |
| Application / identity | Authorisation by user and context | Who can do what, regardless of where they are | It is the road towards Zero Trust |
The first two rows are what Rutalia needs, and sw-core01 already supports them: the cost has been paid for six years and nobody has configured them. This fact matters for the conversation with senior management: no investment is being requested, only working time.
- VLANs, subnets and micro-segmentation
VLANs: separation at layer 2
A VLAN (virtual local area network, the 802.1Q standard) lets a single physical switch behave like several independent switches. Each frame carries a tag with the VLAN identifier (1-4094), and the switch only delivers frames between ports in the same VLAN.
What it solves exactly, with what you learned in 03-01:
- The broadcast domain shrinks to the VLAN. ARP poisoning from a compromised machine only affects its own VLAN, not all 412 hosts.
- A rogue DHCP server — like the home router in Valencia — can only poison its own VLAN.
- The Windows discovery protocols (LLMNR, NBT-NS, mDNS) stop reaching the whole company.
Two kinds of port to distinguish when configuring a switch:
| Type | What it carries | Where it is used |
|---|---|---|
| Access | A single VLAN, untagged | User ports: PCs, printers, an access point for a single network |
| Trunk | Several VLANs, tagged | Between switches, and towards the router/firewall and the wifi access points with several SSIDs |
And the specific attack you need to know about: VLAN hopping. It has two variants: switch spoofing, where a machine pretends to be a switch in order to negotiate a trunk link, and double tagging, which exploits a trunk's native VLAN to inject double-tagged frames. The defences are configuration and they cost nothing:
# Good practice on each access port (conceptual syntax, it varies by vendor) switchport mode access <- never 'dynamic': it disables negotiation switchport access vlan 40 switchport nonegotiate <- no DTP spanning-tree portfast bpduguard <- disables the port if somebody plugs in a switch # On the trunks: switchport trunk native vlan 999 <- a native VLAN DIFFERENT from any in use, and unused switchport trunk allowed vlan 10,20,30,40 <- an explicit list, never 'all'
An honest caveat about VLANs. A VLAN is not a strong security control on its own: it is a logical separation that depends on the switch being well configured and not compromised. For extremely sensitive data, physical separation is still superior. For 99% of cases — Rutalia included — well-configured VLANs plus firewall rules between them is the right cost/benefit trade-off.
Subnets and routing with filtering
VLANs separate at layer 2; for traffic between VLANs to pass through a control point, each VLAN has its own IP subnet and the routing between them is done on a device where rules are applied. Two options:
| Option | How | Advantage | Drawback |
|---|---|---|---|
| Router on a stick | The firewall routes all the VLANs over one trunk | All inter-VLAN traffic passes through the firewall: total control | The trunk can be a bottleneck |
| Layer 3 switch with ACLs | The switch routes and filters | Very fast | Switch ACLs are more limited and stateless |
For Rutalia, with 180 employees and modest traffic, the first option is the right one: all traffic between VLANs passes through fw-zgz01, where you already know how to write nftables rules and where it is logged.
Micro-segmentation
This takes the idea to its extreme: the policy is not defined between subnets but between individual workloads, usually with an agent on each server or with hypervisor rules. Two servers in the same subnet can be forbidden from talking to each other.
| Classic segmentation | Micro-segmentation | |
|---|---|---|
| Unit of policy | Subnet / VLAN | Server, container, application |
| Where it is applied | Firewall between segments | An agent on the host, the hypervisor, a service mesh |
| Traffic it controls | Between segments | Within the segment too |
| Cost and complexity | Low | Medium to high |
| For Rutalia | Now | Later, and partially: the host firewalls of 03-03 and 04-01 are already a poor man's free micro-segmentation |
That last point deserves underlining: if every Rutalia server has an nftables policy that accepts only what it needs, much of the effect of micro-segmentation has already been achieved without buying anything. The difference lies in centralised policy management, not in the concept.
- Rutalia's segmentation design
This is the design Laura and Diego present. It starts from 10.10.0.0/16 and uses the third octet as the VLAN identifier, which means any machine's IP address immediately says which segment it belongs to: 10.10.60.x is a probe, 10.10.10.x is management. That readability is worth a great deal at three in the morning.
| VLAN | Name | Range | What it contains | Talks to | Justification |
|---|---|---|---|---|---|
| 10 | MANAGEMENT | 10.10.10.0/24 |
fw-zgz01, switches, APs, IPMI/iLO, bastion01 (.5), sec-sensor01 (.20) |
Nobody initiates towards it; it initiates towards all | Whoever controls management controls the whole network. It is the most sensitive segment of all |
| 20 | SERVERS | 10.10.20.0/24 |
dc01 (.5), dc02 (.6), srv-db01 (.30), fs01 (.20), srv-erp01 (.40), mail relay (.25) |
Office and warehouse on specific ports; the DMZ on 5432 only | Assets A002, A003, A005, A010 |
| 30 | DMZ | 10.10.30.0/24 |
srv-web01 (.10): MiRutalia (A001) |
The internet comes in; it only goes out to srv-db01:5432, the relay and DNS |
What is published gets compromised first: it must not hand over the internal network |
| 40 | OFFICE-ZGZ | 10.10.40.0/24 |
90 office workstations in Zaragoza | Servers on specific ports, DMZ on 443, the internet via proxy | The human surface: email, macros, browsing |
| 50 | WAREHOUSE-ZGZ | 10.10.50.0/24 |
Radio frequency terminals, tablets on the loading bay, label printers | The ERP and MiRutalia only | Machines that need only two applications |
| 60 | IOT | 10.10.60.0/24 |
14 cold store probes (A006), CCTV cameras | Only towards the temperature collector. No internet | Unpatched firmware, open telnet, nonce reuse: impossible to protect, it has to be isolated |
| 70 | GUESTS | 10.10.70.0/24 |
Visitors, personal mobiles | The internet only, with client isolation | Nothing from the internal network |
| 80 | BACKUPS | 10.10.80.0/24 |
srv-bkp01 (.10), backup storage |
Nobody initiates towards it; it initiates the backups | Day 24 of the 01-04 scenario |
| 90 | VPN | 10.10.90.0/24 |
Remote workers and suppliers | According to the user's profile, not "everything" | Today the VPN gives total access |
| 99 | QUARANTINE | 10.10.99.0/24 |
New or non-compliant machines | Only the remediation portal | The destination for whatever does not comply |
| 140-170 | VALENCIA | 10.10.140-170.0/24 |
A replica of office/warehouse/IoT/guests in Valencia | The same as Zaragoza, over the inter-site link | Its own site |
| 240-270 | SEVILLA | 10.10.240-270.0/24 |
The same for Sevilla | The same | Its own site |
graph TB
I[Internet] --> FW[fw-zgz01<br/>policy: deny<br/>log everything]
FW --- V10[VLAN 10 - MANAGEMENT<br/>10.10.10.0/24]
FW --- V20[VLAN 20 - SERVERS<br/>10.10.20.0/24]
FW --- V30[VLAN 30 - DMZ<br/>10.10.30.0/24]
FW --- V40[VLAN 40 - OFFICE<br/>10.10.40.0/24]
FW --- V50[VLAN 50 - WAREHOUSE<br/>10.10.50.0/24]
FW --- V60[VLAN 60 - IoT<br/>10.10.60.0/24]
FW --- V70[VLAN 70 - GUESTS<br/>10.10.70.0/24]
FW --- V80[VLAN 80 - BACKUPS<br/>10.10.80.0/24]
FW --- V90[VLAN 90 - VPN<br/>10.10.90.0/24]
style V10 fill:#d4edda,stroke:#155724
style V80 fill:#d4edda,stroke:#155724
style V60 fill:#fff3cd,stroke:#856404
style V70 fill:#fff3cd,stroke:#856404
style V30 fill:#fff3cd,stroke:#856404
Three decisions in the design worth understanding, because they are the ones most argued about:
- The management VLAN receives connections from nobody. Not even from the office. Administrators come in over the VPN with MFA to
bastion01and jump from there (03-02). It is inconvenient, and it is what stops a compromised office workstation reaching the switches. - The backup VLAN does not either.
srv-bkp01initiates the backups towards the servers; nobody initiates towards it. Ransomware controlling the file server cannot reach the backups, because there is no rule that permits it in that direction. This single decision is the difference between paying a ransom and not paying one (05-05). - The IoT VLAN does not go out to the internet. The probes talk to an internal collector and nothing else. They cannot be patched, they have telnet open and a known cryptographic flaw: the only realistic defence is isolation. The security of IoT devices themselves is the subject of 07-03; what matters here is where they are placed.
- The matrix of permitted flows
The VLAN design is worthless without the policy. This matrix is the project's central document: each row is a firewall rule and each row has a written reason.
| # | Source | Destination | Port | Reason |
|---|---|---|---|---|
| 1 | MANAGEMENT (10) | All | 22, 443, 3389, 161 | Administration from the bastion |
| 2 | All | MANAGEMENT (10) | — | Denied: nobody initiates towards management |
| 3 | OFFICE (40) | SERVERS (20) | 445, 139 → fs01 |
File server |
| 4 | OFFICE (40) | SERVERS (20) | 88, 389, 636, 53, 123 → dc01/dc02 |
Authentication, directory, DNS, time |
| 5 | OFFICE (40) | SERVERS (20) | 8080 → srv-erp01 |
ERP |
| 6 | OFFICE (40) | DMZ (30) | 443 | The MiRutalia portal |
| 7 | OFFICE (40) | Internet | 80, 443 (via proxy) | Browsing and Microsoft 365 |
| 8 | WAREHOUSE (50) | SERVERS (20) | 8080 → srv-erp01 |
Radio frequency terminals |
| 9 | WAREHOUSE (50) | DMZ (30) | 443 | Delivery notes on tablets |
| 10 | WAREHOUSE (50) | Internet | — | Denied: the terminals do not browse |
| 11 | DMZ (30) | SERVERS (20) | 5432 → srv-db01; 25 → relay; 53 → DNS |
The portal's only three inbound flows |
| 12 | DMZ (30) | Internet | 80, 443 | Updates, OCSP, ACME |
| 13 | DMZ (30) | OFFICE/WAREHOUSE/MANAGEMENT/BACKUPS | — | Denied: the rule that gives the DMZ its purpose |
| 14 | IOT (60) | SERVERS (20) | 1883 → collector | Temperature telemetry |
| 15 | IOT (60) | Anywhere else | — | Denied, the internet included |
| 16 | GUESTS (70) | Internet | 80, 443, 53 | Egress only |
| 17 | GUESTS (70) | Any internal VLAN | — | Denied + client isolation |
| 18 | BACKUPS (80) | SERVERS (20), DMZ (30) | 445, 22, 5432 | The backup server initiates the backup |
| 19 | All | BACKUPS (80) | — | Denied: nobody reaches the backups |
| 20 | VPN (90) | By profile | By profile | See section 13 |
| 21 | All | All | — | Denied and logged (the final rule) |
Three observations on method:
- The denied rows are written just like the permitted ones. Explicitly documenting what is prohibited and why prevents somebody, two years from now, from "just opening row 13 for a moment" to resolve a support call.
- Every row needs an owner and a review date, as we saw in 03-03. An unmaintained matrix degrades just like a rule set.
- Row 21 is the default policy. If you forget it, everything else is decorative.
- Phased implementation without stopping the business
Segmenting a production network is surgery. The way to do it badly is to change everything over one weekend; the way to do it well is in phases, each one reversible, with prior observation. The principle is the same as DMARC's in 03-02 and the firewall's in 03-03: observe, write, simulate, apply.
| Phase | Duration | What is done | Risk of an outage | Rollback |
|---|---|---|---|---|
| 0. Inventory and observation | 4 weeks | A complete nmap -sn sweep (03-01), flow capture with the sensor, interviews with each area: which application do you use, against which server, on which port? |
None | — |
| 1. Preparation | 2 weeks | Configure the VLANs on sw-core01 without assigning ports; install fw-zgz01 in parallel; define subnets and DHCP per VLAN |
None | Switch the new box off |
| 2. Guests | 1 week | Move the guest wifi onto VLAN 70. Start with what affects nobody critical | Very low | Put the SSID back on the old network |
| 3. IoT | 2 weeks | Move the 14 probes and the cameras onto VLAN 60; verify that the telemetry reaches the collector | Low, but coordinated with the warehouse managers: a cold store alarm at 03:00 is a real problem | Put the ports back on the default VLAN |
| 4. DMZ | 2 weeks | Move srv-web01 onto VLAN 30 and separate PostgreSQL onto srv-db01. In a night window, with A001's 4 h RTO as the limit |
Medium | A prior snapshot of the virtual machine and a rollback of the internal DNS |
| 5. Servers and management | 3 weeks | VLAN 20 and VLAN 10; bastion01 operational; management interfaces of switches and APs out of the user network |
Medium to high | Per server, one each night |
| 6. Backups | 1 week | VLAN 80 with the direction reversed: only the backup server initiates | Low | — |
| 7. Office and warehouse | 4 weeks | By floor and by warehouse, 20-30 workstations at a time. DHCP per VLAN | Medium | Put the port's VLAN back |
| 8. Enable blocking | 2 weeks | Move from "log what would be blocked" to really blocking, VLAN by VLAN | This is where the forgotten flows show up | A temporary rule with a 72 h expiry + a ticket |
| 9. Sites | 6 weeks | Valencia and Sevilla, with the same scheme | Medium | — |
| 10. Consolidation | ongoing | Retire temporary rules, move the sensor to a point that sees inter-VLAN traffic, quarterly review of the matrix | — | — |
Four golden rules for making this work:
- Never change VLANs and blocking rules at the same time. First move the machines with everything permitted between segments, check for a week that nothing has broken, and only then apply the blocking. If you do both things together and something fails, you will not know which of the two it was.
- A change window, a written rollback plan and advance communication. The warehouse managers in Valencia and Sevilla have to know which night their network is being touched and who to call.
- A dedicated support channel during the project. When something stops working two weeks after a change, nobody connects the two unless there is somewhere to ask.
- Exceptions, with an expiry date. In phase 8 legitimate flows nobody documented will show up. They are opened with a temporary 72-hour rule and a ticket that forces a decision about whether it becomes permanent. Without an expiry, exceptions accumulate until the matrix means nothing at all.
- How segmentation would have contained the 01-04 scenario
Let us go back to those twenty-five days, now with a segmented network. The comparison is the best argument Laura has for senior management.
| Day | What happened | With segmentation |
|---|---|---|
| 11 | The traffic manager opens the macro; the machine is compromised | The same. Segmentation does not prevent the initial compromise |
| 11-24 | C2 every 60 s towards rutalia-proveedores.example |
VLAN 40 goes out to the internet via proxy only, with logging and reputation filtering: it is detected or cut off |
| 12-13 | It scans 10.10.0.0/16 and maps the whole infrastructure |
It only sees its own /24. Any attempt towards another VLAN generates logged drops on fw-zgz01: an immediate alert |
| 13 | It finds claves.xlsx in \\fs01\comun |
It reaches fs01 (row 3 permits it) but it finds the canary from 03-03 and the alert fires |
| 14-18 | Lateral movement to servers with stolen credentials | Every hop crosses the firewall. SMB from the office is only permitted towards fs01: the rest is blocked and logged |
| 19 | It obtains domain administrator from one of Diego's sessions on a server | Diego no longer logs in interactively to servers from his workstation: he comes in through bastion01, and the management VLAN accepts no inbound connections |
| 20-23 | 380 GB exfiltrated | Egress is limited and logged; the volume script from 03-03 alerts on day 20 |
| 24 | It deletes the backups | Impossible. Nobody initiates connections towards VLAN 80. The backups survive |
| 25 | It encrypts 140 machines and 12 servers by group policy | The scope shrinks drastically: without domain administrator and with SMB filtered between VLANs, the mass deployment runs into the rules |
Translated into hypothesis H1 (ransomware with double extortion), the result changes on both legs of the blackmail:
- Encryption: if the backups survive, you recover and there is no reason to pay. The €180,000 ransom loses its main lever.
- Data publication: the exfiltration is detected earlier and reduced in volume, although it does not disappear entirely. This is the leg that segmentation mitigates but does not eliminate, and it is worth saying so honestly: against double extortion you also need encryption of data at rest, egress control and early detection.
One figure for the financial conversation: of the ten controls that would have broken this chain, eight are configuration. Segmentation is the one with the greatest impact and the one that takes the most time: around three months of work spread out, with the hardware already bought.
- VPNs: what they are really for and what they are not
A VPN (virtual private network) creates an encrypted tunnel over an untrusted network, so that two endpoints behave as if they were on the same private network.
| A VPN does... | A VPN does not... |
|---|---|
| Encrypt traffic over hostile networks (hotel wifi, a motorway services) | ...turn an insecure device into a secure one: if the laptop has malware, it puts it on your network |
| Authenticate the user or the device before granting access | ...decide what they can do once inside: that is authorisation |
| Let internal resources be reached from outside | ...give you anonymity from your employer or from the VPN provider |
| Join sites with a private logical link | ...replace segmentation: a VPN into a flat network gives access to the entire flat network |
| Protect against interception in transit | ...protect against an attacker who already has the credentials, if there is no MFA |
The fourth row is exactly Rutalia's problem. Its VPN works perfectly as an encrypted tunnel and, at the same time, it is its greatest risk: any connected user lands in 10.10.0.0/16 with total access. The VPN is not the failure; the failure is what is on the other side of the tunnel.
- Remote access versus site-to-site
| Remote access (client to site) | Site-to-site | |
|---|---|---|
| Who connects | One person with their device | Two complete networks |
| Software | A client on the machine | Configured on the edge devices |
| Authentication | User + MFA, or a device certificate | Certificates or a pre-shared key between devices |
| Example at Rutalia | Laura from home; the ERP supplier | Zaragoza ↔ Valencia ↔ Sevilla |
| Main risk | An unmanaged device, stolen credentials | It joins failure domains: compromising one site reaches the others |
The risk of site-to-site is always underestimated. If Valencia and Zaragoza are joined with no policy between them, ransomware entering through the Valencia warehouse reaches the Zaragoza servers in seconds. An inter-site tunnel also needs its own flow matrix: at Rutalia, Valencia and Sevilla access the ERP and the portal, and nothing else.
- IPsec, OpenVPN and WireGuard compared
| IPsec/IKEv2 | OpenVPN | WireGuard | |
|---|---|---|---|
| Layer | 3 (network) | 4 (over TLS) | 3 |
| Port | UDP 500/4500 | Any, typically UDP 1194 or TCP 443 | Configurable UDP (51820) |
| Lines of code | ~400,000 (full implementations) | ~70,000 | ~4,000 |
| Cryptography | Negotiable (and therefore configurable badly) | Negotiable | Fixed and modern: ChaCha20, Poly1305, Curve25519, BLAKE2s |
| Performance | High (often hardware-accelerated) | Medium | Very high (in the Linux kernel) |
| Gets through restrictive firewalls | Patchy (UDP 500 is often blocked) | Excellent (it can run over TCP 443) | Patchy (UDP) |
| Reconnection / roaming | Good with MOBIKE | Patchy | Excellent: no session state |
| Native MFA | With EAP/RADIUS | With plugins | No: it requires a layer in front |
| Interoperability between vendors | The best | Good | Growing |
| Ease of configuration | Low | Medium | High |
A reasoned choice for Rutalia:
- WireGuard for employees' remote access and for the inter-site links: it is simple, extremely fast, its cryptography cannot be misconfigured, and the configuration fits on one screen, which reduces mistakes.
- OpenVPN over TCP 443 as an alternative for anybody working from networks that block UDP (some hotels and airports).
- IPsec if there were a need to interoperate with the equipment of a large customer or a supplier: it is the only one with universal interoperability between vendors.
The important warning about WireGuard: it has no user authentication and no MFA. It identifies devices by their public key. To require MFA you have to add a layer in front (a portal that enables the peer once it has validated the identity, or a ZTNA solution). It is not a defect: it is a design decision that keeps the protocol tiny and auditable, but it has to be addressed consciously.
- Full tunnel versus split tunnel
| Full tunnel | Split tunnel | |
|---|---|---|
| What is routed over the VPN | All the device's traffic | Only what is addressed to the corporate network |
| Visibility and control | Total: browsing filtered and logged | Corporate traffic only |
| Performance | Worse: Microsoft 365 and video calls detour via the office | Better |
| Bandwidth on the corporate link | High consumption | Low |
| Risk | Greater cost and latency | The device is on the internet and on your network at the same time: it can act as a bridge |
| Employee privacy | The company sees all their browsing; it requires prior notice and proportionality | More respectful |
There is no universal answer. Rutalia's decision, with its reasoning:
- Full tunnel for the administrators (Laura and Diego) and for the ERP supplier: few users, maximum control, and their traffic is the most sensitive.
- Split tunnel for general remote working: with 25 office people using Microsoft 365 and video calls, a full tunnel would saturate the Zaragoza link and generate complaints that would end with the VPN being disabled "because it is slow". A security measure that people avoid is not a security measure.
- In both cases, DNS always goes over the tunnel. That is the condition that preserves the filtering and logging of 03-02 even when the rest of the traffic goes out directly. It is the best visibility-to-performance trade-off available in this decision.
- WireGuard for a Rutalia remote worker, configured and annotated
VPN server: vpn.rutalia.example → 203.0.113.30, UDP 51820. VPN network: 10.10.90.0/24 (VLAN 90).
Generating the keys
# On the server
wg genkey | sudo tee /etc/wireguard/private.key | wg pubkey | sudo tee /etc/wireguard/public.key
sudo chmod 600 /etc/wireguard/private.key
# The private key NEVER leaves the machine. Permissions 600, always.
# For each client, with its additional pre-shared key
wg genkey | tee laura_private.key | wg pubkey > laura_public.key
wg genpsk > laura_psk.keywg genpsk generates an additional symmetric pre-shared key. It is not mandatory and it is worth using: it adds a layer of protection against a future attacker with a quantum computer who could break Curve25519, because the shared key is not derived from the public key exchange (07-04).
Server: /etc/wireguard/wg0.conf
[Interface]
Address = 10.10.90.1/24 # the server is the gateway for VLAN 90
ListenPort = 51820
PrivateKey = <server private key>
SaveConfig = false # do not overwrite the file on shutdown: the
# comments and the ordering would be lost
# Forwarding between the VPN and the internal network is done by the firewall, not by
# improvised rules here. That way the policy lives in one place (fw-zgz01) and it is
# logged like any other flow.
PostUp = /usr/local/sbin/vpn-up.sh
PostDown = /usr/local/sbin/vpn-down.sh
# ---------- Laura Mendez - IT lead - full tunnel ----------
[Peer]
PublicKey = <Laura's public key>
PresharedKey = <Laura's psk>
AllowedIPs = 10.10.90.11/32
# ON THE SERVER, 'AllowedIPs' is ACCESS CONTROL: it defines which source
# addresses are accepted from this peer. With /32 it is prevented from
# impersonating another VPN client. It is the most important field in the file.
PersistentKeepalive = 0
# ---------- ERP supplier - extremely restricted access ----------
[Peer]
PublicKey = <supplier's public key>
PresharedKey = <supplier's psk>
AllowedIPs = 10.10.90.50/32
# The rest of the restriction (srv-erp01:8080 only, only within the authorised
# window) is applied by fw-zgz01. See section 13.Client: Laura's profile
[Interface]
PrivateKey = <Laura's private key>
Address = 10.10.90.11/32
DNS = 10.10.20.5, 10.10.20.6
# DNS ALWAYS over the tunnel: it preserves the filtering, the internal
# resolution and the query logging (03-02). Without this, the machine would
# resolve through the hotel's or the home router's DNS.
[Peer]
PublicKey = <server public key>
PresharedKey = <Laura's psk>
Endpoint = vpn.rutalia.example:51820
AllowedIPs = 0.0.0.0/0, ::/0
# ON THE CLIENT, 'AllowedIPs' means ROUTING: what is sent over the
# tunnel. '0.0.0.0/0' = FULL TUNNEL. For a split tunnel, this would list only
# the internal networks: 10.10.20.0/24, 10.10.30.0/24, 10.10.40.0/24
PersistentKeepalive = 25
# Sends a packet every 25 s to keep the home router's NAT translation alive.
# Without this, the connection "drops" after a few minutes of inactivity.The most confusing detail in WireGuard:
AllowedIPsmeans different things at each end. On the server it is an access control list (which source IPs I accept from this peer). On the client it is a routing table (what I send over the tunnel). Confusing the two produces, at best, a VPN that does not work; at worst, a peer that can impersonate any other.
Bringing it up and checking it
sudo systemctl enable --now wg-quick@wg0 # starts it and makes it persist
sudo wg show # peer statusinterface: wg0 public key: 7Hk2... listening port: 51820 peer: mNq8... # Laura preshared key: (hidden) endpoint: 198.51.100.88:52341 allowed ips: 10.10.90.11/32 latest handshake: 47 seconds ago transfer: 12.84 MiB received, 84.21 MiB sent
What to look at in this output:
latest handshake: if there is no recent handshake, the peer is not connected. It is the first thing to check for any problem.endpoint: the public IP it is connecting from. An endpoint in a country where nobody from Rutalia is located is an immediate alert.transfer: anomalous volumes deserve a review, just as in 03-03.
A three-line monitoring script already adds value:
# Alert if a peer has gone more than 10 minutes without a handshake but is transferring data,
# or if an endpoint outside Spain appears (run hourly from cron)
sudo wg show all dump | awk -F'\t' 'NR>1 {print $1, $4, $6}'
- The real risks of Rutalia's VPN and how to fix them
The current VPN was thrown together in March 2020, in four days, with everybody at home. It did its job and nobody has looked at it since. This is the honest diagnosis:
| # | Current risk | Impact | Fix |
|---|---|---|---|
| 1 | No MFA: an AD username and password | One credential stolen by phishing gives access to the whole network from anywhere in the world | Mandatory MFA on the VPN — it is phase 2 of the 02-03 plan, and the highest priority |
| 2 | Total access to 10.10.0.0/16 |
Landing on the VPN is equivalent to being in the office, with everything reachable | VLAN 90 + access profiles by role on fw-zgz01 |
| 3 | The ERP supplier connected 24×7 since 2019 | Hypothesis H5: compromising the supplier is compromising Rutalia | Access to srv-erp01:8080 only, enabled on request and within a window, with an expiry and session logging |
| 4 | The supplier's credentials shared between 2-3 technicians, with no expiry | You cannot tell who connected | One identity per person, MFA, quarterly review, revocation when the contract ends |
| 5 | No device health checking | A personal laptop with malware gets onto the network | A device certificate (the PKI of 02-05) and minimum health checks |
| 6 | No session logging and no review | Nobody knows who connects or from where | Central logging + an alert on an anomalous endpoint |
| 7 | Former employees' accounts still active (a canonical shortcoming) | Access for somebody who no longer works here | The identity life cycle of 02-02: leaving revokes the VPN the same day |
| 8 | A full tunnel for everybody on a limited link | The VPN "is slow" and people look for ways around it | A split tunnel with DNS over the tunnel for general use |
The resulting access profiles, which are the translation of the RBAC of 02-02 into network rules:
| Profile | IP in VLAN 90 | Permitted access | MFA |
|---|---|---|---|
| IT administration (Laura, Diego) | .10-.19 |
All VLANs, via bastion01 |
Mandatory, with a FIDO2 key |
| Office (remote working) | .20-.49 |
fs01:445, srv-erp01:8080, DMZ:443, DNS |
Mandatory |
| ERP supplier | .50-.59 |
srv-erp01:8080 only, within the authorised window |
Mandatory + enabled on request |
| Senior management | .60-.69 |
As for the office | Mandatory |
| External audit | .70-.79 |
Only what is needed, with the account set to expire | Mandatory |
Note the conceptual change: the VPN stops being "a door into the network" and becomes "a door to specific resources, depending on who you are". That is already, in practice, the first step of Zero Trust.
- Zero Trust: what it really is
Zero Trust is not a product, nor a vendor, nor a box to be ticked. It is an architectural model whose central principle is:
Location on the network confers no trust. Being inside the building, or inside the VPN, grants no privilege by itself. Every access is verified, every time, with the information available at that moment.
The term was coined by John Kindervag in 2010, and its reference formulation is the publication NIST SP 800-207 (2020), which is worth quoting whenever a salesperson turns up with "the Zero Trust solution": the standard describes an architecture, not a product.
The three principles
| Principle | What it means | Example at Rutalia |
|---|---|---|
| Verify explicitly | Authenticate and authorise with all the available information: identity, device, location, behaviour, sensitivity of the resource | Accessing the customer database requires MFA even if you are in the office |
| Least privilege | Access that is just enough, sufficient and temporary | The ERP supplier accesses only the ERP, only when they ask, and the access expires |
| Assume breach | Design as if the attacker were already inside: segment, encrypt, log, verify end to end | The backup VLAN accepts connections from nobody, administrators included |
The third is the hardest to internalise and the one that changes decisions most. "Assume breach" means stopping asking "how do I stop them getting in?" and starting to ask "when they get in, how far do they get, how quickly do I find out and how long do I take to recover?". It is, fundamentally, the same question we have used throughout the module.
- The components of a Zero Trust architecture
graph TB
U[User + device] --> PEP[Enforcement point<br/>PEP - lets through or not]
PEP --> PDP[Policy engine<br/>PDP - decides]
PDP --> ID[Identity<br/>AD + MFA]
PDP --> DEV[Device health<br/>encryption, patches, EDR]
PDP --> CTX[Context<br/>time, place, risk]
PDP --> POL[Policies<br/>RBAC, sensitivity]
PEP --> REC[Resource<br/>one specific application]
PEP --> LOG[Telemetry<br/>everything is logged]
LOG --> PDP
style PDP fill:#fff3cd,stroke:#856404
style PEP fill:#d4edda,stroke:#155724
| Component | What it contributes | Status at Rutalia |
|---|---|---|
| Strong identity | Knowing who they are, with phishing-resistant MFA | A 6-phase plan under way (02-03) |
| Device health | Disk encryption, patches up to date, EDR running, a known device | Non-existent. It requires MDM/Intune (04-01, 04-02) |
| Per-session policy | The decision is taken on each access, not once a day | Partial: Microsoft 365 allows conditional access |
| Micro-segmentation | The resource is only reachable through the enforcement point | In progress: it is this project |
| End-to-end encryption | Inside the internal network too | TLS already solved (03-02) |
| Telemetry and analysis | Everything is logged and reviewed; the decision is re-evaluated with the risk | Emerging: Suricata and the logs of 03-03 |
The piece Rutalia is weakest on is device health, and it is expensive: it requires managing the 140 machines with verifiable policies. It is also the one that separates an "SME Zero Trust" — strong identity plus micro-segmentation — from the complete model.
- ZTNA versus a classic VPN
ZTNA (Zero Trust Network Access) is the evolution of remote access under these principles.
| Classic VPN | ZTNA | |
|---|---|---|
| What it grants | Access to the network | Access to a specific application |
| Model | You connect and then it is filtered | You are authorised and then you connect |
| Visibility for the attacker | They see the network: they can scan and move | They see nothing: unauthorised resources do not exist for them |
| Evaluation | Once, on connection | Continuous, per session |
| Device context | Usually not evaluated | A central part of the decision |
| User experience | Connect/disconnect manually | Transparent |
| Cost | Low (WireGuard: zero) | A subscription per user |
The practical difference is clear from an example. With the current VPN, if jlopez's credentials are stolen, the attacker gets in and sees the whole network: they can scan, look for shares, try credentials. With ZTNA, the same attacker authenticated as jlopez can only reach the two applications jlopez is authorised for; the rest of the infrastructure is simply neither reachable nor visible.
For Rutalia, full ZTNA is a cost decision (it is usually billed per user per month, with 180 employees). The realistic strategy is to get 70% of the effect with what is already there: a VPN with MFA + VLAN 90 + access profiles by role + a bastion + logging. That is what we designed in section 13, and it is exactly the spirit of the model even though it does not carry the commercial label.
- What is realistic for an SME and what is not
It is important to be honest about this, because Zero Trust marketing is designed for companies with twenty-person security departments.
| Element | Realistic for Rutalia? | Why |
|---|---|---|
| VLAN segmentation with a flow matrix | Yes | The hardware is already bought; it is working time |
| MFA on everything that is exposed | Yes | It is already planned; TOTP is free, FIDO2 keys are €30 each for the administrators |
| Least privilege and access reviews | Yes | Already done in 02-02; it has to be maintained |
| A bastion for administration | Yes | A small virtual machine |
| Central logging and a daily review | Yes | 20 minutes a day of one person's time |
| Conditional access in Microsoft 365 | Yes | Included in the licences Rutalia already pays for (depending on plan) |
| Device certificates | Yes, gradually | The internal CA has existed since 02-05; start with administrators and tablets |
| MDM/device management | Partially | Moderate cost; start with the 25 office laptops |
| EDR on every endpoint | Yes, prioritised | There are affordable options; it is 04-02 |
| Full commercial ZTNA | Not for now | The per-user cost is high for 180 people; review in 2028 |
| Micro-segmentation with agents | No | Disproportionate complexity and cost; host firewalls cover 60% |
| A 24×7 SOC | No | An external managed SOC would be the option; there is no budget today (08-04) |
| Behavioural analysis with AI | No | It requires a volume of data and staff Rutalia does not have (07-01) |
The operational conclusion, worth repeating to anybody selling a solution: 80% of the benefit of Zero Trust in an SME comes from three things: strong identity, segmentation and logging what happens. All three are configuration and discipline, not product.
- Rutalia's roadmap, in phases
| Phase | Timescale | Action | Cost | Risk it reduces |
|---|---|---|---|---|
| 1 | Month 1 | MFA on the VPN and on the administrative accounts | ~€200 (FIDO2 keys) | Stolen credentials: the most frequent vector |
| 2 | Month 1 | Restrict the ERP supplier: srv-erp01:8080 only, on request, with an expiry |
€0 | Hypothesis H5 (supply chain) |
| 3 | Months 1-2 | Remove former employees' access and review every VPN account | €0 | Persistent unauthorised access |
| 4 | Months 2-4 | Segmentation, phases 0-6: guests, IoT, DMZ, servers, management, backups | €0-800 | Lateral movement, backup deletion, H1 and H4 |
| 5 | Months 4-6 | Segmentation, phases 7-8: office, warehouse and enabling the blocking | €0 | Completes the containment |
| 6 | Month 5 | The bastion operational; management unreachable from users | €0 | Escalation to domain administrator |
| 7 | Month 6 | WireGuard with profiles by role replaces the current VPN; split tunnel with DNS over the tunnel | €0 | Total access from the VPN |
| 8 | Months 6-9 | Device certificates for administrators, laptops and tablets | ~€0 (internal CA) | Access from unknown devices |
| 9 | Months 6-12 | MDM and EDR on the office laptops | €3,000-6,000/year | Device health; detection at the endpoint |
| 10 | Months 9-12 | The Valencia and Sevilla sites on the same scheme; segment the inter-site link | ~€1,500 | Propagation between sites |
| 11 | Month 12 | Review: the flow matrix, expired temporary rules, access, canaries | €0 | Degradation over time |
| 12 | 2028 | Evaluate ZTNA and micro-segmentation | To be assessed | The next rung of maturity |
The total cost of the first year: between €4,700 and €8,500, almost all of it on MDM/EDR and minor network hardware. The comparison Laura puts on the last slide: the ransom in the 01-04 scenario was €180,000, without counting the operational shutdown, the notification to the AEPD, the Spanish Data Protection Agency (06-03), or the damage with the 400 business customers.
The current architecture and the target architecture
graph TB
subgraph CURRENT["TODAY - flat network 10.10.0.0/16"]
I1[Internet] --> R1[ISP router<br/>NAT + 3 port forwards]
R1 --> S1[sw-core01 - no VLANs]
S1 --> A1[Servers + AD + backups]
S1 --> A2[140 workstations]
S1 --> A3[IoT probes - tablets - forgotten NAS]
S1 --> A4[One single wifi - PSK on a whiteboard]
VPN1[2020 VPN<br/>no MFA] --> S1
PROV[ERP supplier<br/>24x7] --> VPN1
end
style CURRENT fill:#ffeeee
graph TB
subgraph TARGET["TARGET - segmented and verified"]
I2[Internet] --> FW2[fw-zgz01<br/>default deny<br/>full logging]
FW2 --> D2[VLAN 30 - DMZ<br/>MiRutalia]
FW2 --> SR[VLAN 20 - Servers]
FW2 --> OF[VLAN 40 - Office]
FW2 --> AL[VLAN 50 - Warehouse]
FW2 --> IO[VLAN 60 - IoT<br/>no internet]
FW2 --> IN[VLAN 70 - Guests<br/>internet only]
FW2 --> CO[VLAN 80 - Backups<br/>outbound only]
FW2 --> GE[VLAN 10 - Management<br/>bastion01 + sensor]
VPN2[WireGuard + MFA<br/>VLAN 90 - profiles by role] --> FW2
PRO2[ERP supplier<br/>srv-erp01:8080 only<br/>on request] --> VPN2
D2 -.->|"5432 only"| SR
CO -.->|"initiates the backups"| SR
end
style TARGET fill:#eeffee
Common Mistakes and Tips
Mistake 1: buying "a Zero Trust solution". Zero Trust is an architecture, not a product. No vendor sells you the whole thing, and anybody who says they do is selling one component. Tip: always ask exactly which of the NIST SP 800-207 principles the product covers, and what you still have to do yourself.
Mistake 2: segmenting without an inventory. If you do not know what is connected — remember: 412 hosts against 261 on the books — the flow matrix will be incomplete and the blocking phase will break things nobody knew existed. Tip: phase 0 is never skipped.
Mistake 3: leaving the management network reachable. It is the most expensive mistake. If the switches, the hypervisor, the IPMI interfaces and the backup consoles are reachable from the user network, segmentation is a drawing: whoever compromises a workstation reconfigures the whole network. Tip: VLAN 10 with no inbound connections, access only via the bastion with MFA.
Mistake 4: segmenting and not filtering between segments. Creating VLANs and routing them all against each other gives the feeling of having segmented with no security benefit whatsoever. Tip: the flow matrix is the deliverable, not the VLAN diagram.
Mistake 5: changing VLANs and applying blocking at the same time. If something fails, you do not know what caused it. Tip: move first, observe for a week, block afterwards.
Mistake 6: exceptions with no expiry. In the blocking phase, forgotten legitimate flows will show up. Every permanent unreviewed exception is a future hole. Tip: 72 hours and a ticket that forces a decision.
Mistake 7: forgetting management and infrastructure traffic. Backups, monitoring, updates, NTP, antivirus, printing. They are the flows nobody mentions in the interviews and the ones that break phase 8. Tip: draw up a specific list of infrastructure flows before blocking.
Mistake 8: a VPN with total access "because it is easier". It is exactly the mistake that turns one stolen credential into a complete breach. Tip: profiles by role from day one; the extra work is hours, not weeks.
Mistake 9: a full tunnel for everybody without measuring the link. The VPN is slow, people complain, management asks for "that thing to be taken off" and the whole control is lost. Tip: measure the real bandwidth, decide by profile and always keep DNS inside the tunnel.
Mistake 10: believing that segmentation replaces the other controls. It does not prevent phishing, or macros, or an SQL injection. It limits the consequences. Tip: defence in depth (01-01): segmentation is one layer among several.
Exercises
Exercise 1: assigning segments and spotting design errors
Rutalia is going to add four new items:
- A CCTV server that receives the feeds from the 12 cameras and keeps them for 30 days.
- A new supplier portal, reachable from the internet, that queries the ERP database.
- Three tablets for the warehouse managers, who use the ERP and email, and take them home.
- A machine belonging to an external auditor who will be in the offices for two weeks and needs access to the MiRutalia logs and to the firewall logs.
a) Assign each item to a VLAN in the design and justify it. b) Write the flows needed for each one (source → destination → port → reason). c) One of the four introduces a structural risk if it is designed badly. Which one, and why?
Exercise 2: diagnosing a WireGuard configuration
An intern configures a new peer like this:
# Server, /etc/wireguard/wg0.conf
[Peer]
PublicKey = <ERP supplier's public key>
AllowedIPs = 10.10.0.0/16# The supplier's client
[Interface]
PrivateKey = <private key>
Address = 10.10.90.50/24
[Peer]
PublicKey = <server public key>
Endpoint = vpn.rutalia.example:51820
AllowedIPs = 10.10.0.0/16a) Identify the serious error in the server configuration and explain exactly what it permits.
b) What two other security problems does this peer have, in the light of section 13?
c) Rewrite both configurations correctly and say what additional rules would be needed on fw-zgz01.
Exercise 3: defending the project to senior management
Andrés Vidal raises three objections at the committee meeting:
- "We have gone twenty years without segmenting and nothing has happened. Why now?"
- "This is going to cause problems: every time something does not work, it will be the firewall's fault."
- "A salesperson has offered me a Zero Trust solution for €22,000 a year that he says solves all this without touching the network."
Write a short, honest and jargon-free answer to each.
Solutions
Solution 1
a) and b)
| Item | VLAN | Justification | Flows |
|---|---|---|---|
| 1. CCTV server | 20 (SERVERS), with the cameras on 60 (IOT) | The server is a managed asset holding personal data (images of workers); the cameras are unpatched devices | Cameras (60) → server (20) on the RTSP/proprietary port; Management (10) → server on 443 for viewing. No access from the office except for authorised people, through the application |
| 2. Supplier portal | 30 (DMZ) | Reachable from the internet: by definition it goes in the DMZ | Internet → portal on 443; portal (30) → srv-erp01 (20) only on its API port, never direct access to the database |
| 3. Warehouse managers' tablets | 50 (WAREHOUSE) in the warehouse; 90 (VPN) outside | They are taken home: outside the building they come in over the VPN with the office profile | Warehouse (50) → srv-erp01:8080; from home: VPN with MFA → the same destinations. They require a device certificate and encryption |
| 4. The auditor's machine | 99 (QUARANTINE) or a specific temporary segment | A device not managed by Rutalia. It must not enter any working VLAN | Access only to what is needed, with an account that has an automatic expiry date and complete logging of its activity |
c) The structural risk lies with the supplier portal (2), if it is designed badly. The temptation is to give it direct access to the ERP database, because that is the quickest thing to program. That creates exactly the situation the DMZ is meant to avoid: a system published on the internet with a direct connection to a critical internal asset. If the portal has an SQL injection (hypothesis H4 applied to a new system), the attacker reaches the ERP database from the internet.
The correct design: the portal talks to an intermediate API that exposes only the necessary operations, with its own authentication and validation, over a database user with minimum permissions — no superuser, which is one of Rutalia's canonical shortcomings with MiRutalia's PostgreSQL user. In addition, the ERP is an unsupported legacy system: exposing it, even indirectly, to traffic originating on the internet requires an explicit risk review (08-02).
Solution 2
a) The serious error is AllowedIPs = 10.10.0.0/16 on the server. On the server side, AllowedIPs is access control: it defines which source addresses are accepted as legitimate from that peer. With a /16, the ERP supplier can send packets with any source IP from Rutalia's entire network, impersonating any internal machine — bastion01, a domain controller or the backup server included — and also receive the traffic addressed to those addresses over the tunnel. It is a complete network identity spoof. It must be AllowedIPs = 10.10.90.50/32.
b) The other two problems:
- There is no
PresharedKey: the additional layer of protection against future cryptanalysis is lost, along with the free hardening it provides. - Permanent access with no destination restriction: the configuration does not limit what the supplier can connect to once inside. It is exactly hypothesis H5. It also lacks MFA — which WireGuard does not provide and which has to be added with a layer in front or with enablement on request — and an individual identity per technician, instead of one peer shared between 2-3 people.
c)
# Server
[Peer]
# ERP supplier - technician: J. Serrano - ticket 2026-0188
# Added: 2026-11-03 | Review: 2027-02-03 | Approved by: Laura Mendez
PublicKey = <technician's public key>
PresharedKey = <psk specific to this peer>
AllowedIPs = 10.10.90.51/32# The supplier's client
[Interface]
PrivateKey = <private key>
Address = 10.10.90.51/32
DNS = 10.10.20.5
[Peer]
PublicKey = <server public key>
PresharedKey = <psk specific to this peer>
Endpoint = vpn.rutalia.example:51820
AllowedIPs = 10.10.20.40/32
# A strict split tunnel: ONLY the traffic towards the ERP goes over the tunnel.
PersistentKeepalive = 25Additional rules on fw-zgz01:
# The supplier only reaches the ERP, only on its port, and it is logged
iif "wg0" ip saddr 10.10.90.51 ip daddr 10.10.20.40 tcp dport 8080 \
ct state new log prefix "VPN-SUPPLIER-ERP: " accept
# Everything else from that source: dropped and logged
iif "wg0" ip saddr 10.10.90.51 \
log prefix "VPN-SUPPLIER-DENIED: " level warn dropAnd three organisational measures that complete the fix: one peer per person (not shared), enablement on request with a time window instead of 24×7 access, and automatic expiry tied to the term of the contract, with a quarterly review (06-04).
Solution 3
Objection 1 — "nothing has happened in twenty years".
"That is true, and I am glad. But what has changed is not us: it is the attacker's business. Twenty years ago an attack required a target picked by hand; today job lots of access to Spanish companies of our size are bought and the rest is automated. We have gone from 40 to 180 people, from one site to three, and now there are tablets in 60 lorries and data in the cloud. The question I am asking is not whether it will happen, but what happens the day it does: today, any compromised computer reaches everything, the backups included. That is what I want to change, and with the equipment we have already bought."
Objection 2 — "everything will be the firewall's fault".
"You are right that it is a real risk, and that is why the plan has ten phases and not one weekend. We start with the guest wifi, where there is nothing critical. We move the machines first and only block weeks later, once we know everything works. Each phase can be reversed in minutes. And throughout the project there will be a dedicated channel for problems, with a same-day response. If something does not work, we will open it temporarily and then decide. I prefer that controlled inconvenience to the alternative, which is a whole week with all three warehouses at a standstill."
Objection 3 — "a Zero Trust solution for €22,000".
"It is worth listening to, but with two specific questions: exactly which part of the model does it cover, and what do we have to do ourselves anyway? Because Zero Trust is not a product you install: it is a way of designing. The three things that would protect us most are two-step authentication, dividing up the network and logging what happens. None of the three is bought: they are configured, with the equipment we already have, and together they come to less than €9,000 in the first year, counting the advanced antivirus and laptop management. If in a year's time, with that done, we still see a gap that this tool covers, we will buy it knowing exactly what for. Buying it now, on a flat network and with no second factor, would be paying €22,000 a year for a layer that rests on foundations that do not yet exist."
Conclusion
You have buried the castle and moat model with an argument that is not theoretical: in the 01-04 scenario the perimeter did not fail, it stopped being relevant, because the attacker came in invited in an email and from then on what served them was the implicit trust of the internal network. You know why that model stopped working — cloud, remote working, mobiles, suppliers — and you have verified that Rutalia fails all four of the conditions that held it up.
You know how to segment: you can tell the physical, layer 2, layer 3 and micro-segmentation levels apart, you know VLANs with their access and trunk ports and their hopping attacks along with the configuration defences that cost nothing, and you understand why a VLAN with no firewall rules between segments is not segmentation but a pretty diagram. You have Rutalia's complete design: eleven segments with a name, a range and a justification, with three decisions that change the outcome of an incident — the management VLAN that accepts no inbound connections, the backup one that only initiates and never receives, and the IoT one that does not go out to the internet — and its twenty-one-row flow matrix, where what is denied is documented just as explicitly as what is permitted. And you have the ten-phase implementation plan that starts with the guest wifi and finishes with the sites, with the golden rule that avoids most disasters: move first, observe for a week, block afterwards, and exceptions with a seventy-two-hour expiry.
You have measured the effect: day by day, segmentation turns the twenty-five days of the 01-04 scenario into a contained incident and — most importantly — makes the deletion of the backups on day 24 impossible, which is what takes away the main lever of the blackmail in hypothesis H1.
On VPNs, you have separated what they do from what they do not: they encrypt the transport and authenticate the access, but they do not clean up an infected device and they do not replace segmentation, because a VPN into a flat network hands over the entire flat network. You can tell remote access from site-to-site — and you know the latter joins failure domains — you have compared IPsec, OpenVPN and WireGuard and chosen with judgement, and you have configured WireGuard line by line, understanding the detail that is most often confused: AllowedIPs is access control on the server and routing on the client. You have decided full or split tunnel by profile, with DNS always inside the tunnel to preserve visibility. And you have diagnosed the eight real risks of the VPN Rutalia threw together in four days in March 2020, along with the fix: MFA, VLAN 90 with profiles by role, and the ERP supplier reduced from "the whole network, 24×7, since 2019" to "one port on one server, on request and with an expiry".
Finally, you know what Zero Trust really is: an architecture with three principles — verify explicitly, least privilege, assume breach — described in NIST SP 800-207, not a product. You know its components and which one is the most expensive and the weakest at Rutalia (device health), the real difference between ZTNA and a classic VPN — authorise and then connect, instead of connect and then filter — and you have an honest list of what is realistic for 180 people and what is not, with a twelve-phase roadmap costing between €4,700 and €8,500 in the first year against the €180,000 ransom. And you have your answers ready for the three objections that always come up at a management committee.
One last territory of this module remains, and it is the only one where the boundary cannot be drawn with a cable. The whole architecture you have just designed — VLANs, firewall, flow matrix — rests on an implicit idea: that to connect to the network you have to plug something in somewhere. In Wireless Network Security you will see what happens when that assumption disappears: the radio medium goes through walls and reaches the car park, there is no door to close, and access control becomes exclusively cryptographic. You will study WEP, WPA2 and WPA3 with their attacks, 802.1X with certificates resting on the PKI of 02-05, and the map of Rutalia's SSIDs spread across the VLANs you have just designed. And you will run into an uncomfortable detail that sums up the problem: the password for Rutalia's wifi is written on a whiteboard in the Zaragoza warehouse, it has not been changed since 2019, and several former employees know it.
