!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

895 Members
Declaratively manage your switching, routing, wireless, tunneling and more.262 Servers

Load older messages


SenderMessageTime
15 Jun 2021
@jdyg:matrix.orgjdyg joined the room.19:12:00
16 Jun 2021
@leons:is.currently.onlineLeon joined the room.13:22:56
18 Jun 2021
@noah:matrix.chatsubo.cafeChurchHmm anyone had issue with postUp and postShutdown commands in wireguard not running correctly and setting up and tearing down your rules?07:34:44
19 Jun 2021
@hpfr:matrix.orghpfr uh, is the wireguard module missing a dns option? 18:17:35
@hpfr:matrix.orghpfrI guess I'm supposed to use the wg-quick module instead18:25:43
@hpfr:matrix.orghpfrseems weird that they overlap a lot and that the wireguard module is apparently missing options?18:26:21
20 Jun 2021
@joerg:bethselamin.deMic92the wireguard module was introduced before wg-quick existed06:55:54
@joerg:bethselamin.deMic92Otherwise there would be no wireguard module06:56:20
@noah:matrix.chatsubo.cafeChurchSo what's preferred? Wireguard or wg-quick?22:47:22
21 Jun 2021
@eyjhb:eyjhb.dkeyJhb^ would like to know that as well, since I am currently using wireguard, and not wg-quick08:32:30
@andreas.schraegle:helsinki-systems.deAndreas SchrägleI just generate systemd-networkd files for my wireguard interfaces 🤷‍♂️ 11:28:52
@leons:is.currently.onlineLeon Yup, the networkd module works pretty flawlessly 11:31:07
@leons:is.currently.onlineLeonAlso, it doesn’t do as much magic as do the wireguard or wg-quick modules, for instance derive routes from the Allowed-IPs11:32:07
@leons:is.currently.onlineLeon(At least by default)11:32:33
@hexa:lossy.networkhexawhich is favorable when you want to do dynamic routing on top of them 😀11:35:15
@leons:is.currently.onlineLeon Exactly. I run OSPF+BGP on top so unconditionally routing ::/0 doesn’t do any good :D 11:38:01
@hexa:lossy.networkhexaBabel https://datatracker.ietf.org/doc/html/rfc8966 :)11:49:48
@anodae:matrix.organodae joined the room.20:52:21
22 Jun 2021
@joerg:bethselamin.deMic92Also I added wireguard support to networkd, I never really used it much afterwards.08:53:47
23 Jun 2021
@anubhavkini:matrix.organubhavkini joined the room.06:52:47
@linus.heckemann:matrix.mayflower.deLinux Hackerman joined the room.14:48:12
@kraftnix:matrix.orgkraftnix

Does anyone have some nice tips/tricks to dealing with the systemd-networkd limits on length of interface names? I want to autoconfigure interfaces in certain ways, but sometimes they go over limit the limit (and get a fairly silent failure in systemd-networkd logs rather than the configuration actively failing (it will often fail just due to some missing networks).

The interface names I was configuring are essentially a combination a container name + bridge name, obviously a short workaround would be to just force the name down to 15 characters, but if the container name is long then potentially I could have naming conflicts for interfaces for different bridges :/, one solution would be to reduce the container name/bridge names to 6 or 7 chars each for interface configuration but that is also a bit messy :(

15:15:28
@kraftnix:matrix.orgkraftnix *

Does anyone have some nice tips/tricks to dealing with the systemd-networkd limits on length of interface names? I want to autoconfigure interfaces in certain ways, but sometimes they go over the limit (and get a fairly silent failure in systemd-networkd logs rather than the configuration actively failing (it will often fail just due to some missing networks).

The interface names I was configuring are essentially a combination a container name + bridge name, obviously a short workaround would be to just force the name down to 15 characters, but if the container name is long then potentially I could have naming conflicts for interfaces for different bridges :/, one solution would be to reduce the container name/bridge names to 6 or 7 chars each for interface configuration but that is also a bit messy :(

15:15:48
@hexa:lossy.networkhexaIFNAMSIZ is limit in the kernel though15:16:03
@hexa:lossy.networkhexa * IFNAMSIZ is a limit in the kernel, not networkd15:16:45
@kraftnix:matrix.orgkraftnixok, is there any way to increase that? if not then I still need to figure out a clean workaround (hence the request for tips/tricks)15:19:27
@hexa:lossy.networkhexa on wlan APs i usually use radioN_vlanXXXX and that neatly works 😂 15:19:43
@hexa:lossy.networkhexain theory there is IFALIAS15:20:48
@hexa:lossy.networkhexa * in theory there is IFALIAS: ip link set alias somethinglongerthanfiveteencharacters dev lo 15:21:17
@linus.heckemann:matrix.mayflower.deLinux Hackermanyou can also patch your kernel, but YMMV :>15:21:41

There are no newer messages yet.


Back to Room ListRoom Version: 6