-
Notifications
You must be signed in to change notification settings - Fork 85
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
bridge: Allow configuring port isolation #1009
Comments
I think docker calls this inter container connectivity (icc) so this is definitely something we want to support in order to allow better compatibility. There isn't really anything pluggable which would allow you to set this automatically right now. So this would need to be implemented first. My thinking is to add a new cc @mheon |
Thanks for the response! Is there a way to hook into the network creation lifecycle with a shell script or something similar? I quickly tried looking at the plugin API, and tried putting a tiny shell script in |
netavark plugin are specified in https://github.com/containers/netavark/blob/main/plugin-API.md but this isn't really what you want. You would need to completely reimplement the entire bridge code basically and then add your extra change. There are oci hooks which would be more what you are looking for I think but there you have no relation between interface <-> container so you do not know which veth interface to pick. That is why I said it is a new feature that has to be implemented first. |
Concur with @Luap99 - seems like an eminently reasonable feature request, and not hard to implement, but will have to be in the existing bridge code. |
@eirikrye Were you able to get behavior equivalent to |
Adding the following to my unit files does the job for me.
You can set the bridge name using the |
Hello,
I am trying to create podman networks where containers cannot:
Setting the
bridge
optionisolate: true
solves the second item (L3).For the first item, I am able to disallow L2 communication by setting the
isolated on
(BR_ISOLATED
flag) option on all the bridge ports manually, e.g.:Is there a way to do this automatically, with netavark, as the bridge ports are created? Alternatively, if I am approaching this issue from the wrong end, is there a better way to achieve what I am looking for?
Also, the bridge driver source code references a possible
strict
value for theisolate
option, however I am unable to find any documentation as to what this does, exactly. EDIT: It appears to also restrict access to bridges without any isolation set.The text was updated successfully, but these errors were encountered: