# US 2021/0176212 A1 · Firewall in a virtualized computing environment using physical network interface controller (pnic) level firewall rules

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

- Number: US 2021/0176212 A1
- Document ID: US20210176212A1
- Status: Published application
- Kind: A1
- Application number: 17/180,606
- Filed: 2021-02-19
- Published: 2021-06-10
- Earliest claimed: 2016-02-23
- Assignees: Nicira, Inc.
- Applicants: Nicira, Inc.
- Inventors: Donghai Han
- Web page: https://patentgrep.com/patent/US20210176212A1

## CPC

- H04L 63/0263: {Rule management}
- H04L 63/0227: {Filtering policies (mail message filtering H04L51/212)}
- H04L 63/0236: {Filtering by address, protocol, port number or service, e.g. IP-address or URL}
- H04L 63/0254: {Stateful filtering}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Example methods are provided for a destination host to implement a firewall in a virtualized computing environment that includes the destination host and a source host. The method may comprise receiving, via a physical network interface controller (PNIC) of the destination host, an ingress packet sent by the source host. The ingress packet may be destined for a destination virtualized computing instance that is supported by the destination host and associated with a destination virtual network interface controller (VNIC). The method may further comprise retrieving a PNIC-level firewall rule associated with the destination virtualized computing instance, the PNIC-level firewall rule being applicable at the PNIC and generated by based on a VNIC-level firewall rule applicable at the destination VNIC. In response to determination that the PNIC-level firewall rule blocks the ingress packet from passing through, the ingress packet may be dropped such that the ingress packet is not sent to the destination VNIC.

## Claims

### Claim at position 1

1-18. (canceled)

### Claim 19

A method for a first host computer to implement a firewall in a network that includes first and second host computers, the method comprising:
at the first host computer:
aggregating a plurality of firewall rules associated with a plurality of virtual network interface controllers (VNICs) for a plurality of machines executing on the first host, in order to generate a set of firewall rules for a physical network interface controller (PNIC) of the first host;
receiving a packet sent from the second host that is destined to a first machine executing on the first host and associated with first VNIC;
identifying a PNIC-level firewall rule that matches the received packet and that requires dropping any packet that matches the identified rule;
dropping the packet before the packet is sent to the first VNIC.

### Claim 20 (depends on 19)

The method of claim 19, wherein the set of firewall rules are examined for packets received at the PNIC.

### Claim 21 (depends on 19)

The method of claim 19, wherein the received packet matches the identified PNIC-level firewall rule because the first machine is the destination of the received packet.

### Claim 22 (depends on 21)

The method of claim 21, wherein the received packet matches the identified PNIC-level firewall rule further because the second machine is the source of the received packet.

### Claim 23 (depends on 21)

The method of claim 21, wherein generating the PNIC-level firewall rule comprises:
analyzing a first VNIC-level firewall rule applicable at the first VNIC and a second VNIC-level firewall rule application at a second VNIC associated with a second machine executing on the first host computer, in order to identify one or more combinable packet fields; and
based on the one or more combinable packet fields, combining the first and second VNIC-level firewall rules to generate a PNIC-level firewall rule.

### Claim 24 (depends on 23)

The method of claim 23, wherein the packet fields include one or more of: source Internet Protocol (IP) address, source port number, destination IP address, destination protocol number, protocol and action.

### Claim 25 (depends on 19)

The method of claim 19, wherein the first host computer implements a distributed firewall engine that is configurable by a firewall controller and the method further comprises:
in response to receiving a control message from the firewall controller, configuring the firewall engine to apply the PNIC-level firewall rules at the PNIC instead of applying the VNIC-level firewall rules at the VNICs.

### Claim 26 (depends on 25)

The method of claim 25, wherein the firewall controller aggregates the plurality VNIC-level firewall rules to produce the PNIC-level firewall rules.

### Claim 27 (depends on 19)

The method of claim 19 further comprising:
at the first host computer:
identifying a first firewall rule that is applicable to an ingress packet to the first machine from a second machine executing on a second host computer;
based on the first firewall rule, generating a second firewall rule that is applicable at the second host to egress packets destined to the first machine from the second machine; and
instructing the second host to apply the second firewall rule to egress packets from the second machine to the first machine.

### Claim 28 (depends on 27)

The method of claim 27, wherein the first host computer implements a firewall engine configurable by a firewall controller, and prior to the identifying the first firewall rule, the method further comprises:
receiving, from the firewall engine of the first host, a report message reporting the first host computer applies the first firewall rule to block ingress packets from a source network address associated with the second machine; and
based on the source network address, identifying the second host computer to receive the second firewall rule.

### Claim 29

A non-transitory machine readable medium storing a program for execution by at least one processing unit of a first host computer to implement a firewall in a network that includes first and second host computers, the program comprising sets of instructions for:
aggregating a plurality of firewall rules associated with a plurality of virtual network interface controllers (VNICs) for a plurality of machines executing on the first host, in order to generate a set of firewall rules for a physical network interface controller (PNIC) of the first host;
receiving a packet sent from the second host that is destined to a first machine executing on the first host and associated with first VNIC;
identifying a PNIC-level firewall rule that matches the received packet and that requires dropping any packet that matches the identified rule;
dropping the packet before the packet is sent to the first VNIC.

### Claim 30 (depends on 29)

The non-transitory machine readable medium of claim 29, wherein the set of firewall rules are examined for packets received at the PNIC.

### Claim 31 (depends on 29)

The non-transitory machine readable medium of claim 29, wherein the received packet matches the identified PNIC-level firewall rule because the first machine is the destination of the received packet.

### Claim 32 (depends on 31)

The non-transitory machine readable medium of claim 31, wherein the received packet matches the identified PNIC-level firewall rule further because the second machine is the source of the received packet.

### Claim 33 (depends on 31)

The non-transitory machine readable medium of claim 31, wherein the set of instructions for generating the PNIC-level firewall rule comprises sets of instructions for:
analyzing a first VNIC-level firewall rule applicable at the first VNIC and a second VNIC-level firewall rule application at a second VNIC associated with a second machine executing on the first host computer, in order to identify one or more combinable packet fields; and
based on the one or more combinable packet fields, combining the first and second VNIC-level firewall rules to generate a PNIC-level firewall rule.

### Claim 34 (depends on 33)

The non-transitory machine readable medium of claim 33, wherein the packet fields include one or more of: source Internet Protocol (IP) address, source port number, destination IP address, destination protocol number, protocol and action.

### Claim 35 (depends on 29)

The non-transitory machine readable medium of claim 29, wherein the first host computer implements a distributed firewall engine that is configurable by a firewall controller and the program further comprises a set of instructions for:
in response to receiving a control message from the firewall controller, configuring the firewall engine to apply the PNIC-level firewall rules at the PNIC instead of applying the VNIC-level firewall rules at the VNICs.

### Claim 36 (depends on 35)

The non-transitory machine readable medium of claim 35, wherein the firewall controller aggregates the plurality VNIC-level firewall rules to produce the PNIC-level firewall rules.

### Claim 37 (depends on 29)

The non-transitory machine readable medium of claim 29, wherein the program further comprises sets of instructions for:
identifying a first firewall rule that is applicable to an ingress packet to the first machine from a second machine executing on a second host computer;
based on the first firewall rule, generating a second firewall rule that is applicable at the second host to egress packets destined to the first machine from the second machine; and
instructing the second host to apply the second firewall rule to egress packets from the second machine to the first machine.

### Claim 38 (depends on 37)

The non-transitory machine readable medium of claim 37, wherein the first host computer implements a firewall engine configurable by a firewall controller, and prior to the identifying the first firewall rule, the program further comprises sets of instructions for:
receiving, from the firewall engine of the first host, a report message reporting the first host computer applies the first firewall rule to block ingress packets from a source network address associated with the second machine; and
based on the source network address, identifying the second host computer to receive the second firewall rule.
