WAF deployment modes are the ways a web application firewall can sit in your traffic path: as a reverse proxy, a transparent proxy, a Layer 2 bridge, an out-of-band monitor, or a module embedded in the web server, running either in the cloud or in your own data center. The mode decides whether the WAF can block an attack or only report it, who holds your TLS keys, and how much latency you add.

Below you’ll find how each mode works, where real deployments went wrong, and a decision path for cloud, on-premises and hybrid stacks. One change in TLS 1.3 quietly broke a whole category of WAF deployment, and most comparison pages never mention it.

Key Takeaways

  • A WAF deployment mode is two decisions: where the WAF runs (cloud, on-premises or hybrid) and how traffic reaches it (reverse proxy, transparent proxy, bridge, out-of-band or embedded).
  • Only inline modes can stop a malicious request before it reaches the application. An out-of-band WAF sees a copy of the traffic, so it detects and alerts.
  • The reverse proxy WAF is the most common WAF deployment architecture because it terminates TLS, inspects decrypted HTTP and hides the origin server’s IP address.
  • TLS 1.3 (RFC 8446) removed static RSA key exchange, so a passive WAF can no longer decrypt traffic just by holding a copy of the server’s private key.
  • A cloud-based WAF only protects an origin that refuses traffic from everywhere else. A 2015 study found 71.5% of 17,877 cloud-protected sites exposed their origin IP.
  • PCI DSS v4.0 requirement 6.4.2, mandatory since 31 March 2025, calls for an automated technical solution that detects and prevents web-based attacks on public-facing web applications.

What Are WAF Deployment Modes?

A WAF deployment mode describes how a web application firewall is placed between users and your application, and that placement controls what the WAF can see and which WAF rules it can actually enforce. Every option comes down to two questions: where the WAF runs, and whether live traffic passes through it.

The “where” axis covers cloud-based WAF services, on-premises appliances or virtual machines, and hybrid setups that combine both. The “how” axis is about traffic flow. Some modes put the WAF directly in the request path (inline), while others hand it a copy of the traffic (out-of-band).

A simple way to picture the difference: an inline WAF works like a building’s front desk, where every visitor is checked before reaching the lift. An out-of-band WAF is the security camera in the lobby. It records everything, but it cannot physically stop anyone.

  • Reverse proxy: the WAF owns the public IP address, terminates the client connection and opens a new one to the origin.
  • Transparent proxy: the WAF intercepts traffic without changing the IP addressing that clients and servers already use.
  • Layer 2 bridge: the WAF sits on the wire like a smart cable and forwards Ethernet frames after inspection.
  • Out-of-band: the WAF receives mirrored traffic from a SPAN port or network TAP and raises alerts.
  • Embedded or host-based: the WAF runs as a module inside the web server, a sidecar container or an API gateway plugin.

Five WAF deployment modes

The choice matters more each year. Verizon’s 2026 Data Breach Investigations Report found that 31% of breaches began with the exploitation of a software vulnerability, which put exploitation ahead of stolen credentials as the top way in. Compliance has moved too. Requirement 6.4.2 of PCI DSS v4.0 became mandatory on 31 March 2025 and requires an automated technical solution in front of every public-facing web application that handles cardholder data.

So which placement do most teams start with? The reverse proxy, and there are good reasons for it.

How Does a Reverse Proxy WAF Work?

A reverse proxy WAF receives every client request on its own IP address, decrypts it, inspects it against its rules and then forwards clean requests to the origin server over a separate connection. DNS points your domain at the WAF, so the origin never talks to the internet directly.

Because the WAF terminates TCP and TLS, it sees the full HTTP request: headers, cookies, query strings and the body. It can also inspect responses on the way back, which is how data leakage rules catch things like stack traces or card numbers in a page.

Response inspection is built into common rule sets. The OWASP Core Rule Set (CRS) keeps separate inbound and outbound anomaly scores, and its anomaly scoring documentation lists a default inbound threshold of 5 and an outbound threshold of 4. A single critical match (score 5) is enough to block a request at the default settings.

What a Reverse Proxy WAF Gives You

  • Real blocking. Malicious requests are dropped before the origin ever processes them.
  • Origin hiding. Attackers see the WAF’s IP address, not the server’s.
  • One place for TLS. Certificates, cipher policy and HTTP/2 or HTTP/3 support are managed on the proxy.
  • Extra edge controls. Rate limiting, bot rules and caching from a content delivery network fit naturally into the same hop.

The Trade-Offs Security Engineers Should Plan For

The origin now sees the proxy’s address as the client IP. Applications that log or rate-limit by IP need the original address from the X-Forwarded-For header or the standardized Forwarded header defined in RFC 7239, and they should trust those headers only when the request comes from the WAF’s own address range.

The WAF host itself also becomes a privileged system. In the 2019 Capital One breach, the attacker obtained cloud credentials tied to a role used by the company’s WAF and used them to read data from storage buckets. More than 100 million people in the US and Canada were affected, and the US Office of the Comptroller of the Currency fined Capital One $80 million in August 2020 for weaknesses in its cloud risk management.

If you want the full setup sequence for this mode, our reverse proxy WAF guide walks through it step by step. But a reverse proxy changes IP addressing. What if your network team won’t allow that?

Transparent Proxy WAF and Bridge Mode Explained

A transparent proxy WAF intercepts traffic in the path without changing the IP addresses that clients and servers use, so you can add it without touching DNS or application configuration. Bridge mode goes one layer lower and forwards Ethernet frames between two ports, which makes the WAF invisible at the IP level.

Both are inline WAF deployment options, so both can block. They are popular in data centers where the application’s IP address is hard-coded in partner allowlists, firewall rules or legacy clients.

On Linux, transparent interception is usually built on the kernel’s TPROXY feature, described in the Linux kernel transparent proxy documentation. It lets a proxy accept connections addressed to another host and still reply with that host’s address.

Transparent Proxy vs Layer 2 Bridge

A transparent proxy still terminates the TCP connection, even though nobody notices. A bridge, by contrast, passes frames through and reassembles HTTP for inspection without becoming a TCP endpoint. Bridge appliances often include hardware bypass network cards that physically connect the two ports if the box loses power.

You might be thinking that “transparent” means zero configuration. It doesn’t. To inspect HTTPS, a transparent or bridge WAF still needs the server’s certificate and private key, and with modern TLS it has to actively take part in the handshake rather than watch it.

That last point matters most for the mode that never touches live traffic at all.

Out-of-Band WAF Deployment and Its Hidden Limits

An out-of-band WAF deployment receives a copy of traffic from a switch SPAN port or a network TAP and analyzes it in parallel, so it adds zero latency but cannot block requests in real time. The best it can do is send TCP resets or tell another device to drop the session, and by then the request has usually reached the server.

Teams pick out-of-band mode for monitoring, for building a baseline before turning on blocking, or for very latency-sensitive systems where any inline hop is unacceptable. It is also a low-risk way to trial a new rule set against real traffic.

Why TLS 1.3 Breaks Passive Inspection

Here is what most people miss. Older passive WAFs decrypted HTTPS by loading the server’s RSA private key and replaying the key exchange. That trick depends on static RSA key exchange, and TLS 1.3 removed it.

“Static RSA and Diffie-Hellman cipher suites have been removed; all public-key based key exchange mechanisms now provide forward secrecy.”

RFC 8446, The Transport Layer Security (TLS) Protocol Version 1.3, IETF

CTLS 1.3 removes static RSA key exchange

With ephemeral key exchange, holding the private key is no longer enough to read the session. Government systems are already there. NIST SP 800-52 Rev. 2 required US federal agencies to support TLS 1.3 by 1 January 2024. If your out-of-band WAF still assumes it can decrypt passively, it may be inspecting nothing but handshakes.

There are two workable fixes. Decrypt upstream on a load balancer or proxy and mirror the cleartext to the WAF, or move the WAF inline where it terminates TLS itself.

Put all five modes next to each other and the pattern gets much clearer.

Inline vs Out-of-Band WAF Deployment Compared

Inline modes can block attacks before they reach the application, while out-of-band modes can only detect them, and that single difference drives most of the other trade-offs in the table below.

Mode Traffic Path Can Block? Network Changes TLS Handling Typical Fit
Reverse proxy Inline, WAF owns public IP Yes DNS or IP change Terminates TLS, re-encrypts to origin Internet-facing sites and APIs
Transparent proxy Inline, same IPs Yes Routing or policy change Needs keys, terminates TLS Data centers with fixed IPs
Layer 2 bridge Inline, frame forwarding Yes Cable insertion only Needs keys, active decryption Legacy networks, appliance racks
Out-of-band Mirrored copy No (alerts, resets) SPAN port or TAP Passive decryption fails with TLS 1.3 Monitoring and rule testing
Embedded / host-based Inside web server or sidecar Yes Software install Sees decrypted requests after server TLS Kubernetes, microservices

Inline is safer, yes, but an inline WAF that fails closed takes the application down with it. That is why the high availability design later in this guide matters as much as the mode itself.

Out-of-band also has a compliance angle. PCI DSS 6.4.2 accepts a solution configured to either block attacks or generate an alert that is immediately investigated, so a monitoring-only WAF can satisfy the requirement on paper. Whether a person can respond fast enough is another matter. The US Government Accountability Office report on Equifax describes attackers who exploited a known Apache Struts flaw in May 2017 and stayed in the network for 76 days, exposing data on about 145.5 million people. Detection without action did not help there.

Placement inside the network is only half the decision, though. The other half is where the WAF itself runs.

Cloud-Based WAF vs On-Premises WAF

A cloud-based WAF runs as a managed reverse proxy on a provider’s edge network and is enabled by changing DNS, while an on-premises WAF is an appliance, virtual machine or software package you run inside your own data center. Cloud WAFs win on speed of rollout and attack capacity, and on-premises WAFs win on control and internal traffic.

  • Cloud-based WAF: no hardware, managed rule updates, global capacity that absorbs volumetric floods when paired with DDoS protection, and pricing that scales with traffic.
  • On-premises WAF: full control of keys and logs, protection for internal and east-west traffic, and no third party in the data path, at the cost of patching, scaling and rule maintenance.
  • Hybrid: a cloud WAF for internet-facing apps plus an embedded or on-premises WAF for internal services and defense in depth.

Maintenance is the hidden cost of self-managed WAFs. Trustwave ended commercial support for ModSecurity on 1 July 2024, and the engine is now maintained as an OWASP project. Teams running it on premises now own their upgrade path. Patching speed is the other pressure point: the 2026 DBIR reports that the median time to fully fix known exploited vulnerabilities grew from 32 to 43 days, which is a long window to cover with WAF rules you write yourself.

The Origin Exposure Problem

A cloud-based WAF only protects traffic that goes through it. If an attacker can find the origin server‘s real IP address, they can send requests straight to it and skip the WAF entirely. Origin discovery is one of the oldest WAF bypass techniques for exactly that reason.

This is not a theoretical gap. Researchers from KU Leuven and Stony Brook University tested 17,877 websites protected by cloud security providers and found that 71.5% exposed their origin IP through at least one vector, such as old DNS records, subdomains or outbound email headers (ACM CCS 2015).

Cloud-based WAF bypass

When an On-Premises WAF Still Makes Sense

Choose on-premises when regulations keep decrypted traffic inside your own facilities, when the applications are internal and never cross the internet, or when you need inspection between internal services. Many teams also keep an on-premises or embedded WAF behind a cloud WAF so a single misconfiguration does not leave the origin open.

And for applications that live in containers, a third family of options is often the better fit.

Embedded and Host-Based WAF Deployment Methods

An embedded WAF runs inside the application stack itself, as a web server module, a sidecar container next to each pod or a plugin in an API gateway, so it inspects requests after TLS has already been decrypted by the server. No network redesign is needed.

Two open-source engines dominate this space. ModSecurity has long been loaded as a module in Apache and NGINX, and OWASP Coraza is a Go implementation that is compatible with the OWASP Core Rule Set and can be built into proxies such as Caddy and Envoy.

  • Upside: per-application rules, no single choke point and inspection that follows workloads as they scale.
  • Downside: the WAF shares CPU and memory with the application, every service needs its own updates, and an attack still reaches the host before it is stopped.

Embedded WAFs pair well with Kubernetes and service meshes, but they rarely replace an edge WAF. They add a second layer behind it.

Whatever the method, one question decides whether the WAF helps or hurts on a bad day: what happens when it fails?

WAF Deployment Architecture for High Availability

A highly available WAF deployment runs at least two WAF nodes in active-active mode behind health-checked load balancing or anycast routing, and it defines in advance whether each application should fail open or fail closed when the WAF layer is unhealthy.

Latency is the other half of availability. Google’s research on mobile sites found that 53% of mobile visits are abandoned when a page takes longer than three seconds to load, so a WAF hop that adds slow TLS handshakes or a distant inspection point has a direct cost. Cloud WAFs on an anycast network route each user to the nearest point of presence, which keeps that extra hop short.

  1. Run a minimum of two WAF nodes or zones, and size each one to carry full peak traffic alone.
  2. Put health checks on the WAF layer, not only on the origin, so a hung WAF process is removed from rotation.
  3. Decide fail-open or fail-closed per application. Payment and login flows usually fail closed. Public marketing pages can often fail open.
  4. Store WAF configuration as code and push it to every node from one pipeline so rule sets never drift.
  5. Test failover on a schedule by taking a node down during business hours, not only during an incident.

You might be thinking fail-open is always the wrong call. Yes, but a fail-closed WAF in front of a public website turns every WAF fault into a full outage. Match the failure mode to the business impact of each application instead of picking one rule for everything.

High availability also depends on something that quietly expires: certificates.

Managing SSL/TLS Inspection and Certificates Across Modes

Any WAF that inspects HTTPS must either terminate the TLS connection itself or receive traffic that has already been decrypted, so every deployment mode needs a plan for certificates, private keys and the encrypted hop back to the origin.

  • Reverse proxy and cloud WAF: the WAF holds a certificate for your domain, either uploaded by you or issued automatically, and re-encrypts traffic to the origin.
  • Transparent and bridge modes: the appliance needs the origin’s certificate and key and must actively participate in each TLS 1.3 handshake.
  • Out-of-band: needs cleartext mirrored from an upstream decryption point.
  • Embedded: inherits the web server’s TLS setup and inspects requests after decryption.

Certificate lifetimes are shrinking fast, which makes manual renewal on WAF nodes a real outage risk and is a strong argument for managed SSL/TLS certificates at the edge. Under CA/Browser Forum ballot SC-081, the maximum validity of public TLS certificates dropped to 200 days on 15 March 2026, falls to 100 days in March 2027 and reaches 47 days in March 2029. Automate issuance with the ACME protocol (RFC 8555) wherever the WAF terminates TLS.

With the mechanics covered, the decision itself becomes much simpler.

How to Choose the Right WAF Deployment Mode

Choose the WAF deployment mode by working through blocking needs, network constraints, TLS ownership and where your applications run, in that order. The first answer that rules a mode out saves you from evaluating it further.

  1. Do you need to block attacks, or only see them? If you need blocking, drop out-of-band from the shortlist for production protection.
  2. Can you change DNS or IP addressing? If yes, a reverse proxy or cloud-based WAF is usually the fastest path. If not, look at transparent proxy or bridge mode.
  3. Where do the applications live? Internet-facing apps suit a cloud WAF. Internal services and Kubernetes workloads suit embedded or on-premises WAFs.
  4. Who may hold your private keys? If policy forbids a third party from decrypting traffic, keep TLS termination on infrastructure you control.
  5. What are your compliance drivers? PCI DSS 6.4.2 requires automated detection and prevention for public-facing apps that handle card data, and the WAF must cover every one of them.
  6. How will it fail? Pick the mode whose failure behavior you can engineer around, then design the HA layer before go-live.

Most organizations end up with more than one answer. A typical result is a cloud reverse proxy at the edge for public sites and APIs, plus an embedded WAF for internal services.

Getting the mode right is step one. Keeping false positives low once it is live is where most deployments struggle.

WAF Deployment Best Practices That Reduce False Positives

The most reliable way to deploy a WAF without breaking legitimate traffic is to start in detection mode at a low sensitivity level, tune exclusions against real traffic, and only then switch to blocking. The OWASP CRS project is direct about it.

“When false positives occur they need to be tuned away.”

OWASP Core Rule Set documentation, Paranoia Levels

The CRS paranoia levels make the trade-off explicit. Level 1 is a baseline with very few false positives, level 2 suits sites handling real user data, and levels 3 and 4 catch more attacks while flagging far more legitimate requests.

  1. Deploy in log-only or detection mode first and collect at least one full business cycle of traffic.
  2. Start at paranoia level 1 with the default inbound anomaly threshold of 5.
  3. Write narrow exclusions for specific parameters or URLs instead of disabling whole rules.
  4. Switch to blocking for one application at a time, starting with the least critical.
  5. Raise the paranoia level only for applications that need it, such as payment or admin paths.
  6. Use virtual patching for urgent vulnerabilities while the code fix moves through release.

Virtual patching earned its reputation in December 2021, when Log4Shell (CVE-2021-44228) was rated 10.0, the maximum CVSS score. WAF rules blocking ${jndi: lookups went out within hours, but attackers quickly switched to obfuscated variants such as nested lookup expressions. The lesson for any WAF deployment is that rules buy time, and the patch still has to ship.

Insight: Review blocked requests weekly with the application owners. Most false positives come from a small number of fields, such as rich-text editors and JSON payloads, and fixing those few cases removes most of the noise.

Our WAF tuning guide covers exclusion syntax in more depth, and the breakdown of what a WAF false positive is helps when you need to explain blocked requests to developers. Tuned well, the same rules still catch attacks like blind SQL injection reliably.

Final Thought on WAF Deployment Modes

The best WAF deployment mode is the one that can actually stop an attack on your most exposed applications without becoming the weakest link itself. For most internet-facing workloads that means an inline reverse proxy, usually delivered from the cloud, with the origin locked down so nobody can go around it.

Treat the WAF as production infrastructure. Plan TLS ownership and certificate automation, build redundancy before go-live, and tune rules against real traffic before turning on blocking. A WAF in the right mode with careful tuning protects users and keeps pages fast, while a WAF in the wrong mode mostly produces a false sense of security.

Common Questions About WAF Deployment Modes

Can I run more than one WAF deployment mode at the same time?

Yes. Layering is common: a cloud-based WAF filters internet traffic at the edge, and an embedded or on-premises WAF inspects requests again close to the application. Keep rule sets aligned so the second layer is not silently blocking traffic the first layer allowed.

Does a WAF replace a network firewall?

No. A network firewall filters by IP address, port and protocol at Layers 3 and 4, while a WAF inspects HTTP and HTTPS content at Layer 7. Most architectures need both, with the network firewall in front of the origin allowing traffic only from the WAF.

Where should a WAF sit relative to a load balancer?

In most designs the WAF sits in front of the application load balancer so it inspects traffic before distribution. When a load balancer terminates TLS first, the WAF can sit behind it and inspect decrypted traffic, as long as the internal hop is protected.

Do I need to change DNS to deploy a cloud-based WAF?

Usually yes. You point your domain’s A or CNAME record, or the whole zone, to the WAF provider so traffic reaches its edge first. Lower the DNS TTL a day before the switch so you can roll back quickly if something breaks.

Can a WAF inspect WebSocket and API traffic?

A WAF inspects REST and GraphQL API requests like any other HTTP traffic, and many support schema-based rules for JSON. WebSocket inspection varies: some WAFs check only the initial upgrade request, so confirm message-level inspection with your provider if your application relies on WebSockets.