!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

885 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.org252 Servers

Load older messages


SenderMessageTime
10 Jan 2026
@magic_rb:matrix.redalder.orgmagic_rbWhat im thinking about is somehow doing the "wireguard in init namespace, physical ifaces in a separate namespace" to force all outward traffic to go through WG. But also be able to skip past it per program for captive portals and also be able to disable it at home11:18:21
@magic_rb:matrix.redalder.orgmagic_rbIdk if there is a better way11:18:26
@magic_rb:matrix.redalder.orgmagic_rbIm open to simpler ideas :)11:23:21
@magic_rb:matrix.redalder.orgmagic_rbMy laptops config is more complicated than most vps' on hetzner11:23:51
@hexa:lossy.networkhexa (clat on linux when)Vrfs11:33:04
@magic_rb:matrix.redalder.orgmagic_rbVrwhatbow11:43:38
@magic_rb:matrix.redalder.orgmagic_rb*now, ill look up11:43:41
@magic_rb:matrix.redalder.orgmagic_rb Hm, still has the issue of 0.0.0.0 dev wg0 causes an infinite loop and a route has to be added manually for the default gateway. Which will break if the default gateway changes 11:48:15
@k900:0upti.meK900If you use NM, it will automatically add a route for the gateway11:48:50
@kraftnix:kraftnix.devkraftnixI hadn't heard of VRFs, but seems not too dissimilar to what I do, PBR11:50:51
@magic_rb:matrix.redalder.orgmagic_rb I left NM and i am not going back. I prefer networkd by a lot. I can actually hardcode all the settings in Nix and its nice and predictable 11:52:20
@magic_rb:matrix.redalder.orgmagic_rbMight still go NS approach, gives me separate firewalls too11:53:14
@hexa:lossy.networkhexa (clat on linux when)prober netns support in nixos modules when11:57:32
@magic_rb:matrix.redalder.orgmagic_rbWhen systemd has it11:58:01
@magic_rb:matrix.redalder.orgmagic_rbSo never11:58:04
@hexa:lossy.networkhexa (clat on linux when)you mentioned firewalls11:58:19
@hexa:lossy.networkhexa (clat on linux when)so we would clearly also need to add to other modules11:58:37
@magic_rb:matrix.redalder.orgmagic_rbIve done, and i wanted to kms11:58:45
@hexa:lossy.networkhexa (clat on linux when)and support for /etc/netns11:58:53
@magic_rb:matrix.redalder.orgmagic_rb205011:59:28
@sandro:supersandro.deSandro 🐧 ifstate is meant for static networking configuration, right Marcel ? 21:10:16
@magic_rb:matrix.redalder.orgmagic_rbi mean yeah, but i never do what im told21:19:59
@sandro:supersandro.deSandro 🐧I know those kinds of people to well 😅21:54:23
@sandro:supersandro.deSandro 🐧always a pleasure to add new restrictive measures because someone couldn't behave themselves 😂21:54:47
@magic_rb:matrix.redalder.orgmagic_rbI never could behave myself, thats why im using NixOS :P23:10:14
11 Jan 2026
@marcel:envs.netMarcel magic_rbyou could try to configure ifstate to run on udev events? 01:57:06
@marcel:envs.netMarceldo you use dhcp or wifi with ifstate? if yes, I would like to get some input how the module could be improved to make it morre straight forward (i've never done it till now)01:58:03
@lukas:matrix.landgraf.freeddns.orglukas joined the room.03:33:39
@magic_rb:matrix.redalder.orgmagic_rbI dont yet, but the plan is to do so yes. Ill ping you.09:27:27
@magic_rb:matrix.redalder.orgmagic_rbNot sure if udev is enough. I dont think it maps all of netlink, ill go with netlink, then debounce and then run ifstate09:28:25

Show newer messages


Back to Room ListRoom Version: 6