Join our Newsletter — 33% off our NHI Course
Home› Guides› SSE Traffic Forwarding Guide: Agents, PAC Files, Tunnels…
Guide Network Security

SSE Traffic Forwarding Guide: Agents, PAC Files, Tunnels and Bypass Lists

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

A security service edge (SSE) platform only protects the traffic that actually reaches it, and the forwarding method you choose decides what is inspected, which identity is attached to it and what happens when the path breaks. Most deployments mix several methods, then add a bypass list that grows quietly. This guide compares those methods on coverage, user identity and failure mode, explains how to govern bypass lists and TLS inspection exceptions, and sets out how to decide between fail-open and fail-closed. It is written for network and SASE engineers who run or are migrating to an SSE service, and it stays vendor-neutral. The wider architecture is covered in the SASE and SSE Guide; this page goes deeper on forwarding only.

Key takeaways

  • Forwarding is a coverage decision. Each method sees a different slice of traffic: agents can carry all ports from managed devices, PAC files carry only proxy-aware web traffic, and site tunnels carry whatever is routed into them.
  • Identity is not free on every path. Agents attach a user and device; tunnels attach a site and source IP unless you add authentication or a surrogate; PAC traffic carries identity only if the proxy authenticates it.
  • Every bypass entry is uninspected traffic. Treat the bypass list as a security control with owners, reasons, expiry dates and change review, not as a troubleshooting scratchpad.
  • Failure mode is a policy choice. Fail-open keeps users working and silently removes controls; fail-closed keeps controls and stops work. Decide per traffic class and population, write it down and test it.
  • Measure what reaches the service. Compare SSE logs against device, DNS and firewall data to find devices and flows that never arrive.

Why forwarding method matters

An SSE service enforces web filtering, CASB inline controls, data loss prevention, firewall as a service and zero trust network access at the provider's points of presence (PoPs). None of that applies to a packet that leaves the device or site by another route. CISA's TIC 3.0 Remote User Use Case notes that remote user traffic can be directed to cloud security services through client agents, proxy settings or DNS, and it asks agencies that bypass a protection for functional or performance reasons to keep compensating protections so that policy is applied consistently. That consistency, which CISA calls policy enforcement parity, is the real objective of a forwarding design.

The method also decides who can turn forwarding off. ATT&CK T1685 (Disable or Modify Tools) covers adversaries stopping or reconfiguring security software, and an SSE agent or a proxy setting is exactly that kind of tool.

MethodTraffic coveredUser and device identityTypical failure modeBest fit
Endpoint agent (tunnel mode)All ports or selected ports from the managed device, on any networkUser from the IdP sign-in, device and posture from the agentAgent stopped, crashed or unable to reach a PoP; captive portal blocks enrolment; configurable fail-open or fail-closedManaged laptops, remote and hybrid workers, ZTNA
PAC file or explicit proxyProxy-aware HTTP and HTTPS from browsers and some applicationsOnly if the proxy authenticates the user (for example Kerberos, SAML surrogate or IP-to-user mapping)A trailing DIRECT sends traffic straight out when proxies are unreachable; PAC host unreachable means no proxy at all on many clientsLegacy proxy estates, unmanaged or locked-down devices, quick pilots
GRE tunnel from a siteAll traffic routed into the tunnel, all protocolsSite and internal source IP only, unless combined with authenticationNo encryption; tunnel or PoP loss routes traffic per router configuration (often direct to internet)Sites with private connectivity to the provider or where encryption is handled elsewhere
IPsec tunnel from a siteAll traffic routed into the tunnel, all protocolsSite and internal source IP only, unless combined with authenticationIKE or dead peer detection failure; route fallback decides fail-open or fail-closedBranches, data centres, servers and IoT that cannot run an agent
Proxy chaining from an on-premises proxyWhatever the existing proxy forwards upstreamLost unless the downstream proxy inserts a user header the SSE trustsTwo policy points can drift; header spoofing if the SSE trusts headers from any sourceTransition periods and sites that must keep a local proxy

Endpoint agents

An agent installed on the device tunnels traffic to the nearest PoP and gives the service the strongest identity: the signed-in user, the device certificate or identifier, and posture such as OS version, disk encryption and EDR health.

  • Scope: decide whether the agent captures all ports or only web ports. Web-only capture leaves SSH, RDP, SMB and custom protocols to other controls. If you use ZTNA through the same agent, private application traffic is usually carried regardless.
  • Trusted network detection: agents commonly detect the corporate network (by DNS lookup, reachable host or certificate) and stop tunnelling when on site so the site tunnel takes over. Make the test hard to spoof: a resolver answer that any home router could fake is weak; an internal HTTPS endpoint with a known certificate is stronger.
  • Tamper protection: require an administrator password or one-time token to disable or uninstall the agent, deploy it through MDM so users cannot remove it, and alert when the agent reports disabled or stops checking in. See the EDR Tampering and BYOVD Response Playbook for how to treat deliberate disabling.

PAC files and explicit proxy

A proxy auto-configuration (PAC) file is a JavaScript function, FindProxyForURL(url, host), that returns a string of semicolon-separated choices such as PROXY host:port, SOCKS host:port or DIRECT. MDN documents the behaviour engineers need to know: the browser uses the left-most entry until it cannot connect, then moves to the next; it retries an unresponsive proxy after 30 minutes and then at growing intervals; and if every proxy is down and no DIRECT is listed, it asks the user whether to ignore proxies. The file should be served as application/x-ns-proxy-autoconfig. PAC is web-only: applications that ignore system proxy settings go direct, so back it with egress firewall rules.

  • The trailing DIRECT is a fail-open switch: ending every return string with ; DIRECT keeps users working during a PoP outage and sends all web traffic uninspected. Decide deliberately, and pair it with a firewall rule that blocks direct outbound web from managed subnets if you want fail-closed.
  • HTTPS paths are not visible: MDN notes that path and query components of https:// URLs are stripped before the function runs, so bypass logic can only match hostnames.
  • DNS cost: isInNet(), isResolvable() and dnsResolve() query DNS on every evaluation. Put string matches such as dnsDomainIs() first.
  • Hosting and integrity: serve the PAC file over HTTPS from an endpoint you control or the provider hosts, restrict who can change it, and version it in source control. Disable automatic WPAD discovery on managed devices so a rogue host cannot supply a PAC file; see the PAC Files and WPAD Security Guide.
  • Identity: explicit proxies can challenge for authentication, which restores user identity for policy. CISA's remote user use case recommends authenticated proxies for remote users so eligibility can be enforced.

GRE and IPsec tunnels

Site tunnels send traffic from a branch router, SD-WAN edge or firewall to the provider's PoP. They cover every protocol and every device behind the site, including printers, servers and IoT that cannot run an agent, but they lose per-user identity unless the service can map source IPs to users or the site also uses an authenticated proxy.

PropertyGREIPsec
StandardRFC 2784 (Proposed Standard), IPv4 protocol number 47RFC 4301 architecture, IKEv2 (RFC 7296), ESP; NAT traversal per RFC 3948
Confidentiality and integrityNone; RFC 2784 defines no encryption or authenticationYes, through ESP
Ports and protocols to allowIP protocol 47UDP 500 (IKE), UDP 4500 (NAT traversal and encapsulated ESP), IP protocol 50 (ESP) where no NAT
Endpoint authenticationSource IP onlyPre-shared key or certificate
Use over the public internetAvoid unless traffic is protected another wayPreferred
  • Primary and secondary PoPs: build two tunnels to two PoPs in different locations and test failover. Decide what the router does when both are down: route to a local breakout (fail-open) or drop (fail-closed).
  • MTU and MSS: encapsulation adds overhead. RFC 2784 itself lists path MTU discovery as an unresolved issue for GRE, so clamp TCP MSS on the tunnel interface and test large transfers.
  • Key handling: IPsec pre-shared keys are machine credentials. Generate them randomly, store them in a secrets manager, give each tunnel its own key, and rotate them on a schedule and when staff with access leave. Prefer certificates where both sides support them, use IKEv2 and follow NIST SP 800-77 Rev. 1 on algorithms. See the IPsec Security Guide.
  • Identity on tunnels: add an authenticated proxy for users, or use agents for managed laptops even on site, and write policy for headless devices on source subnet and destination. NIST SP 800-53 SC-7(8) (Route Traffic to Authenticated Proxy Servers) is the control that describes this pattern.
  • SD-WAN steering: where an SD-WAN edge builds the tunnels, the application steering policy becomes part of the forwarding design. Review it as security policy. See the SD-WAN Security Guide.

Bypass lists and their risks

Bypass lists exist for good reasons. Microsoft's network connectivity principles for Microsoft 365 recommend bypassing proxies, VPNs and TLS decryption for Microsoft 365 traffic and say selective allow-listing is not supported. Apple's guidance on using Apple products on enterprise networks states that its services fail connections that use HTTPS interception and that proxies work for listed hosts only when packet inspection and authentication are turned off. The risk is that the list grows without owners, uses wildcards that are far too wide, and becomes a known path for exfiltration and command and control.

Three kinds of exception

Exception typeWhat still appliesWhat is lostUse for
TLS inspection exemption (traffic still forwarded)Logging, URL and category policy on the hostname (SNI), destination reputation, egress IPContent inspection, DLP, malware scanning of payloadsCertificate-pinned apps, privacy-sensitive categories (health, banking), vendor services that reject interception
Forwarding bypass (traffic goes direct)Endpoint controls, DNS filtering, local firewallAll SSE policy and SSE logs for that flowLatency-sensitive media, services whose vendor requires direct connection, captive portals
Authentication bypassPolicy by source IP or devicePer-user policy and attributionApplications that cannot handle proxy authentication challenges

Prefer the narrowest exception. A TLS inspection exemption keeps visibility and URL policy; a forwarding bypass removes both. The decision trade-offs for decryption are covered in the TLS Inspection Guide, and pinned applications in the Certificate Pinning guide.

Governing the list

  1. Single source of truth: keep every bypass and exemption (agent, PAC, tunnel routing, TLS inspection) in one version-controlled list with the reason, business owner, approver, ticket and review date.
  2. Narrow entries: use exact hostnames or tightly scoped domains; avoid broad wildcards on shared hosting, CDN and cloud storage domains, which attackers can use too.
  3. Automate vendor lists: where a vendor publishes endpoints (Microsoft recommends automating downloads from its endpoint web service), pull them by script and diff changes rather than copying by hand.
  4. Trusted headers: where proxy chaining passes the user name in a header, accept it only from known downstream proxy addresses, and treat agent enrolment tokens and tunnel keys as non-human credentials with owners and rotation.
  5. Expiry by default: troubleshooting entries expire in days; business entries are re-approved at least annually.
  6. Compensating controls: for forwarding bypasses, keep DNS filtering, endpoint protection and egress firewall rules that limit the bypassed destinations to the ports they need.

Fail-open and fail-closed

Every method has a failure path: an agent that cannot reach a PoP, a PAC entry list ending in DIRECT, a router that falls back to local breakout. NIST SP 800-207 warns that an operational error at a cloud-hosted policy point can stop an enterprise from functioning, which is why most organisations default to fail-open for general web. The decision should be explicit.

Traffic or populationCommon defaultReasonCompensating control if fail-open
General web for office staffFail-openProductivity outweighs short loss of inspectionDNS filtering, EDR, alert on bypass events, outage time-box
Privileged admin workstationsFail-closedHigh-value accounts should not browse uninspectedOut-of-band break-glass path
ZTNA private application accessFail-closed (no fallback to direct)The application is only reachable through the brokerSecond PoP, documented emergency VPN
Regulated data flows (DLP-dependent)Fail-closedLoss of DLP means uncontrolled data transferNot applicable
Headless site devices on tunnelsDepends on functionOT or safety systems may need connectivityStrict egress allow-list at the site firewall

Small organisations with one provider usually choose fail-open for web, backed by endpoint and DNS controls; large organisations with two PoP paths and a monitored break-glass route can run fail-closed for more populations.

Choosing a mix and validating coverage

Most estates use a mix: agents on managed laptops, IPsec tunnels from sites for everything else, PAC or explicit proxy for a few legacy or unmanaged populations, and proxy chaining only during migration.

  1. Inventory flows: list device types, locations, protocols and destinations; mark which cannot run an agent.
  2. Pick a primary method per population: agent for managed endpoints, tunnels for sites and headless devices, browser-based or reverse proxy access for unmanaged devices.
  3. Pilot in monitor mode: forward a pilot ring with policies logging only, measure breakage and latency, then enforce.
  4. Test failure: stop the agent, block the PoP, take a tunnel down, make the PAC host unreachable, and confirm behaviour matches the documented failure mode.
  5. Close the back doors: once forwarding works, restrict direct outbound web, DNS and QUIC (UDP 443) from managed networks so traffic cannot route around the service.
  6. Roll back safely: keep the previous proxy or VPN path available, with its configuration versioned, until two clean change cycles have passed.

Detection and measurement

  • Coverage rate: managed devices seen in SSE logs in the last 24 hours divided by devices in MDM or the asset inventory.
  • Agent health: devices with the agent disabled, outdated or in fail-open state.
  • Direct egress: firewall or DNS events showing web traffic from managed subnets that did not go to a PoP.
  • Bypass list hygiene: number of entries, share without an owner or past review date, and share using wildcards.
  • Failover drill results: time to switch PoPs and whether behaviour matched policy.

Pair these with the detections in the SWG, CASB and ZTNA Log Detection Guide.

Framework mapping

FrameworkReferenceHow forwarding relates
NIST SP 800-53 Rev. 5SC-7, SC-7(8), AC-17, SC-8, SI-4, CM-7Boundary protection, routing to authenticated proxies, remote access, protected tunnels, monitoring, least functionality for bypasses
NIST CSF 2.0PR.IR-01, DE.CM-01, PR.PS-01Networks protected from unauthorised use, networks monitored, configuration management of forwarding and bypass settings
CIS Controls v8.1Safeguards 9.3 and 13.10Network-based URL filters and application layer filtering depend on traffic reaching the filter
ISO/IEC 27001:2022 Annex AA.8.20, A.8.23Networks security and web filtering
MITRE ATT&CKT1685, T1090, T1572, T1599Disabling the agent or proxy settings, hiding traffic in permitted paths (proxies and protocol tunnelling), bridging network boundaries

Common failure patterns

  • Silent fail-open: a PAC file or agent falls back to direct during an outage and nobody notices for days because the SSE console shows nothing.
  • Wildcard bypasses: entries for whole cloud storage or CDN domains added during troubleshooting and never removed, giving attackers an uninspected route.
  • Spoofable trusted network detection: the agent stops tunnelling on any network that answers a simple DNS check, including a home router.

Practitioner checklist

  • Document the forwarding method, identity source and failure mode for every user and device population.
  • Deploy agents through MDM with tamper protection and alert on disabled or stale agents.
  • Serve PAC files over HTTPS from a controlled host, keep them in source control and disable WPAD auto-discovery.
  • Use IPsec with IKEv2 for site tunnels over the internet, with primary and secondary PoPs and per-tunnel keys or certificates.
  • Keep one owned, version-controlled bypass and TLS exemption list with expiry dates.
  • Prefer TLS inspection exemptions over forwarding bypasses where a vendor allows it.
  • Decide fail-open or fail-closed per population and test it with scheduled failover drills.
  • Block direct web, DNS and QUIC egress from managed networks once forwarding is stable.
  • Report coverage rate, agent health and bypass hygiene monthly.

Standards and references

Related NHI Mgmt Group resources: SASE and SSE Guide · TLS Inspection Guide · PAC Files and WPAD Security Guide · ZTNA vs VPN · Secure Web Gateway and Web Filtering Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.