TroutTrout
Back to Blog
Industrial DMZOT SecurityNetwork ArchitectureManufacturing

How to get historian, MES and ERP data through an industrial DMZ

Trout TeamLast updated: 9 min read

The short version

Move plant data to IT through a Level 3.5 industrial DMZ, and let the OT side open the connections. A historian replica, an OPC UA aggregation server, an MQTT broker or a file relay sits in the DMZ. Plant systems push data to it. ERP, MES, BI and cloud tools read from it. No system on the IT side connects to Level 2 or below.

This post is for the controls engineer or plant IT lead who must keep feeding ERP and analytics after security has said "no more direct IT-to-OT connections". It covers the standard patterns, the port direction of each data flow, three designs that break the rule, and where Trout Access Gate IDMZ fits.

The rule at Level 3.5

Every connection between the business network and the plant ends in the DMZ. NIST SP 800-82 Rev. 3, section 5.2.3.1, asks for firewall rules that "prevent Level 4 devices from directly communicating with Level 2, 1, or 0 devices." The same document says that any communication between the enterprise level and the operations level goes through services within the DMZ. ISA/IEC 62443 expresses the same idea as zones joined by defined conduits.

The second rule is about direction. Where the product allows it, the plant side opens the connection outward to the DMZ. The IT side then connects only to systems in the DMZ. A firewall between Level 3 and the DMZ then needs no inbound rule toward the plant for data. NIST adds a point that plants often skip: outbound rules from the control network should be as strict as inbound rules. A plant server that may connect anywhere outbound is also a path out for an attacker.

The Purdue model guide covers the levels. The industrial DMZ design patterns cover the two-firewall and three-legged layouts.

Historian replication to a DMZ historian

Keep the collecting historian at Level 3 and replicate it to a second historian in the DMZ. The collecting historian talks to PLCs and interfaces, so it stays on the plant side. The DMZ copy serves reports, ERP, MES dashboards and analysts.

With AVEVA PI, the PI Data Archive never starts a connection itself. AVEVA's installation documentation states that the interface or client always initiates the connection to port 5450 on the Data Archive host. The direction therefore depends on where you run the PI to PI interface. Run it on the plant side. It reads from the plant PI Data Archive and writes to the DMZ PI Data Archive. The only firewall rule is plant to DMZ on TCP 5450.

With AVEVA Historian, replication runs from one tier to the next. The tier-1 historian in the plant connects to a tier-2 historian in the DMZ. The tier-2 server accepts inbound connections on the replication port. Tier-1 also keeps data in store-and-forward when tier-2 is unreachable, so a DMZ outage does not lose plant data.

Treat the DMZ historian as an exposed server. It is reachable from the business network by design. Two recent CISA advisories show why: openPDC and openHistorian flaws in ICSA-26-281-02 included unauthenticated data publishers, and the Siemens NTLM relay in ICSA-26-321-08 affects Process Historian and Information Server with no fix planned. A compromised replica must not give a path back to Level 3.

OPC UA and MQTT in the DMZ

OPC UA Reverse Connect lets a plant server open the connection to a client in the DMZ. In normal OPC UA, the client connects to the server. Part 2 of the OPC UA specification defines Reverse Connect, where the server opens the socket and the client then sets up the secure channel. From the firewall's view, the connection is outbound from the plant. The client must check that the connection comes from the expected server, so configure that check.

A common layout puts an OPC UA aggregation server in the DMZ. It collects from plant servers over Reverse Connect and serves IT clients on its own endpoint. IT clients never see the plant addresses.

MQTT is outbound by design. Every MQTT client connects to the broker, publishers and subscribers alike. Put the broker in the DMZ. Edge gateways and plant servers publish to it. IT and cloud applications subscribe to it. The MQTT specification lists TCP 8883 for MQTT over TLS and 1883 for unencrypted MQTT. Use 8883 with client certificates. OPC UA PubSub, defined in Part 14, can also use an MQTT broker as its transport.

File relays and data diodes

For batch data, use an SFTP relay in the DMZ. A plant job pushes quality reports, batch records or CSV exports to the relay. An IT job collects them from the relay. Neither side logs into the other.

For sites that require one-way flow, use a data diode or unidirectional gateway. NIST SP 800-82 Rev. 3, Appendix E.1.2, describes data diodes as hardware that cannot be programmed to pass data in both directions. Vendors replicate PI or AVEVA historians across them through their own software. A diode suits nuclear plants and sites where a risk assessment demands it. It also stops every return path, so remote support and write-backs need a separate, controlled path.

Data flows, patterns and port direction

Data flowPattern in the DMZWho opens the connectionFirewall rule toward the plant
Historian to business usersPI to PI or AVEVA tier-2 replica in the DMZPlant historian or interface, outboundNone inbound. Plant to DMZ on the historian port
MES to ERP (production counts, consumption)Staging database or MQTT topic in the DMZMES at Level 3 pushes to the DMZ. ERP reads the DMZNone inbound
ERP to MES (work orders, recipes)Staging table, file drop or message queue in the DMZERP writes to the DMZ. MES pulls from the DMZNone inbound. MES polls outward
Cloud analyticsMQTT broker, OPC UA aggregator or historian connector in the DMZDMZ host opens outbound HTTPS to the cloudNone inbound. Plant to DMZ only
Vendor supportRemote access bastion in the DMZ with MFAVendor connects to the DMZ. The bastion opens one approved session to one machineOne rule from the bastion to the named machine, time-bound and logged

ISA-95 places MES at Level 3, on the plant side. That is why MES pulls ERP orders from the DMZ. It also explains the one inbound rule in the table: vendor support. A human session has to reach a machine. That session goes through the DMZ bastion, with MFA and a log, and only to the machine the ticket names. NIST SP 800-82 Rev. 3, section 6.2.10, says remote access should be limited to the business need and should not circumvent safety or security controls.

Three designs that break the rule

An ERP system queries a SQL Server on the control network. It often starts as a quick integration for production counts. The firewall then holds a rule from the business network to a Level 3 database on TCP 1433. Any compromised host that can use that rule, or the ERP service account, reaches the plant. Move the data into a DMZ staging database that MES fills.

A vendor cloud agent runs on an HMI or engineering workstation. The agent opens an outbound connection from inside the control network to the internet. The vendor's cloud then has a live channel to a Level 2 host. Move the agent to a DMZ host that reads from the replica or broker.

A historian server has one network card in the plant and one in the office. That dual-homed server is a bridge that skips the firewall. If it routes, or if an attacker takes it over, the office reaches the controllers. Split it into a plant historian and a DMZ replica, and remove the second card.

Where Access Gate IDMZ fits

Access Gate IDMZ does the Level 3.5 enforcement jobs in one appliance beside your existing IT firewall. A classic DMZ build needs two firewalls, a jump server, a directory with MFA and a log collector. Access Gate IDMZ covers those jobs:

  • Zone filtering with per-flow rules: which system may talk to which, on which port.
  • Protocol-aware rules, including per-command filtering for Modbus and DNP3.
  • An authenticating proxy and remote access bastion, with MFA before any session reaches a machine.
  • One audit log of every session and every allowed or denied flow.

It does not do the data work. Access Gate is not a historian, an OPC UA server, an MQTT broker or a data diode. Your PI or AVEVA replica, your broker and your SFTP relay keep that role. Access Gate enforces that only the flows in the table above cross the zones, and it records them. If ERP starts to query the plant SQL Server again, the flow is denied and logged.

Traffic goes through Access Gate by one route on your existing router or firewall. Nothing changes on the machines. They keep their IP addresses and nothing is installed on them. Removing the route is the rollback. Access Gate is up in a day per site. For the wider architecture, see securing the IT/OT boundary: technical architecture patterns.

How to move an existing plant to this design

Start with an inventory of every flow that crosses the IT/OT boundary today. Export the firewall rules between business and plant. Mark each rule with its source, destination, port and owner. Flag every rule with no known owner.

Then work through the flows one at a time:

  • Stand up the DMZ replica or broker, and point one consumer at it.
  • Reverse the direction so the plant side pushes, and close the old inbound rule.
  • Move vendor and engineer access to the DMZ bastion with MFA.
  • Remove dual-homed servers and cloud agents from Level 2 and Level 3 hosts.

Change one flow per maintenance window, and keep the old rule disabled for a week before you delete it. That gives you a rollback if a report or an interface breaks.

FAQ

Frequently Asked Questions

What is Purdue Level 3.5?
Level 3.5 is the industrial DMZ between the business network (Levels 4 and 5) and the plant's operations network (Level 3 and below). It holds the systems both sides need to share: historian replicas, data brokers, file relays, patch servers and the remote access bastion. Connections from either side end in the DMZ. NIST SP 800-82 Rev. 3 asks for firewall rules that stop Level 4 devices from communicating directly with Level 2, 1 or 0.
How do you get historian data to the business network without opening ports into the plant?
Replicate the plant historian to a second historian in the DMZ, and let the plant side open the connection. With AVEVA PI, run the PI to PI interface on the plant side so it writes to the DMZ PI Data Archive on TCP 5450. With AVEVA Historian, the tier-1 historian replicates to a tier-2 historian in the DMZ. Business users and ERP read from the DMZ copy only.
Should the historian sit in the DMZ or in the control network?
Keep the historian that collects from the controllers at Level 3, and put a replica in the DMZ for business users. The collecting historian needs to reach PLCs and interfaces, so it belongs on the plant side. The replica serves reports, ERP and analytics. If the DMZ replica is compromised, the plant historian and the controllers are still one firewall away.
Do I need a data diode for historian data?
Only where a one-way flow is a requirement, such as a nuclear plant or a site whose risk assessment demands it. NIST SP 800-82 Rev. 3 describes data diodes as hardware that cannot pass data in both directions. Most plants reach the same goal with a DMZ, rules that let only the plant side open connections, and logging of every flow.
Does Access Gate IDMZ replace the historian or the MQTT broker?
No. Trout Access Gate IDMZ is not a historian, an OPC UA server, an MQTT broker or a data diode. It filters which systems may talk to which across the zones, logs those flows, and puts every human and vendor session through MFA and an audit log. Your replica or broker keeps doing the data work in the DMZ.

Other Articles

Cyber InsuranceManufacturing

Cyber insurance for manufacturers: the OT questions underwriters ask and how to answer them

Cyber insurers now ask manufacturers about the plant network: MFA on employee and vendor remote access, separation of OT from IT and the internet, an OT asset inventory, end-of-life machines, offline backups and a tested recovery plan. Answer each one with a document you can attach, such as a network diagram, a vendor access list, session logs or a backup test record.

Incident responseOT Security

How to Build an OT Incident Response Plan for a Plant

An OT incident response plan decides five things before an attack: who can cut the link between IT and OT, which lines can run without IT, how engineers reach the plant when the corporate network is down, which evidence to keep, and how to check the machines before restarting. Write those decisions down, name the people, and test them twice a year.

Network SegmentationOT Security

How to Segment a Flat OT Network Without VLANs or Downtime

To segment a flat OT network while the plant keeps running, map the flows first, group machines into zones, then enforce one cell at a time through a gateway beside the existing network. One route on your current router sends a cell's traffic through the gateway, the machines keep their IP addresses, and removing that route is the rollback.