!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

905 Members
Declaratively manage your switching, routing, wireless, tunneling and more.263 Servers

Load older messages


SenderMessageTime
2 Jun 2025
@hexa:lossy.networkhexa

Defaults to true if IPMasquerade= is enabled for IPv6 or IPv6SendRA= is enabled

00:29:25
@hexa:lossy.networkhexaso should be enabled on br-lan00:29:35
@hexa:lossy.networkhexabut maybe not on wan00:29:44
@hexa:lossy.networkhexai tend to yolo this part00:30:24
@hexa:lossy.networkhexa
  boot.kernel.sysctl = {
    "net.ipv6.conf.all.forwarding" = lib.mkForce 1;
    "net.ipv4.forward" = lib.mkForce 1;
  };
00:30:28
@saiko:knifepoint.net@saiko:knifepoint.netsystemd.network.config.networkConfig.IPv6Forwarding = true;00:31:26
@charles:computer.surgeryCharles hmm i have boot.kernel.sysctl."net.ipv4.ip_forward" = "1"; lol 00:31:52
@hexa:lossy.networkhexayeah, that would be the systemd-networkd equivalent00:31:59
@hexa:lossy.networkhexayeah, so feel free to grab the ipv6 one as well00:32:10
@hexa:lossy.networkhexaor use the networkd knob00:32:14
@charles:computer.surgeryCharlesi feel like in the past when i try doing it the systemd-networkd way it doesn't work and you need both or something00:32:34
@charles:computer.surgeryCharlesdo i need to reboot for that00:33:17
@hexa:lossy.networkhexaI don't think so00:34:20
@hexa:lossy.networkhexasysctl's can be set at runtime00:34:29
@charles:computer.surgeryCharles
PING 2600:: (2600::) 56 data bytes
From 2601:1c1:8400:a440:10b8:f6ff:fef0:f963 icmp_seq=1 Destination unreachable: No route
00:34:47
@hexa:lossy.networkhexatry something else, just to be safe 😄 00:35:23
@hexa:lossy.networkhexa

Destination unreachable: No route

00:35:44
@saiko:knifepoint.net@saiko:knifepoint.net
In reply to @charles:computer.surgery
i feel like in the past when i try doing it the systemd-networkd way it doesn't work and you need both or something
there are two, you need the global option, not the one on the netdev, at least for IPv6
00:35:49
@hexa:lossy.networkhexagiven that you have a default route on your router00:35:57
@elvishjerricco:matrix.orgElvishJerriccoIIRC ipv6 forwarding is weirder than ipv4 forwarding and you have to have both the per-interface and global settings enabled or something00:36:01
@saiko:knifepoint.net@saiko:knifepoint.net(same as you need to turn on conf.all.forwarding and not the interface one, or at least both)00:36:13
@saiko:knifepoint.net@saiko:knifepoint.netyeah00:36:17
@hexa:lossy.networkhexathe reason why I just don't bother with networkd for forwarding options00:36:21
@saiko:knifepoint.net@saiko:knifepoint.netthe global one turns all the interface ones on00:36:27
@saiko:knifepoint.net@saiko:knifepoint.netno, this is a kernel level thing, not networkd00:36:33
@hexa:lossy.networkhexafair00:36:44
@elvishjerricco:matrix.orgElvishJerricco

Note, unlike IPv4Forwarding=, enabling per-interface IPv6Forwarding= on two or more interfaces DOES NOT make IPv6 packets forwarded within the interfaces. This setting just controls the per-interface sysctl value, and the sysctl value is not directly correlated to whether packets are forwarded. To ensure IPv6 packets forwarded, the global setting in networkd.conf(5) needs to be enabled.

00:36:58
@elvishjerricco:matrix.orgElvishJerricco from man systemd.network 00:37:06
@elvishjerricco:matrix.orgElvishJerriccobut the global setting sounds like it applies by default to all interfaces00:37:42
@elvishjerricco:matrix.orgElvishJerriccoso I dunno why you'd need the per-interface one too00:37:50

Show newer messages


Back to Room ListRoom Version: 6