Skip to content

containers: fix networking when nftables is activated #241

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

Merged
merged 1 commit into from
Apr 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/containers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ in
useIPTables = !config.networking.nftables.enable;
in lib.mkIf cfgd.recommendedDefaults {
fixed-cidr-v6 = "fd00::/80"; # TODO: is this a good idea for all networks?
iptables = useIPTables;
ip6tables = useIPTables;
iptables = lib.mkIf useIPTables true;
ip6tables = lib.mkIf useIPTables true;
ipv6 = true;
# userland proxy is slow, does not give back ports and if iptables/nftables is available it is just worse
userland-proxy = false;
userland-proxy = lib.mkIf useIPTables false;
};

autoPrune = lib.mkIf cfgd.aggressiveAutoPrune {
Expand Down