The NetworkPolicies are not applicable on the Port Forwarding feature.

Solution Verified - Updated -

Issue

  • Does oc port-forward command get affected by NetworkPolicies?
  • Denied traffic between projects by adding NetworkPolicies still connections can be established using oc port-forward command.
  • How to restrict users to use oc port-forward utility?

Environment

  • Red Hat OpenShift Container Platform 3.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content