# US 2024/0187378 A1 · Techniques for applying a named port security policy

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

- Number: US 2024/0187378 A1
- Document ID: US20240187378A1
- Status: Published application
- Kind: A1
- Application number: 18/099,710
- Filed: 2023-01-20
- Published: 2024-06-06
- Earliest claimed: 2022-12-01
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Xie Zheng
- Web page: https://patentgrep.com/patent/US20240187378A1

## CPC

- H04L 63/0263: {Rule management}
- H04L 63/20: {for managing network security; network security policies in general (filtering policies H04L63/0227)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The disclosure provides an example method for implementing a network policy in a software defined networking environment. The method generally includes receiving a manifest defining a plurality of pods, wherein: for a first pod, the manifest defines a first environment value, a first port number for a first container of the first pod, and a name for the first port number; for a second pod, the manifest defines the first environment value, a second port number for a second container of the second pod, and the name for the second port number; and the manifest defines a security policy applied to a third pod which defines a first egress policy indicating the first environment value and the name; and creating, based on the manifest indicating different port numbers, but the same name, for the different containers of the different pods, separate egress firewall rules for the first and second pods.

## Claims

### Claim 1

A method for implementing a network policy in a software defined networking (SDN) environment, comprising:
receiving a manifest defining a plurality of pods in a namespace, wherein:
for a first pod, the manifest defines a first environment value for an environment of the first pod, a first port number for a first container of the first pod, and a name for the first port number defined for the first container of the first pod;
for a second pod, the manifest defines the first environment value for an environment of the second pod, a second port number for a second container of the second pod, and the name for the second port number defined for the second container of the second pod; and
the manifest defines a security policy applied to a third pod, the security policy defining a first egress policy indicating the first environment value and the name;
creating, based on the manifest indicating that the first port number is different than the second port number and that the first port number and the second port number share the name, separate egress firewall rules for the first pod and the second pod, the separate egress firewall rules comprising:
a first egress firewall rule to apply to packets with the third pod as a source, the first pod as a destination, and the first port number as a destination port; and
a second egress firewall rule to apply to packets with the third pod as a source, the second pod as a destination, and the second port number as a destination port; and
configuring a firewall with the first egress firewall rule and the second egress firewall rule.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
for a fourth pod, the manifest defines the first environment value for an environment of the fourth pod, the first port number for a fourth container of the fourth pod, and the name for the first port number defined for the fourth container of the fourth pod; and
the first egress firewall rule is further defined to apply to packets with the fourth pod as a destination.

### Claim 3 (depends on 1)

The method of claim 1, wherein configuring the firewall comprises configuring a virtual switch in a communication path of at least one of the first pod, the second pod, or the third pod.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
for the third pod, the manifest defines a second environment value for an environment of the third pod, the second port number for a third container of the third pod, and the name for the second port number defined for the third container of the third pod;
the security policy defines a first ingress policy indicating the first environment value and the name, and further comprising:
creating, based on the first ingress policy, a first ingress firewall rule to apply to packets with the first pod as a source, the third pod as a destination, and the second port number as a destination port, wherein the first ingress firewall rule is further configured to apply to packets with the second pod as a source, the third pod as a destination, and the second port number as a destination port.

### Claim 5 (depends on 4)

The method of claim 4, wherein the security policy is further applied to a fourth pod, wherein, for the fourth pod, the manifest defines the second environment value for the environment of the fourth pod, a third port number for a fourth container of the fourth pod, and the name for the third port number defined for the fourth container of the fourth pod, and further comprising:
creating, based on the first ingress policy, a second ingress firewall rule to apply to packets with the first pod as a source, the fourth pod as a destination, and the third port number as a destination port, wherein the second ingress firewall rule is further configured to apply to packets with the second pod as a source, the fourth pod as a destination, and the third port number as a destination port.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first pod is running in a first virtual machine.

### Claim 7 (depends on 1)

The method of claim 1, wherein configuring the firewall comprises configuring a virtual network interface card in a communication path of at least one of the first pod, the second pod, or the third pod.

### Claim 8

A system comprising:
one or more processors; and
at least one memory, the one or more processors and the at least one memory configured to:
receive a manifest defining a plurality of pods in a namespace, wherein:
for a first pod, the manifest defines a first environment value for an environment of the first pod, a first port number for a first container of the first pod, and a name for the first port number defined for the first container of the first pod;
for a second pod, the manifest defines the first environment value for an environment of the second pod, a second port number for a second container of the second pod, and the name for the second port number defined for the second container of the second pod; and
the manifest defines a security policy applied to a third pod, the security policy defining a first egress policy indicating the first environment value and the name;
create, based on the manifest indicating that the first port number is different than the second port number and that the first port number and the second port number share the name, separate egress firewall rules for the first pod and the second pod, the separate egress firewall rules comprising:
a first egress firewall rule to apply to packets with the third pod as a source, the first pod as a destination, and the first port number as a destination port; and
a second egress firewall rule to apply to packets with the third pod as a source, the second pod as a destination, and the second port number as a destination port; and
configure a firewall with the first egress firewall rule and the second egress firewall rule.

### Claim 9 (depends on 8)

The system of claim 8, wherein:
for a fourth pod, the manifest defines the first environment value for an environment of the fourth pod, the first port number for a fourth container of the fourth pod, and the name for the first port number defined for the fourth container of the fourth pod; and
the first egress firewall rule is further defined to apply to packets with the fourth pod as a destination.

### Claim 10 (depends on 8)

The system of claim 8, wherein to configure the firewall comprises to configure a virtual switch in a communication path of at least one of the first pod, the second pod, or the third pod.

### Claim 11 (depends on 8)

The system of claim 8, wherein:
for the third pod, the manifest defines a second environment value for an environment of the third pod, the second port number for a third container of the third pod, and the name for the second port number defined for the third container of the third pod;
the security policy defines a first ingress policy indicating the first environment value and the name, and the one or more processors and the at least one memory are further configured to:
create, based on the first ingress policy, a first ingress firewall rule to apply to packets with the first pod as a source, the third pod as a destination, and the second port number as a destination port, wherein the first ingress firewall rule is further configured to apply to packets with the second pod as a source, the third pod as a destination, and the second port number as a destination port.

### Claim 12 (depends on 11)

The system of claim 11, wherein the security policy is further applied to a fourth pod, wherein, for the fourth pod, the manifest defines the second environment value for the environment of the fourth pod, a third port number for a fourth container of the fourth pod, and the name for the third port number defined for the fourth container of the fourth pod, and the one or more processors and the at least one memory are further configured to:
create, based on the first ingress policy, a second ingress firewall rule to apply to packets with the first pod as a source, the fourth pod as a destination, and the third port number as a destination port, wherein the second ingress firewall rule is further configured to apply to packets with the second pod as a source, the fourth pod as a destination, and the third port number as a destination port.

### Claim 13 (depends on 8)

The system of claim 8, wherein the first pod is running in a first virtual machine.

### Claim 14 (depends on 8)

The system of claim 8, wherein to configure the firewall comprises to configure a virtual network interface card in a communication path of at least one of the first pod, the second pod, or the third pod.

### Claim 15

A non-transitory computer-readable medium comprising instructions that, when executed by one or more processors of a computing system, cause the computing system to perform operations for implementing a network policy in a software defined networking (SDN) environment, the operations comprising:
receiving a manifest defining a plurality of pods in a namespace, wherein:
for a first pod, the manifest defines a first environment value for an environment of the first pod, a first port number for a first container of the first pod, and a name for the first port number defined for the first container of the first pod;
for a second pod, the manifest defines the first environment value for an environment of the second pod, a second port number for a second container of the second pod, and the name for the second port number defined for the second container of the second pod; and
the manifest defines a security policy applied to a third pod, the security policy defining a first egress policy indicating the first environment value and the name;
creating, based on the manifest indicating that the first port number is different than the second port number and that the first port number and the second port number share the name, separate egress firewall rules for the first pod and the second pod, the separate egress firewall rules comprising:
a first egress firewall rule to apply to packets with the third pod as a source, the first pod as a destination, and the first port number as a destination port; and
a second egress firewall rule to apply to packets with the third pod as a source, the second pod as a destination, and the second port number as a destination port; and
configuring a firewall with the first egress firewall rule and the second egress firewall rule.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein:
for a fourth pod, the manifest defines the first environment value for an environment of the fourth pod, the first port number for a fourth container of the fourth pod, and the name for the first port number defined for the fourth container of the fourth pod; and
the first egress firewall rule is further defined to apply to packets with the fourth pod as a destination.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein configuring the firewall comprises configuring a virtual switch in a communication path of at least one of the first pod, the second pod, or the third pod.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein:
for the third pod, the manifest defines a second environment value for an environment of the third pod, the second port number for a third container of the third pod, and the name for the second port number defined for the third container of the third pod;
the security policy defines a first ingress policy indicating the first environment value and the name, and further comprising:
creating, based on the first ingress policy, a first ingress firewall rule to apply to packets with the first pod as a source, the third pod as a destination, and the second port number as a destination port, wherein the first ingress firewall rule is further configured to apply to packets with the second pod as a source, the third pod as a destination, and the second port number as a destination port.

### Claim 19 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the security policy is further applied to a fourth pod, wherein, for the fourth pod, the manifest defines the second environment value for the environment of the fourth pod, a third port number for a fourth container of the fourth pod, and the name for the third port number defined for the fourth container of the fourth pod, and further comprising:
creating, based on the first ingress policy, a second ingress firewall rule to apply to packets with the first pod as a source, the fourth pod as a destination, and the third port number as a destination port, wherein the second ingress firewall rule is further configured to apply to packets with the second pod as a source, the fourth pod as a destination, and the third port number as a destination port.

### Claim 20 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the first pod is running in a first virtual machine.
