Situation
In John Smith Ltd’s factory there is a PLC that runs the line, an operator panel (HMI) and a few other automation devices. Today they sit on the same network as the offices: an infected PC in accounts could reach them, and the PLC speaks Modbus/TCP, a protocol without authentication. Production has to move to a network of its own, where:
- no device goes out to the internet;
- from the offices a single machine gets in, the supervision PC, and only for what it needs: Modbus to the PLC and the HMI’s web page;
- everything else is refused and logged, so you see at once if someone tries.
| What | Value |
|---|---|
| VLAN | 30, on eth1 (sub-interface eth1.30) |
| Production network | 10.30.0.0/24, appliance 10.30.0.1 |
| Zone | production (production) |
| PLC | 10.30.0.10, Modbus/TCP on port 502 |
| HMI | 10.30.0.20, web interface over HTTPS (443) |
| Supervision PC | 192.168.10.50, in the office LAN |
What you need
- The First office scenario completed.
- A managed switch: the port towards
eth1carries VLAN 30 tagged (besides the untagged LAN), the production devices’ ports are “access” on VLAN 30. It is the same layout as A separate guest network on a VLAN. - The production devices reconfigured on the 10.30.0.0/24 network with gateway 10.30.0.1. The PLC (10.30.0.10) and the HMI (10.30.0.20) have fixed addresses, because the rules recognise them by their address; the other devices that ask DHCP for an address get it from the headquarters’ domain controller (192.168.10.10) through the relay on
eth1.30, “Production: DHCP from the domain controller” (DNS and DHCP → DHCP, “Relay to another server”, see DNS and DHCP). Agree the window with whoever looks after the plant: while the addresses change, the line loses its supervision. - The supervision PC with an address that does not change: in DNS and DHCP → DHCP, detail of
eth1, add a reservation for its MAC address (here00:00:5e:00:53:50) with 192.168.10.50 and host namesupervision(as for the NAS in the First office scenario). The rules of this scenario recognise the PC by its address.
Steps
The production VLAN
- Go to Network and uplinks → VLANs and press “Add VLAN”. “Parent interface”
eth1, “VLAN id”30, “Method” “Static”, “Zone” “— no zone —”, “Address (CIDR)”10.30.0.1/24. Press “Create VLAN” and, in the dialog that warns about the network restart, “Save”. The network restarts for a few seconds; “VLAN applied” appears. As long as it is in no zone, the traffic ofeth1.30is dropped.
The production zone
-
Go to Zones and rules → Zones and press “Add zone”:
Field Value Why “Name” production “Description” Machines and PLCs (OT): no internet access “Inbound policy” Drop the OT devices ask the appliance for nothing “Forward policy” Drop no connection starts from production towards other zones “Masquerade (SNAT)” off “Answer ping (ICMP)” on the plant’s technician can check the gateway In “Forwarding matrix” leave every row on “Zone default”: the forward policy already drops them, the internet included. In “Interfaces” switch on eth1.30. Do not add any “Inbound services”. Press “Create zone”.


Zones: the detail of the PRODUCTION zone
For the technician The replies to accepted connections (for example the PLC’s reply to the supervision PC) get through all the same: the firewall accepts the return traffic of established connections before it looks at the zones. Production’s forward policy only decides the new connections the OT devices open.
The exceptions from the offices
-
Open the LAN zone. Its “Forward policy” is “Accept”: with nothing else, every office PC would reach production. In “Forwarding matrix” set PRODUCTION to “Reject”. “Reject” rather than “Drop” gives whoever tries an error at once, instead of a wait: in an office that is clearer, and in the log the action appears as “reject”.
-
In the “Forward rules” block press “Add rule”. In the dialog set:
Field Value “Destination zone” PRODUCTION “Action” Accept (a new rule offers “Reject”) “Protocol” TCP “Ports” 502 “Source” 192.168.10.50 “Destination” 10.30.0.10 “Comment” Supervision to the PLC (Modbus) Press “Add”.


Zones: the dialog of a forward rule -
Press “Add rule” again and create the second one: “Destination zone” PRODUCTION, “Action” “Accept”, “Protocol” TCP, “Ports”
443, “Source”192.168.10.50, “Destination”10.30.0.20, “Comment”Supervision to the HMI panel. Press “Add”.The block now shows two numbered rows, each with “→ PRODUCTION · TCP 502” (or 443), below it “from 192.168.10.50 · to 10.30.0.10” (or 10.30.0.20) and the comment, and the label “Accept”. Press “Save zone”.


Zones: the LAN's forward rules towards PRODUCTION
How the rules are read
A zone’s forward rules are read from top to bottom, before the matrix: the first one that matches decides, and the traffic no rule describes follows the matrix and the forward policy. Here:
- PC 192.168.10.50 to the PLC on 502: rule 1 accepts.
- PC 192.168.10.50 to the HMI on 443: rule 2 accepts.
- The same PC to the PLC on another port, or another PC to any production device: no rule matches, the matrix decides, and it rejects.
The order matters when the rules overlap. If one day you add at the top a rule “→ PRODUCTION · Any protocol · Reject” with no source, that rule matches everything and the two access rules below are never read again. To change the order use “Move up” and “Move down” on the row. The switch on the row turns a rule off without deleting it: handy for a temporary intervention.
For the technician Each rule becomes a line of the LAN’s forward chain, with
oifnameon the destination zone’s interfaces,ip saddr,ip daddrandtcp dport. A rule that does not accept has its own log line in front of it (zone-lan-to-production-rule-N); the matrix has its own (zone-lan-to-production). A rule towards a zone without interfaces matches nothing and is skipped.
Applying and confirming
- In the header press the firewall’s status button (“Unapplied changes”), choose “Apply” and in the “Keep the new ruleset?” dialog press “Confirm” within 60 seconds.
Optional: one precise way out for a device
- If a production device has to reach a single external service, for example the HMI downloading updates from the manufacturer’s server 198.51.100.80 over HTTPS, do not open production to the internet: open the PRODUCTION zone and add a forward rule with “Destination zone” WAN, “Action” “Accept”, “Protocol” TCP, “Ports”
443, “Source”10.30.0.20, “Destination”198.51.100.80, “Comment”HMI → manufacturer updates. Press “Save zone”, then apply and confirm as in step 6. The WAN zone’s masquerade takes care of the outgoing address. If the HMI looks the server up by name, it also needs DNS: in that case open in the PRODUCTION zone the inbound service udp 53 with “Source”10.30.0.20.
Optional: traffic inspection
-
If the hardware allows it (at least 2 cores, 2 GiB of memory and 8 GB of disk), you can have the intrusion prevention engine examine the traffic towards production. Go to Protection → Inspector:
- “Inspection level”: “Standard”.
- “Block what it detects”: off. With inspection in alert-only mode a false positive produces an alert, not a stopped line.
- “Inspected zones”: switch on LAN.
Press “Save”, then apply the firewall from the header: the inspected zones follow the change only after the apply. The detections appear in Events and diagnostics → Detections. The details are in the Intrusion prevention scenario.
Warning The inspector examines the connections the selected zones accept. Those towards the PLC and the HMI are accepted by the LAN, through its forward rules: to see them, LAN must be selected. Selecting PRODUCTION alone examines only what starts from the production network, which here is almost all dropped. Selecting LAN also sends the offices’ browsing through the engine: bear that in mind when sizing the appliance. Switching on “Block what it detects” on industrial traffic must first be tried in alert-only mode, for days.
Verification
The rules. In Zones and rules → Overview, in the “Zones” table, the LAN row shows “Accept · rules: 2” under “Forward”; the PRODUCTION row has eth1.30, “Inbound” and “Forward” on Drop.
From the supervision PC (192.168.10.50). The SCADA software reads the PLC as before. In the browser, https://10.30.0.20/ opens the HMI’s page.
From another office PC. Try the same HMI address and a connection to the PLC: both must fail at once.
Test-NetConnection 10.30.0.10 -Port 502
(PowerShell) answers TcpTestSucceeded : False.
In the logs. In Events and diagnostics → Firewall choose “Show” “Blocked” and type production in the filter. The test PC’s attempts appear with rule zone-lan-to-production and action “reject”. An OT device trying to go out to the internet appears with rule zone-production-fwd and action “drop”: it is the quickest way to find out which devices “phone home” and decide, one by one, whether a rule like the one in step 7 is needed. With “Passed” and the filter 10.30.0.10 you see the supervision PC’s accepted Modbus connections.


From the appliance. In Events and diagnostics → Diagnostics, “Ping” to 10.30.0.10 checks that the PLC is reachable on the new network; “TCP port check” with “Host” 10.30.0.10 and “Port” 502 tells you whether the PLC accepts Modbus connections.
If something goes wrong
The supervision PC no longer reaches the PLC.
- The PC does not have 192.168.10.50: check with
ipconfigand verify the DHCP reservation. In Events and diagnostics → Firewall, with “Blocked” and the filterproduction, you see which address the rejected attempts come from. - The rule says “Reject” instead of “Accept”: a new rule starts with “Reject”. The label at the end of the row shows it in red.
- The PLC uses a port other than 502, or the software opens other ports too: the log of the rejected connections, filtered by the PLC’s address, shows the ports tried. Add them to the rule (“Ports” takes lists like
502,503and ranges like4000-4010). - The PLC still has its old gateway: it answers, but the replies do not come back to the appliance. Its gateway must be 10.30.0.1.
- You saved the zone but did not apply: System status → Status shows “Saved changes are not applied yet”.
Every office PC still reaches production. The PRODUCTION row of the LAN’s matrix was left on “Zone default”, which for the LAN means “Accept”, or there is a forward rule that is too broad above the others. Check the order and apply.
PRODUCTION does not appear in “Destination zone”. The zone has not been created yet: go back to step 2.
A rule carries the note “(no interfaces)”. The destination zone has no interfaces: the rule matches nothing until you assign it one.
Saving the zone shows an error under a rule.
- “Invalid source (IPv4 address or CIDR, comma separated)” or “Invalid destination …”: write addresses like
192.168.10.50or networks like192.168.10.48/29, separated by commas. - “Invalid ports (use 443, 137-139 or 80,443)”: no spaces and no leading zeros.
- “Ports need a protocol: choose TCP or UDP”: with “Any protocol” the ports field stays empty.
After switching the inspector on, the line slows down or stops. Switch off “Block what it detects” if you had switched it on, or remove LAN from “Inspected zones”, save and apply. Then look in Events and diagnostics → Detections for the signature that fired.