Skip to content

Commit

Permalink
network: bridge: don't change forwarding sysctl for internal bridges
Browse files Browse the repository at this point in the history
That's simplfy not neccessary, because the whole point of internal
networks is to not have any forwardings or firewall rules.

Signed-off-by: Michael Zimmermann <[email protected]>
  • Loading branch information
M1cha committed Nov 19, 2024
1 parent 4dae6d0 commit 2900e92
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/network/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,11 @@ impl driver::NetworkDriver for Bridge<'_> {
);

if let BridgeMode::Managed = data.mode {
setup_ipv4_fw_sysctl()?;
if data.ipam.ipv6_enabled {
setup_ipv6_fw_sysctl()?;
if !self.info.network.internal {
setup_ipv4_fw_sysctl()?;
if data.ipam.ipv6_enabled {
setup_ipv6_fw_sysctl()?;
}
}
}

Expand Down

0 comments on commit 2900e92

Please sign in to comment.