Kubernetes NetworkPolicy - is this a stateful firewall?
Asked Answered
E

1

6

Is NetworkPolicy a stateful firewall?

For example, if I allow ingress from a certain IPs on certain ports, is the return traffic automatically allowed on ephemeral? Ditto for allowed egress.

How does this play with a default block policy in place?

Are there any other considerations here?

Excellent answered 22/3, 2021 at 9:40 Comment(0)
D
7

NetworkPolicy is stateful and will allow an established connection to communicate both ways.

Duplex answered 22/3, 2021 at 9:52 Comment(2)
+Shai Katz, thanks. Could you please provide any references documenting that?Excellent
@IlyaAyzenshtok Take a look at github.com/networkpolicy/….Cooks

© 2022 - 2024 — McMap. All rights reserved.