Remote Embedded Firewall Configuration Without Locking Yourself Out

Network & Securityembedded firewallremote accessdefault-denyiptables
July 21, 2026|9 min read

An embedded firewall is the packet filter built into the device sitting at the edge of a building site — a CPE device, a BACnet router, or a supervisory controller. Configuring one remotely is mostly a lockout problem: the rule that blocks everything else also blocks you, and the device is a truck roll away. Work from an explicit inventory of the flows the site actually needs (BACnet/IP on UDP 47808, Modbus TCP on 502, Niagara secure Fox on 4911), apply every change behind a timed automatic rollback, verify from the real source address, and persist the ruleset only after the change is confirmed working.

The Scenario

You need to tighten the firewall on a device at a site three hours away. There is no one on-site who can reach the console, and the building runs on the network you are about to change.

These are the failure modes that bring technicians to this problem:

What "Embedded Firewall" Actually Means

The term covers three fairly different things, and the safe procedure depends on which one you have in front of you.

The goal in all three cases is default-deny: the device permits the flows the site needs and drops everything else. In IEC 62443 terms, this device is enforcing a conduit — the controlled communication path between two security zones. Our IEC 62443 security zones guide covers how to decide where those zone boundaries belong before you start writing rules at one.

The Safe Remote Change Procedure

Step 1: Inventory the Flows Before You Write a Rule

A default-deny ruleset written from memory will break something. Write down every flow the site depends on first, including the path you are connected over right now.

FlowTransport / PortNotes
BACnet/IPUDP 47808 (0xBAC0)Default per ASHRAE 135 Annex J; sites may use additional ports for separate BACnet networks
Modbus TCPTCP 502Reserved default; gateways are often reconfigured off it
Niagara Fox (unencrypted)TCP 1911Tridium no longer recommends the plaintext variant
Niagara secure Fox (foxs)TCP 4911TLS; the default for station-to-station and Workbench sessions
Niagara platform daemonTCP 5011Needed for platform-level work, not station access
BACnet/SCTCP 443 (default)WebSocket over TLS; the hub URI carries the port and 443 is the wss:// scheme default, so it is usually already permitted outbound. Some deployments use alternates such as 8443 — confirm against the hub config
Egress: DNS, NTP, device managementVariesThe most commonly forgotten category; a controller with no NTP drifts and breaks schedules

For the BACnet side specifically — broadcast handling, BBMD interaction, and which directions actually need to be open — our BACnet firewall rules guide has the detail this table compresses.

Step 2: Read the Default Policy, Not Just the Rules

Almost every implementation is first-match-wins with an implicit final action. The rules you can see are rarely what breaks the site; the policy at the bottom of the chain is.

Before changing anything, record the current ruleset and the current default policy somewhere off the device. On a netfilter box, an iptables-save or nft list ruleset dump is your rollback artifact. On a web UI, a config backup or a screenshot of the rule table is the equivalent.

Step 3: Never Apply Without a Dead-Man Rollback

This is the step that separates a routine change from a truck roll. Every remote firewall change needs a mechanism that restores the last-good state if you stop responding — because if you lock yourself out, you cannot be the one to fix it.

Step 4: Verify From the Real Source Address

Test from where production traffic actually originates. A rule verified from a laptop on the site LAN proves nothing about a technician arriving through an encrypted tunnel, because the source address the firewall sees is different.

Check both directions and both outcomes: the flows you intended to permit still pass, and the flows you intended to block are actually blocked. A change that only proves the first half has not been tested.

Step 5: Persist Only After Verification

Save the ruleset once the change is confirmed, then reboot the device during a maintenance window and confirm it comes back with the rules you expect. An unverified persisted ruleset is worse than no ruleset — it survives the reboot that would otherwise have rescued you.

Common Pitfalls

When to Escalate

Escalate to on-site hands when the device stops answering and no rollback was armed. There is no remote recovery from a locked-out embedded firewall — that is the whole reason Step 3 exists.

Escalate to the vendor when the rules are demonstrably correct and traffic still drops. Some embedded firewalls apply hidden default rules, filter before the user-visible table, or handle broadcast in ways the documentation does not describe. Bring a capture from both sides of the device: proving the packet arrives and does not leave turns a debate into a support case.

Escalate to the network owner when the required flow list conflicts with the site's segmentation policy. That is a zone-and-conduit decision, not a firewall rule, and it should be made deliberately rather than worked around at the console.

SiteConduit takes the lockout risk out of this entirely: sessions are protocol-restricted and default-deny by design, so the flows a technician can reach are decided by policy on the platform rather than by hand-edited rules on a device at the far end of a cellular link. Secure remote access for cyber-physical systems covers the architecture.

Source Attribution

The technical guidance in this entry is informed by the following sources:

Additional testing and field validation by SiteConduit.

embedded firewallremote accessdefault-denyiptablesnftables

Was this article helpful?

Related Articles

Need to do this remotely? SiteConduit connects remote technicians directly to the BAS VLAN without exposing corporate IT networks. Join the waitlist.

SC

SiteConduit Technical Team

Idea Networks Inc.

SiteConduit builds managed remote access for building automation. Our knowledge base is maintained by BAS professionals with hands-on experience deploying and troubleshooting BACnet, Niagara, Modbus, and Facility Explorer systems.