!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

889 Members
Declaratively manage your switching, routing, wireless, tunneling and more.260 Servers

Load older messages


SenderMessageTime
4 Sep 2025
@curious_cuttlefish:matrix.orgcurious_cuttlefish joined the room.04:41:59
@qbit:matrix.orgqbit joined the room.20:18:09
@clerie:entr0py.declerieHi, does anyone have a working Dual Stack Lite CPE setup for NixOS and wants to share the configs with me?20:31:20
6 Sep 2025
@ss:someonex.netSomeoneSerge (back on matrix) changed their display name from SomeoneSerge (Ever OOMed by Element) to SomeoneSerge (@nixcon & back on matrix).09:22:04
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan @ nix.camp to matthewcroughan @ nixcon.09:37:46
@kraem:ne.bul.aekraemi've created a systemd service which joins a network namespace, but i can't get it to use a specific dns server instead of the hosts. i've tried BindReadOnlyPaths but i can't get it to work. did anyone here successfully do this? here's what i have so far: https://paste.rs/FWI2h.txt (i've verified it joins the netns and it uses it successfully)17:35:38
@kraem:ne.bul.aekraem* i've created a systemd service which joins a network namespace, but i can't get it to use a specific dns server instead of the hosts. i've tried BindReadOnlyPaths but i can't get it to work. did anyone here successfully do this? here's what i have so far: https://paste.rs/FWI2h.txt (i've verified the service joins the netns and it uses it successfully)17:38:20
@jassu:kumma.juttu.asiaJassukoIs the resolv_conf destination thing wrong? or how does that work?22:13:25
@kraem:ne.bul.aekraem i just found out how to verify that it actually is mounted correctly:
  1. systemd-cgls --unit wg-netns-test0 (lists pids running in the container)

  2. nsenter -a -t $pid

  3. cat /etc/resolv.conf (inside the nsenter) gives me the correct contents (which is different than my hosts)


so for some reason the processes inside the service isn't using the nameserver resolv.conf specified in the resolv.conf ..
23:00:27
@kraem:ne.bul.aekraemdo i need to run a separate resolver inside the service somehow, may23:01:57
@kraem:ne.bul.aekraem* do i need to run a separate resolver inside the service somehow? maybe the processes are calling into my hosts networkmanager resolver which is running with the hosts resolv.conf configuration?23:03:27
@kraem:ne.bul.aekraem i just found out how to verify that it actually is mounted correctly:
  1. systemd-cgls --unit wg-netns-test0 (lists pids running in the container)

  2. nsenter -a -t $pid

  3. cat /etc/resolv.conf (inside the nsenter) gives me the correct contents (which is different than my hosts)


so for some reason the processes inside the service isn't using the nameserver specified in the resolv.conf ..
23:05:20
@kraem:ne.bul.aekraem interesting. dig actually uses the bind mounted /etc/resolv.conf in the service but the python script i was testing with used my hosts nameserver.
i was using this script (https://gist.github.com/Tugzrida/6fe83682157ead89875a76d065874973) which uses socket.socket(socket.AF_INET, socket.SOCK_DGRAM), which should be using glibc if i understand correctly, which in turn makes it very strange because glibc should be reading the resolv.conf mounted inside the service?
23:46:24
7 Sep 2025
@jassu:kumma.juttu.asiaJassukowhat does your nsswitch.conf look like?00:53:30
@hexa:lossy.networkhexahttps://www.servethehome.com/qnap-qsw-m3216r-8s8t-16-port-10gbe-managed-marvell-switch-review/ 🤔01:02:15
@hexa:lossy.networkhexa8x10Gbase-T, 8xSFP+01:02:31
@hexa:lossy.networkhexawith fans, but apparently quiet01:02:46
@hexa:lossy.networkhexaL2+ web-managed 🥲01:03:00
@hexa:lossy.networkhexaoh, per another listing this one actually has a console01:03:20
@hexa:lossy.networkhexawhat about ssh? 🤔01:03:38
@hexa:lossy.networkhexa

No, QNAP managed switches do not support SSH login for end users; however, users can access the managed switch graphical user interface (GUI)

01:04:00
@hexa:lossy.networkhexauhh sure, go fuck your self if you are an enduser01:04:07
@hexa:lossy.networkhexagot it01:04:07
@hexa:lossy.networkhexahttps://stevetech.me/posts/qnap-switch-serial-console implies they are running openwrt01:06:14
@hexa:lossy.networkhexa* https://stevetech.me/posts/qnap-switch-serial-console implies they are running something based on openwrt01:06:20
@hexa:lossy.networkhexadifferent switch though01:06:27
@raitobezarius:matrix.orgraitobezariusdoubtful it's not running openwrt01:07:11
@raitobezarius:matrix.orgraitobezariusit has management and shows HTTP server01:07:20
@hexa:lossy.networkhexagenerally vendors might just base their sdk on openwrt01:08:20
@raitobezarius:matrix.orgraitobezarius https://patchwork.ozlabs.org/project/netdev/patch/20200225163025.9430-2-vadym.kochan@plvision.eu/ 01:08:27

Show newer messages


Back to Room ListRoom Version: 6