| 2 Jun 2025 |
hexa | have you thought about using a proper service to achieve that? | 00:01:57 |
hexa | do you need radv or dhcpv6? | 00:02:08 |
hexa | and if you need dhcpv6 ... why? | 00:02:18 |
Charles | is dnsmasq not a reasonable choice for this? | 00:02:59 |
Charles | i basically have no idea what i'm doing, as usual | 00:03:40 |
Charles | as much as i try reading about this stuff none of it makes any sense to me somehow | 00:03:49 |
hexa | it is the … i have no choice, I can only use dnsmasq … choice | 00:03:54 |
hexa | e.g. with openwrt | 00:04:05 |
hexa | if you have no idea you probably want router advertisements | 00:04:21 |
Charles | yeah maybe i should just give up and install openwrt | 00:04:26 |
hexa | what does the rest of your setup look like? | 00:04:35 |
hexa | where does your ipv6 come from? | 00:04:40 |
Charles | ISP <-> modem <-> NixOS router <-> client devices | 00:05:05 |
hexa | ok, so your nixos router has a WAN and LAN side | 00:05:36 |
Charles | indeed | 00:05:44 |
hexa | and you probably have a dynamic allocation of IP addresses | 00:06:04 |
Charles | https://gitlab.computer.surgery/charles/servy-fleet/-/blob/charles/dnsmasq/nix/nixos-configuration/green/router/default.nix?ref_type=heads#L155 | 00:07:07 |
hexa | https://gitlab.computer.surgery/charles/servy-fleet/-/blob/charles/dnsmasq/nix/nixos-configuration/green/router/default.nix?ref_type=heads#L135 | 00:07:33 |
hexa | this here does DHCP for IPv4 and IPv6 on WAN | 00:07:42 |
Charles | yeah | 00:07:52 |
hexa | do you get like an IPv6 Prefix? | 00:08:14 |
Charles | i see a global scope ipv6 addr in ip a for en-wan, which is a /128 there | 00:08:13 |
Charles | ip -6 route shows a /64 | 00:08:21 |
hexa | yeah, that is no good 😄 | 00:08:25 |
hexa | for each LAN interface you want an individual /64 ideally | 00:08:38 |
hexa | and for that you need DHCPv6 IA_PD (aka Prefix Delegation) | 00:08:56 |
hexa | so on the WAN side I do
dhcpV6Config = {
WithoutRA = "solicit";
PrefixDelegationHint = "::/56";
};
| 00:09:36 |
hexa | and on the LAN side | 00:10:06 |
hexa | networkConfig.DHCPPrefixDelegation = true;
| 00:10:12 |
hexa | * \networkConfig.DHCPPrefixDelegation = true;
| 00:10:17 |