Repository navigation
allow published ports to be accessed by isolated networks - #1483
Merged
Merged
Conversation
Member
Author
|
/packit build |
mheon
reviewed
Jul 30, 2026
Member
|
LGTM |
Luap99
force-pushed
the
isolate-port
branch
2 times, most recently
from
July 31, 2026 10:19
45824db to
20acfb2
Compare
Currently the NETAVARK-ISOLATION-1 in FORWARDING drops all traffic from bridge A to B, however when bridge A reaches a port on the host that gets than forwarded to bridge B that also gets dropped. Isolate should only prevent direct connections. If the port is published on the host we should still allow that so services can be reached. The main issue is that we need a way to accept only that traffic before it reaches the isolation chain. To do so we add a custom mark to the conntrack entry in the dnat hit. Knowing that mark we can then accept the traffic for these conntrack connections in forwarding before jumping into the isolation chains. So anything not going through the dnat rule will not be accepted. Fixes: containers#709 Signed-off-by: Paul Holzinger <[email protected]>
Luap99
force-pushed
the
isolate-port
branch
5 times, most recently
from
July 31, 2026 15:34
64f6718 to
4aecb51
Compare
Member
Author
|
so I give up trying to enable sctp tests here as it is not directly related and turns out to be more than a simple package install #1484 I dropped the second commit, this should be good for merge I believe once CI passes. |
mheon
approved these changes
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently the NETAVARK-ISOLATION-1 in FORWARDING drops all traffic from bridge A to B, however when bridge A reaches a port on the host that gets than forwarded to bridge B that also gets dropped. Isolate should only prevent direct connections. If the port is published on the host we should still allow that so services can be reached.
The main issue is that we need a way to accept only that traffic before it reaches the isolation chain. To do so we add a custom mark to the conntrack entry in the dnat hit. Knowing that mark we can then accept the traffic for these conntrack connections in forwarding before jumping into the isolation chains. So anything not going through the dnat rule will not be accepted.
Fixes: #709