1
0

modules/dhcpcd-prefixdelegation: Add dhcpcd module specifically for prefixdelegation

This commit is contained in:
2024-09-05 12:46:09 +02:00
parent 954c033e06
commit e96d95dd0a
3 changed files with 158 additions and 16 deletions

View File

@@ -57,22 +57,19 @@
ip46tables -t mangle -A forward-mangle -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1416
'';
networking.interfaces.net-heimnetz.useDHCP = true;
networking.dhcpcd = {
enable = false;
allowInterfaces = [
"net-heimnetz"
"ppp-dtagdsl"
];
wait = "ipv6";
extraConfig = ''
ipv6only
noipv6rs
interface ppp-dtagdsl
ipv6rs
ia_pd 1/::/56 net-heimnetz/201/64
'';
networking.dhcpcd-prefixdelegation = {
enable = true;
interfaces = {
"ppp-dtagdsl" = {
iaid = 1;
interfaces = {
"net-heimnetz" = {
sla_id = 201;
prefix_len = 64;
};
};
};
};
};
environment.etc."ppp/ipv6-up" = {