Automation Glossary • NAT/Firewall Traversal

What Is NAT/Firewall Traversal?

Merobix Engineering • • 7 min read

You have a gateway on a cellular SIM at a remote well, but you cannot reach it from the office - it has no public address you can connect to. That is NAT at work, and getting past it is NAT traversal. This guide explains why remote sites are hidden behind NAT and firewalls and how telemetry reaches them anyway.

Back to Blog

NAT/Firewall Traversal in one line: NAT/firewall traversal is the set of techniques used to establish a connection to a device that sits behind Network Address Translation or a firewall, which by default blocks unsolicited inbound connections - a common obstacle because most cellular SCADA sites have no public, reachable IP address.

Why Remote Sites Are Hidden

To conserve scarce public IP addresses, cellular carriers put most data SIMs behind carrier-grade NAT (CGNAT). The gateway gets a private address; the carrier translates its outbound traffic to a shared public address on the way out. This works perfectly for connections the device starts, but there is no fixed public IP or open port for anyone on the outside to connect back in on. Corporate and site firewalls add the same barrier by design: they permit outbound connections but drop unsolicited inbound ones.

The result is that a head end cannot simply dial into a field device by IP. Any architecture that assumes the SCADA server initiates connections to sites will fail on a typical cellular fleet. This single fact drives much of how remote telemetry is designed.

How Telemetry Gets Through

The cleanest approach is to flip the direction: let the device start the connection. Because NAT and firewalls allow outbound sessions and keep them open for return traffic, an outbound-only connection from the gateway to the cloud - polling out, an MQTT session, or an HTTPS tunnel - passes through cleanly with no port forwarding. This is the dominant pattern in cellular SCADA precisely because it sidesteps NAT entirely.

Where two-way or inbound access is genuinely needed, options include a VPN (the gateway dials into a concentrator and becomes reachable on a private network), a private APN that gives fleet devices routable addresses, or a rendezvous server both sides connect out to. Each avoids exposing the site directly to the internet. A cloud-native SCADA like Merobix is designed around outbound, device-initiated connectivity, so it reads sites behind CGNAT without inbound holes punched in any firewall.

How to Confirm You Are Behind CGNAT

Before designing around NAT, confirm it is actually in play. Compare two addresses: the WAN address the gateway's own status page reports, and the public address the outside world sees when the gateway makes an outbound request. If they differ, translation is happening upstream. The carrier-assigned address itself is often the giveaway: the shared address space reserved for carrier-grade NAT is 100.64.0.0/10, so a gateway holding an address in that block is behind CGNAT by definition, and the familiar private ranges - 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 - indicate NAT of some flavor as well.

The distinction matters because the remedies differ. NAT at your own site router is under your control: you can add forwarding rules or firewall exceptions. NAT in the carrier network is not - no configuration on equipment you administer can open an inbound path through it, and the realistic options narrow to a device-initiated architecture, a fixed public address from the carrier, or a private APN.

Keeping the Outbound Path Alive

An outbound-only connection solves reachability, but NAT adds a quiet maintenance burden: the translation entry that lets return traffic reach the gateway is temporary state in the carrier's equipment, discarded after a period of inactivity. A session that goes idle - a slow-polling site, a nighttime lull - can find its mapping gone, after which packets from the cloud side simply vanish. The connection looks established to both endpoints while delivering nothing, which is among the more confusing failure modes to troubleshoot remotely.

The standard countermeasure is periodic keepalive traffic frequent enough to refresh the mapping before the carrier expires it. The right interval is carrier- and plan-specific, so it is tuned empirically: too long and sessions silently die, too short and the keepalives themselves eat the data budget on a metered SIM. Setting the MQTT keepalive for a cellular link is the canonical version of this exercise, and the same reasoning transfers to TCP keepalives and protocol-level test frames.

Choosing a Traversal Approach

ApproachHow it worksFits best when
Device-initiated outboundGateway connects out to the platform; NAT never sees an inbound attemptMonitoring and telemetry fleets; the default choice
VPN to a concentratorGateway dials out into a private overlay network and becomes addressable inside itRoutine inbound engineering access to devices is required
Private APNCarrier places the fleet's SIMs on a private network routed to the operatorLarger fleets standardizing on one carrier arrangement
Fixed public IP SIMCarrier assigns a routable public address to the SIMIsolated sites that truly need direct reachability, paired with strict firewalling

The approaches compose. A common production pattern is outbound-only telemetry across the whole fleet plus an on-demand VPN for occasional configuration sessions. The cost and security tradeoffs between the carrier-side options are covered in more depth in private APN versus public cellular; the short version is that anything granting inbound reachability also expands the attack surface and needs firewall policy to match, and that decision belongs with whoever owns network security for the fleet.

Troubleshooting a Site You Cannot Reach

  1. Confirm the gateway is actually online: does the carrier's management portal show an active data session, and is outbound traffic from the site arriving anywhere?
  2. Establish which direction is broken - a site that reports data but rejects inbound connections is a NAT symptom, while a fully silent site is a power or connectivity problem.
  3. Check the address the gateway holds against the CGNAT and private ranges to establish whether inbound was ever possible.
  4. If the design depends on a VPN or private APN, verify the tunnel or APN session is up before blaming the device.
  5. Only then open a carrier ticket, with the session logs and addresses already collected - carrier support moves faster with evidence attached.

The recurring theme is that NAT failures masquerade as device failures. A field technician dispatched to power-cycle a perfectly healthy gateway is the classic cost of skipping the second step.

Frequently Asked Questions

Why can't I reach my cellular gateway from the office?

Because carriers place most data SIMs behind carrier-grade NAT, the gateway has no public, reachable IP or open inbound port. Firewalls block unsolicited inbound connections too. You reach it via a device-initiated outbound connection, a VPN, or a private APN.

What is the easiest way to get past NAT for SCADA?

Have the field device start the connection. Outbound-only links - polling out, MQTT, or an HTTPS tunnel to the cloud - pass through NAT and firewalls without any port forwarding, which is why they dominate cellular telemetry.

Do I need a VPN to monitor a site behind CGNAT?

Not for monitoring. An outbound, device-initiated connection reaches the cloud without a VPN. A VPN or private APN is needed only when you require inbound access to the device itself, such as remote configuration from the head end.

Will port forwarding on the site router get through CGNAT?

No. Port forwarding only controls NAT that your own router performs. With CGNAT, the translation blocking inbound connections happens in the carrier's network upstream of anything you administer, so no local configuration can open the path. The workable options are device-initiated connections, a VPN, a private APN, or a fixed public IP from the carrier.

Is a fixed public IP on a cellular gateway a security risk?

It makes the gateway reachable from the entire internet, so it will be scanned continuously and must be defended: strict firewall rules on the gateway, no exposed services beyond those genuinely required, and hardening per your site's security policy. Many operators reserve fixed IPs for the few cases that truly need inbound access and keep everything else outbound-only, precisely to avoid carrying that exposure fleet-wide.

Sources and verification

This page references the protocol specifications published by the organizations below. Editions, product capabilities, and documentation change over time - confirm current requirements and specifications directly with the source.

Merobix is not affiliated with, endorsed by, or sponsored by these organizations; their names are used only to identify the standards and products discussed.

More in OT Cybersecurity
NAT traversal  •  Deny-by-Default Firewalling  •  Network Access Control (NAC)  •  All OT Cybersecurity →
Free SCADA operator training
Merobix University - 70 video lessons & 261 quiz questions, from first login to compliance reporting. No demo call required.
Start free →