use native networkmanager option for enabling clat
This commit is contained in:
@@ -14,14 +14,12 @@
|
|||||||
networking.networkmanager.package = pkgs.networkmanager-clat;
|
networking.networkmanager.package = pkgs.networkmanager-clat;
|
||||||
|
|
||||||
# Drop a conf.d snippet that sets connection-level defaults.
|
# Drop a conf.d snippet that sets connection-level defaults.
|
||||||
# NM reads /etc/NetworkManager/conf.d/*.conf in addition to NetworkManager.conf.
|
networking.networkmanager.settings.connection = {
|
||||||
environment.etc."NetworkManager/conf.d/99-ipv6-mostly.conf".text = ''
|
|
||||||
# IPv6-mostly: automatically enable CLAT (464XLAT) and DHCPv4 option 108
|
# IPv6-mostly: automatically enable CLAT (464XLAT) and DHCPv4 option 108
|
||||||
# when the network advertises PREF64 and/or option 108 (RFC 8925).
|
# when the network advertises PREF64 and/or option 108 (RFC 8925).
|
||||||
# On networks without these, behaviour is unchanged (native IPv4 proceeds).
|
# On networks without these, behaviour is unchanged (native IPv4 proceeds).
|
||||||
[connection-defaults]
|
"ipv4.clat" = "auto";
|
||||||
ipv4.clat=auto
|
"ipv4.dhcp-ipv6-only-preferred" = "auto";
|
||||||
ipv4.dhcp-ipv6-only-preferred=auto
|
};
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user