In modern enterprise networks, over 90% of web traffic is encrypted using TLS 1.2 or TLS 1.3. Traditional Deep Packet Inspection (DPI) and Intrusion Detection Systems (IDS/IPS) are effectively blind to this traffic; they can analyze packet headers, IP addresses, and routing metadata, but they cannot inspect the payload for malware, zero-day signatures, or data exfiltration.
To regain visibility at the perimeter, the UniFi Enterprise Fortress Gateway (EFG) implements NeXT AI Inspection—a hardware-accelerated "Man-in-the-Middle" (MitM) decryption proxy. This engine intercepts, decrypts, inspects, and re-encrypts traffic in real-time before it enters or leaves the local network.
1. The SSL/TLS Proxy Architecture
Cryptographic interception requires breaking the fundamental trust model of the internet. By design, a client browser will reject any TLS certificate that is not mathematically signed by a globally trusted Certificate Authority (CA), such as DigiCert or Let's Encrypt.
To bypass this without triggering security warnings on every client machine, the EFG must act as its own trusted Root CA. Network administrators must deploy this custom Root CA certificate to all managed endpoints (typically via Windows Group Policy Object (GPO) or a Mobile Device Management platform). Once the endpoint trusts the gateway's internal CA, the gateway can dynamically spoof destination certificates on the fly.
2. The Bi-Directional TLS 1.3 Handshake
When an internal client attempts to establish a secure connection to an external server, the EFG intercepts the TCP stream and forces two independent cryptographic handshakes to occur.
-
ClientHello & Session Halt: Cleartext Interception. The internal client initiates the connection by sending an unencrypted
ClientHellopacket. The EFG intercepts this packet, preventing it from reaching the WAN, and temporarily halts the client's session state. -
Server-Side Handshake: Upstream Proxy Generation. The EFG initiates its own independent
ClientHelloto the external destination server. The external server responds with its public certificate and aServerHello. The EFG verifies the external server's certificate against public CAs to ensure the upstream connection is legitimate. -
Certificate Re-Signing: Dynamic Spoofing. The EFG extracts the Common Name (CN) and Subject Alternative Names (SAN) from the legitimate external certificate. It then dynamically generates a new, spoofed certificate containing identical information, but signs it using the EFG's internal Root CA.
-
Client-Side Handshake Completion: Dual Tunnels Established. The EFG presents this spoofed certificate to the internal client. Because the client inherently trusts the EFG's Root CA, it accepts the certificate. The gateway now maintains two distinct symmetric encryption keys:
Key 1(Client to Gateway) andKey 2(Gateway to Server).
When data flows across the network, the gateway decrypts the payload using Key 1, runs the cleartext through the NeXT AI signature detection engine, re-encrypts it using Key 2, and forwards it to the destination.
3. The Hardware Tax and Concurrent Session Limits
Executing cryptographic calculations on every passing packet is extremely computationally expensive. While the EFG utilizes an 18-core ARM® v8.2 processor with dedicated crypto-acceleration blocks, SSL/TLS inspection fundamentally alters the routing architecture from a fast-path hardware offload to a slow-path CPU processing model.
- Memory Paging: Maintaining two distinct TCP session states and storing symmetric keys in active memory for every connection consumes significant RAM overhead.
- Throughput Impact: While the EFG boasts a 23.5 Gbps standard routing capacity, enabling full IDS/IPS drops maximum throughput to 12.5 Gbps. When SSL/TLS decryption is enabled, this limit experiences further latency penalties due to the constant decrypt/re-encrypt cycle.
- Session Caps: Due to the severe memory and CPU requirements of MitM proxying, UniFi caps deep SSL/TLS inspection to 5,000 concurrent sessions, whereas standard NAT routing can support over 1,000,000 concurrent sessions concurrently.
4. SNI Parsing and Regulatory Bypass Exceptions
Intercepting encrypted traffic introduces severe legal and compliance risks. Decrypting connections to banking institutions violates PCI-DSS, and intercepting healthcare portals violates HIPAA regulations. The gateway must know which traffic to ignore before the encryption tunnel is established.
If the payload is encrypted, how does the firewall know the destination is a bank?
It relies on Server Name Indication (SNI). SNI is an extension to the TLS protocol that requires the client to state the exact hostname it is trying to connect to in the initial, unencrypted ClientHello packet (e.g., sni: secure.chase.com).
- The EFG's NeXT AI engine parses the cleartext SNI header before establishing a proxy tunnel.
- It cross-references the requested hostname against its categorized dynamic DNS databases.
- If the SNI matches a protected category (Finance, Healthcare, Legal), the EFG immediately bridges the connection, forwarding the packets untouched and bypassing the decryption proxy entirely.
What breaks in production
Inspection breaks the one property TLS exists to provide, so the failures are loud and personal.
Pinned certificates do not negotiate
Anything using certificate pinning — banking apps, some Chromebook management flows, Apple services, and a growing number of IoT vendors — will fail closed when the proxy presents its own certificate. There is no graceful degradation. Build the bypass list before the pilot, not after the helpdesk ticket.
- Hardware limits arrive quietly. Concurrent inspected sessions consume memory per flow. The symptom is not a crash; it is latency that climbs through the morning as the table fills.
- QUIC and HTTP/3 bypass the proxy unless you block UDP 443. If you inspect TCP and permit QUIC, you have built a proxy that modern browsers route around.
- Legal exposure. In a district, inspecting staff traffic has policy and consent implications that inspecting student traffic may not. Get the scope in writing before the first packet.
Checklist
- Pinned-certificate applications are enumerated and excluded.
- UDP 443 policy is explicit: blocked, or documented as uninspected.
- Session capacity is measured against peak concurrent flows, not average.
- The acceptable-use policy names inspection, its scope, and who can read the logs.