-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for bridge mode #24677
Add support for bridge mode #24677
Conversation
Signed-off-by: Michael Zimmermann <[email protected]>
@Luap99 PTAL |
@@ -118,6 +126,9 @@ Additionally the `bridge` driver supports the following options: | |||
- `com.docker.network.bridge.name`: This option assigns the given name to the created Linux Bridge | |||
- `com.docker.network.driver.mtu`: Sets the Maximum Transmission Unit (MTU) and takes an integer value. | |||
- `vrf`: This option assigns a VRF to the bridge interface. It accepts the name of the VRF and defaults to none. Can only be used with the Netavark network backend. | |||
- `mode`: This option sets the specified bridge mode on the interface. Defaults to `managed`. Supported values: | |||
- `managed`: Podman creates and deleted the bridge. It will also setup sysctls and firewall rules for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/deletes/deleted if you repush
/approve |
Docs changes LGTM |
@@ -118,6 +126,9 @@ Additionally the `bridge` driver supports the following options: | |||
- `com.docker.network.bridge.name`: This option assigns the given name to the created Linux Bridge | |||
- `com.docker.network.driver.mtu`: Sets the Maximum Transmission Unit (MTU) and takes an integer value. | |||
- `vrf`: This option assigns a VRF to the bridge interface. It accepts the name of the VRF and defaults to none. Can only be used with the Netavark network backend. | |||
- `mode`: This option sets the specified bridge mode on the interface. Defaults to `managed`. Supported values: | |||
- `managed`: Podman creates and deleted the bridge. It will also setup sysctls and firewall rules for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add that the firewall rules are added to MASQUERADE/NAT the traffic and for port forwarding DNAT rules are added. And then in the unmanaged case make clear no firewall rules are added which means no DNAT rules for port forwarding as well which might surprise users if they add ports but they don't work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea. added.
Signed-off-by: Michael Zimmermann <[email protected]>
This goes into more detail about what this option actually does. Signed-off-by: Michael Zimmermann <[email protected]>
162bf15
to
e608874
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thanks
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: baude, Luap99, M1cha The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Cockpit tests failed for commit e608874. @martinpitt, @jelly, @mvollmer please check. |
0cfe47b
into
containers:main
This simply updates
common
, as there is nothing to do from the podman side. I added documentation for this new option and improved the--internal
documentation.Related:
mode
option for bridge common#2247Does this PR introduce a user-facing change?