# US 2025/0097197 A1 · Supporting zone-based policy enforcement for a firewall connected to a one-arm load balancer

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0097197 A1
- Document ID: US20250097197A1
- Status: Published application
- Kind: A1
- Application number: 18/960,853
- Filed: 2024-11-26
- Published: 2025-03-20
- Earliest claimed: 2021-09-16
- Assignees: Palo Alto Networks, Inc.
- Applicants: Palo Alto Networks, Inc.
- Inventors: Charles Bransi; Steven Alsop
- Web page: https://patentgrep.com/patent/US20250097197A1

## CPC

- H04L 63/0236: {Filtering by address, protocol, port number or service, e.g. IP-address or URL}
- H04L 45/74: Address processing for routing
- H04L 63/205: {involving negotiation or determination of the one or more network security mechanisms to be used, e.g. by negotiation between the client and the server or between peers or by selection according to the capabilities of the entities involved (negotiation of communication capabilities H04L69/24)}
- H04L 2212/00: Encapsulation of packets
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A virtual firewall configured with two interfaces assigned different security zones switches between Layer 3 routing and bump-in-the-wire (BITW) modes between sessions. After receiving a packet from a one-arm load balancer, an inner header is determined based on decapsulation which removes an outer header. A route lookup is performed based on the inner header to determine whether to communicate packets of the session with Layer 3 routing or according to the BITW model. The result of the route lookup indicates an egress interface. If the ingress and egress interfaces are the same, the firewall operates according to the BITW model for the session. If the egress and ingress interfaces are different, the firewall routes packets of the session with Layer 3 routing. Upon detection of subsequent packets, the firewall operates according to the determined mode for the session without performing additional inner header route lookups for operation mode determination.

## Claims

### Claim 1

A method comprising:
detecting a first packet corresponding to a first session on a first interface of a firewall comprising the first interface and a second interface, wherein the first and second interfaces are assigned to different zones;
determining a destination zone of the first packet based on a destination address identified in an inner header of the first packet based on decapsulating the first packet;
determining a mode of deployment of the firewall for the first session based on determining if the destination zone is the same as a source zone of the first packet;
based on determining that the source and destination zones are the same, egressing the first packet on the first interface;
based on determining that the source and destination zones are different, egressing the first packet on the second interface; and
communicating subsequent packets of the first session according to the determined mode of deployment of the firewall for the first session.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the mode of deployment of the firewall for the first session comprises determining that the mode of deployment is bump-in-the-wire mode based on determining that the destination zone is the same as the source zone, and wherein communicating the subsequent packets of the first session according to the determined mode of deployment of the firewall comprises communicating the subsequent packets of the session according to bump-in-the-wire mode.

### Claim 3 (depends on 2)

The method of claim 2, wherein egressing the first packet on the first interface comprises egressing the first packet that is re-encapsulated on the first interface.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining the mode of deployment of the firewall for the first session comprises determining that the mode of deployment is Layer 3 routing mode based on determining that the destination zone is different from the source zone, and wherein communicating the subsequent packets of the first session according to the determined mode of deployment of the firewall comprises communicating the subsequent packets of the session according to Layer 3 routing mode.

### Claim 5 (depends on 4)

The method of claim 4, further comprising performing network address translation on a source address identified in the inner header of the first packet.

### Claim 6 (depends on 1)

The method of claim 1, further comprising performing a route lookup for the destination address, wherein determining the destination zone of the first packet comprises determining the destination zone based on a result of the route lookup.

### Claim 7 (depends on 1)

The method of claim 1, further comprising applying to the first packet and the subsequent packets of the first session a zone-based firewall policy that corresponds to the mode of deployment of the firewall determined for the first session.

### Claim 8 (depends on 1)

The method of claim 1, further comprising,
detecting a second packet corresponding to a second session on the first interface of the firewall, wherein the second session is different from the first session;
determining a mode of deployment of the firewall for the second session based on determining if a destination zone of the second packet is the same as a source zone of the second packet, wherein the determined mode of deployment for the second session of the firewall is different from the determined mode of deployment of the firewall for the first session; and
communicating the second packet and the subsequent packets of the second session according to the determined mode of deployment of the firewall for the second session.

### Claim 9 (depends on 1)

The method of claim 1, wherein an outer header of the first packet comprises a Generic Network Virtualization Encapsulation (GENEVE) header, and wherein the inner header comprises an Internet Protocol (IP) header.

### Claim 10 (depends on 1)

The method of claim 1, further comprising configuring the first interface as a bump-in-the-wire interface and configuring the second interface as a Layer 3 interface.

### Claim 11

One or more non-transitory machine-readable media having instructions stored thereon, the instructions comprising program code to:
detect a packet corresponding to a first session on a first interface of a firewall comprising the first interface and a second interface, wherein the first and second interfaces are assigned to different zones;
determine a destination zone of the packet based on a destination address identified in an inner header of the packet exposed from decapsulation of the packet;
determine whether the packet is traveling within a same zone or between different zones based on the destination zone of the packet;
based on a determination that the packet is traveling within the same zone, egress the packet on the first interface and communicate subsequent packets of the first session according to a first mode of firewall deployment; and
based on a determination that the packet is traveling between different zones, egress the packet on the second interface and communicate subsequent packets of the first session according to a second mode of firewall deployment, wherein the second mode of firewall deployment differs from the first mode of firewall deployment.

### Claim 12 (depends on 11)

The non-transitory machine-readable media of claim 11, wherein the first mode of firewall deployment is a bump-in-the-wire mode of deployment, and wherein instructions to egress the packet on the first interface comprise instructions to egress the packet re-encapsulated with an outer header on the first interface, wherein the outer header was removed from decapsulation of the packet.

### Claim 13 (depends on 11)

The non-transitory machine-readable media of claim 11, wherein the first mode of firewall deployment is a Layer 3 routing mode of deployment, and wherein the program code further comprises instructions to perform network address translation for a source address identified in the inner header of the packet.

### Claim 14

An apparatus comprising:
a processor; and
a computer-readable medium having instructions stored thereon that are executable by the processor to cause the apparatus to,
detect a packet corresponding to a first session on a first interface of a firewall comprising the first interface and a second interface, wherein the first and second interfaces are assigned to different zones;
determine a destination zone of the packet based on a destination address identified in an inner header of the packet exposed based on decapsulation of the packet;
determine if the destination zone is the same as a source zone of the packet;
based on a determination that the source and destination zones are the same, egress the packet on the first interface and associate an indication of a first mode of firewall deployment with the first session;
based on a determination that the source and destination zones are different, egress the packet on the second interface and associate an indication of a second mode of firewall deployment with the first session; and
communicate subsequent packets of the first session according to a mode of firewall deployment associated with the first session, wherein the mode of firewall deployment comprises the first or second mode of firewall deployment.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the first mode of firewall deployment comprises a bump-in-the-wire mode of firewall deployment, wherein the instructions executable by the processor to cause the apparatus to associate the indication of the first mode of firewall deployment with the first session comprise instructions to associate an indication of the bump-in-the-wire mode of deployment with the first session.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the instructions executable by the processor to cause the apparatus to egress the packet on the first interface comprise instructions executable by the processor to cause the apparatus to egress the packet that is re-encapsulated on the first interface.

### Claim 17 (depends on 14)

The apparatus of claim 14, wherein the second mode of firewall deployment comprises a Layer 3 routing mode of firewall deployment, and wherein the instructions executable by the processor to cause the apparatus to associate the indication of the second mode of firewall deployment with the first session comprise instructions to associate an indication of the Layer 3 routing mode of deployment with the first session.

### Claim 18 (depends on 17)

The apparatus of claim 17, further comprising instructions executable by the processor to cause the apparatus to perform network address translation on a source address identified in the inner header of the packet.

### Claim 19 (depends on 14)

The apparatus of claim 14, further comprising instructions executable by the processor to cause the apparatus to,
detect an additional packet corresponding to a second session on the first interface of the firewall, wherein the second session is different from the first session;
determine whether to operate in the first mode of firewall deployment or the second mode of firewall deployment for the second session based on a determination of whether a destination zone of the additional packet is the same as a source zone of the additional packet; and
communicate the additional packet and subsequent packets of the second session according to the one of the first and second modes of firewall deployment determined for the second session.

### Claim 20 (depends on 14)

The apparatus of claim 14, wherein the first interface is configured as a bump-in-the-wire interface, and wherein the second interface is configured as a Layer 3 interface.
