Your router rewrites traffic going to a machine so it goes to that machine's twin address instead, and from there through Access Gate. The machines keep talking to the usual addresses and are never changed. The NAT rule lives on your router, so you maintain it, and support is best-effort.
This is an advanced option, last in the order. Prefer one rule on your router (recommended), or one machine at a time by name or by address. Use NAT only when those are closed to you: you cannot change the machines and you cannot add a routing rule.
The example
An HMI on the machine subnet talks to a historian on the server subnet. The router between them is the one thing you control.
| What | Address | Role |
|---|---|---|
| HMI | 192.168.1.10 | Sends to the historian, unchanged |
| Historian | 192.168.2.20, twin address 100.64.2.20 | The machine being reached, on another subnet |
| Router | 192.168.1.1 (machines), 192.168.2.1 (servers) | Rewrites the chosen traffic onto the twin address |
| Access Gate | 100.65.0.6, twin range 100.64.2.0/24 | Checks enclaves, delivers to the real historian |
The twin address keeps the last two numbers: 192.168.2.20 becomes 100.64.2.20.
1. Set the twin range in Access Gate
Create a subnet in Access Gate for the server network and give it a twin range, here 192.168.2.0/24 to 100.64.2.0/24. See Define the twin range.
2. Add the NAT rule on the router
Rewrite the destination of the traffic you want to protect, from the real address to the twin address. Match only that traffic, so nothing else changes:
# Traffic from the HMI to the historian goes to the historian's twin address
iptables -t nat -A PREROUTING -s 192.168.1.10 -d 192.168.2.20 -j DNAT --to-destination 100.64.2.20
The rewrite happens before the router picks the next hop, so the packet already carries 100.64.2.20 when it is routed.
3. Send the twin range to Access Gate
ip route add 100.64.2.0/24 via 100.65.0.6
If your router already sends 100.64.0.0/16 to Access Gate (quick start, step 3), this is already covered.
4. Check it works
From the HMI, reach the historian at its usual address:
ping -c3 192.168.2.20 # from the HMI (192.168.1.10)
Access Gate translates 100.64.2.20 back to the real historian, applies the enclave rules, and the reply returns through the router. A lower TTL on the reply confirms it went through the gate.
What happens to the traffic
HMI (192.168.1.10) [sends to the real historian 192.168.2.20, unchanged]
-> Router [NAT 192.168.2.20 -> 100.64.2.20, route to Access Gate]
-> Access Gate [checks the enclave, translates back to 192.168.2.20]
-> Historian (192.168.2.20)
-> and back through the router to the HMI
Other options
How it works, in network terms
Three pieces work together, all on the router and Access Gate, none on the machines:
- The twin range maps each real address one to one to a twin (overlay) address, a "binat".
- A destination-NAT rule on the router (the L3 gateway) rewrites the destination of the chosen traffic to the twin address.
- A route carries the twin range to Access Gate, which maps the twin address back to the real machine, applies enclave rules, and returns the reply through the router.
The HMI's own address, gateway and routing are untouched. It never learns its traffic was redirected.
Compliance: a conduit between machine and IT zones
Because the redirect sits on the router between a machine zone and an IT zone, it is a natural place to draw an IEC 62443 conduit between them, and to produce the access-control evidence NIS2 Article 21 and NERC CIP-005 ask for.