!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

880 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` for interface and routing setup, use systemd-networkd, ifstate or NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org251 Servers

Load older messages


SenderMessageTime
8 Jul 2025
@hexa:lossy.networkhexa (clat on linux when)dhcp servers are as boring as they come once they work21:58:10
@hexa:lossy.networkhexa (clat on linux when)which means I might need help updating the kea suite, which has been stuck on a vulnerable version for a month21:58:26
@hexa:lossy.networkhexa (clat on linux when)https://github.com/NixOS/nixpkgs/pull/41187521:58:39
@zhaofeng:zhaofeng.liZhaofeng Liis it okay to move to 3.0 directly (IIRC there isn't a separate control server anymore)?22:21:29
@zhaofeng:zhaofeng.liZhaofeng Lior it has to be 2.6.x for backport reasons (surprising they changed this behavior in a revision)22:22:28
@hexa:lossy.networkhexa (clat on linux when)yeah, we need the 2.6.3 backport22:23:10
@hexa:lossy.networkhexa (clat on linux when)and yeah, the behavior change is what breaks the runtime environment22:23:26
@hexa:lossy.networkhexa (clat on linux when)for reasons I don't understand22:23:30
@zhaofeng:zhaofeng.liZhaofeng Liok, let me try22:26:18
@zhaofeng:zhaofeng.liZhaofeng Li

built, the KEA_CONTROL_SOCKET_DIR appears to be honored fine

router # [    8.927187] kea-ctrl-agent[805]: 2025-07-08 22:43:26.795 INFO  [kea-ctrl-agent.dctl/805.140519184328576] DCTL_STARTING Control-agent starting, pid: 805, version: 2.6.3 (stable)
router # [    8.929422] kea-ctrl-agent[805]: 2025-07-08 22:43:26.798 ERROR [kea-ctrl-agent.ctrl-agent/805.140519184328576] CTRL_AGENT_CONFIG_FAIL Control Agent configuration failed: invalid path specified: '/run/kea/VALUE-IN-CONFIG', supported path is '/run/kea/meow'
router # [    8.931635] kea-ctrl-agent[805]: 2025-07-08 22:43:26.798 FATAL [kea-ctrl-agent.dctl/805.140519184328576] DCTL_CONFIG_FILE_LOAD_FAIL Control-agent reason: invalid path specified: '/run/kea/VALUE-IN-CONFIG', supported path is '/run/kea/meow'
22:46:20
@zhaofeng:zhaofeng.liZhaofeng Li

then there's a permission issue, checking

router # [    8.841737] kea-ctrl-agent[780]: 2025-07-08 22:45:53.570 ERROR [kea-ctrl-agent.ctrl-agent/780.139821817276288] CTRL_AGENT_CONFIG_FAIL Control Agent configuration failed: socket path:/run/kea does not exist or does not have permssions = 750
22:47:04
@hexa:lossy.networkhexa (clat on linux when)
    RuntimeDirectoryMode = "750";
22:51:40
@hexa:lossy.networkhexa (clat on linux when) *
    RuntimeDirectory = "kea";
    RuntimeDirectoryMode = "750";
22:52:01
@hexa:lossy.networkhexa (clat on linux when)not sure why this part doesn'tw ork22:53:09
@hexa:lossy.networkhexa (clat on linux when)* not sure why this part doesn't ork22:53:11
@hexa:lossy.networkhexa (clat on linux when)* not sure why this part doesn't work22:53:13
@zhaofeng:zhaofeng.liZhaofeng Liyeah, saw that22:53:29
@zhaofeng:zhaofeng.liZhaofeng Li using socket-name = "/run/private/kea/dhcp4.sock"; works, curious 22:53:31
@zhaofeng:zhaofeng.liZhaofeng Li the source does if (::stat(path.c_str(), &statbuf) < 0) for the permission check which should follow symlinks, looking 22:54:19
@hexa:lossy.networkhexa (clat on linux when)huh22:56:28
@zhaofeng:zhaofeng.liZhaofeng Liyeah, this sandbox is weird... let me just nsenter into it I guess23:09:48
@zhaofeng:zhaofeng.liZhaofeng Lithe log spam is killing me, is there a way to suppress the serial output from the interactive driver? 🫠23:22:28
@zhaofeng:zhaofeng.liZhaofeng Li

anyways, it appears that kea is actually right that it does not have the correct permissions

In [29]: print(router.succeed("nsenter -a -t 761 ls -lah /run/kea/"))
router: must succeed: nsenter -a -t 761 ls -lah /run/kea/
router: (finished: must succeed: nsenter -a -t 761 ls -lah /run/kea/, in 0.02 seconds)
total 56K
drwxr-xr-x 2 kea  kea  100 Jul  8 23:19 .
23:22:50
@hexa:lossy.networkhexa (clat on linux when)huh, 755 instead of 75023:23:33
@hexa:lossy.networkhexa (clat on linux when)wild23:23:34
@zhaofeng:zhaofeng.liZhaofeng Li but I don't get how /run/private/kea/dhcp4.sock worked then (the real directory is 755 too), maybe something changed the permission 23:24:47
@hexa:lossy.networkhexa (clat on linux when)kea's umask is 0077 fwiw23:25:28
@hexa:lossy.networkhexa (clat on linux when)maybe weird behavior with DynamicUser and RuntimeDirectoryPreserve?23:26:10
@hexa:lossy.networkhexa (clat on linux when)maybe we can find out using an audit rule23:27:11
@zhaofeng:zhaofeng.liZhaofeng Liok, got distracted23:49:42

Show newer messages


Back to Room ListRoom Version: 6