Tiza Group

Home / Guides / Testing, commissioning and faults

Firewall Allowing Traffic It Should Block

Why an industrial firewall permits unplanned traffic: broad rules, rule order, open sessions, bypass paths and NAT. We set it up remotely.

By Shadai García, CEO and protection engineer at Tiza Group.

Short answer

If traffic that should be blocked shows up, first determine whether it really crossed the firewall. If it did, the cause is usually an overly broad rule, a forgotten temporary rule, evaluation order, a session that was already open or an address translation. If it did not, another path exists. Prove it with the log of the matching rule and captures on both sides, and fix it with a controlled, reversible change.

Symptom

A device reaches where it should not: the web page of a relay opens from the corporate network, a vendor reaches more devices than its own, a laptop from another zone reads registers, or the monitoring system logs connections nobody documented. Sometimes an audit finds it by comparing the approved flow matrix with what is actually observed.

Treat it as a possible incident until proven otherwise: keep logs and tell whoever is responsible for security before changing rules. To understand the role of the device and how zones are organized, see substation industrial firewall.

Probable causes, from most to least likely

CauseHow to recognize itWhat confirms itWhat rules it out
Overly broad ruleSource, destination or service set to “any”, or whole subnetsThe log shows the flow matching that ruleNo permit rule covers source, destination and port
Forgotten temporary ruleNamed for testing, commissioning or a vendorNo owner or removal date, and recent hitsEvery rule has an owner and a valid justification
Evaluation orderThe block exists, but lower downThe block counter does not rise and an earlier permit doesThe block comes first and is the one counting
Session established before the changeOnly the old connection persistsThe session table shows a start before the changeA new connection also gets through
Translation or port forwardingReached from outside through an address that is not the device oneA NAT rule publishes the serviceNo translations toward that destination
Path that skips the firewallThe log shows nothing and traffic arrivesSecond interface, modem, wireless bridge, cable between switches or wrong VLANA capture on the firewall sees the packet go in and out
Unfiltered tunnel or VPNAccess only arrives over the VPNTunnel traffic does not go through inter-zone rulesThe tunnel policy limits destinations and ports
Policy not appliedThe screen shows correct rulesConfiguration not committed, stale standby unit or interface in another zoneRunning configuration on both units matches

How to diagnose it

  1. Write down the observed flow: source, destination, protocol, port, direction, time and who detected it. Without that you cannot find the rule.
  2. Preserve evidence. Export logs, session table and running configuration before touching anything; some local logs are circular and get overwritten.
  3. Check whether it crossed. Capture on both sides of the firewall. If the packet appears on the destination side without having entered on the source side, there is another path.
  4. Identify the matching rule. Temporarily enable logging of permitted traffic on the suspect rule or use the device packet simulator, if it has one. Note the counter before and after.
  5. Read the rules in evaluation order, including groups and objects. A group named “SCADA” may contain a whole subnet that someone added later.
  6. Review what sits outside the main table: implicit rules, management access to the firewall itself, VPN, NAT, IPv6 if enabled and rules between interfaces of the same zone.
  7. Compare with the approved flow matrix. Every permit without a row in the matrix is a finding. If there is no matrix, build one from real operation and validate it before blocking.
  8. Look for physical and logical paths using the switch address tables and the zone and conduit segmentation. Layer 2 traffic inside one VLAN does not go through a routing firewall.

Illustrative example

The matrix requires one flow: the control center master to the gateway on TCP 2404. The configured rule permits one /24 subnet to another /24 subnet with any service. Each subnet has 254 usable addresses, so the rule admits 254 × 254 = 64,516 source and destination pairs, with every port, for a need of one pair and one port. From a laptop on the source network the web management of a relay opened: the device had no fault, the rule allowed it. It is replaced by a single source and destination, telecontrol is tested and web access is confirmed as denied. The case is illustrative.

What to do

  • Broad rule: replace it with rules of one source, one destination and one service, with owner and justification. Keep at the end the rule that denies whatever is not permitted.
  • Temporary rule: remove it; if needed again, enable it per session and with an expiry.
  • Order: move specific blocks ahead of general permits or, better, narrow the permit.
  • Old sessions: close them one by one, after confirming they are not the telecontrol in service.
  • NAT and VPN: remove direct publishing and make remote access end at a controlled jump host, as described in secure remote access to substations.
  • Bypass path: disconnect or integrate the link after confirming what it is used for.
  • Policy not applied: commit it, synchronize the standby unit and verify on both.

Make each change with a backup, an agreed window and a way back, and test both what must pass and what must remain blocked.

Field checklist

  • Observed flow described, with time.
  • Security owner informed.
  • Logs, sessions and configuration exported.
  • Capture on both sides of the device.
  • Matching rule identified.
  • Objects and groups expanded and reviewed.
  • NAT, VPN, management and IPv6 checked.
  • Bypass paths ruled out or found.
  • Rules compared with the flow matrix.
  • Permitted and blocked tests after the change.

What not to do

  • Do not delete rules in bulk during operation: the substation may lose telecontrol or supervision.
  • Do not restart the firewall to “clean up” before saving the evidence.
  • Do not scan the protection network without authorization and a plan.
  • Do not close the finding just because ping stopped answering.
  • Do not open cabinets or move cables in the substation without authorized personnel; a wrong disconnection may affect protection functions that travel over the network.

Open it in Tiza Designer

Contrast your rules with the zones in the firewall rule reviewer.

When to call us

If there are signs of unauthorized access, if nobody knows what the rules are for or if you cannot test changes without risking operation, ask for support. We review configuration, logs and captures, build the flow matrix and prepare the rules with their test plan. We set it up remotely: request the configuration.

References

  • NIST SP 800-41 Rev. 1, Guidelines on Firewalls and Firewall Policy.
  • NIST SP 800-82 Rev. 3, Guide to Operational Technology (OT) Security.
  • IEC 62443-3-3, System security requirements and security levels.
  • IEC 62443-3-2, Security risk assessment for system design.

Frequently asked questions

I added a block rule and the connection is still up. Why?

On many stateful firewalls an established session stays in the session table even if the rules change. Also, if an earlier rule permits that flow, the block rule is never evaluated. Check which rule matches and, with authorization, close the session.

Is port filtering enough for industrial protocols?

It limits who talks to whom and on which service, but the same port carries reads and commands. To allow one and deny the other you need protocol inspection in the firewall or restrictions in the destination device.

Is a port scan a good way to verify the rules?

With care. Some control devices react badly to active probing. Review configuration and logs first; if you must test, do it in an approved window, with specific flows and not against protection devices in service.

WhatsApp