Skip to content

bridge: Add option to enable port isolation - #1141

Merged
squeed merged 1 commit into
containernetworking:mainfrom
ormergi:bridge-port-isolation
Jan 29, 2025
Merged

squeed merged 1 commit into
containernetworking:mainfrom
ormergi:bridge-port-isolation

Conversation

@ormergi

@ormergi ormergi commented Jan 19, 2025 •

Copy link
Copy Markdown
Contributor

Enable bridge CNI plugin setting port-isolation [1] the interface. When port-isolation is enabled, containers connected to the network cannot communicate with each other over the linux-bridge. Communication will be enable depending on the gateway appliance according to its restrictions / policies.

For example: in a scenario the env connected to smart switch, enabling port-isolation ensure traffic will go outbound, allowing the smart-switch routing the traffic according to policies.

Add "portIsolation" flag to bridge plugin.
When true, configure the node interface with port-isolation [1]. Default is false.

Related Issue: #1135
cni.dev documentation PR containernetworking/cni.dev#145

[1] https://man7.org/linux/man-pages/man8/bridge.8.html (see "isolated" option)

@ormergi

ormergi commented Jan 19, 2025

Copy link
Copy Markdown
Contributor Author

/cc @SchSeba

Enable bridge CNI plugin setting port-isolation [1] the interface.
When port-isolation is enabled, containers connected to the network
cannot communicate with each other over the linux-bridge.
Communication will be enable depending on the gateway appliance according
to its restrictions / policies.

For example: in a scenario the env connected to smart switch, enabling
port-isolation ensure traffic will go outbound, allowing the
smart-switch routing the traffic according to policies.

Add "portIsolation" flag to bridge plugin.
When true, configure the node interface with port-isolation [1].
Default is false.

[1] https://man7.org/linux/man-pages/man8/bridge.8.html (see "isolated" option)

Signed-off-by: Or Mergi <ormergi@redhat.com>
@ormergi
ormergi force-pushed the bridge-port-isolation branch from 6f92d18 to b16ee47 Compare January 20, 2025 00:17
@squeed

squeed commented Jan 20, 2025

Copy link
Copy Markdown
Member

Looks good!

@EdDev

EdDev commented Jan 23, 2025 •

Copy link
Copy Markdown
Contributor

@squeed , the documentation has been merged but this one has not.
Is there a plan to merge it?

@squeed
squeed merged commit 7c122fa into containernetworking:main Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants