From 77e3551e2d17a52d670424ac710cf4cbfec9b18a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 22 Apr 2018 14:15:03 +0200 Subject: ipv6 forwarding --- bragi.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bragi.nix b/bragi.nix index d97e0f35..f76aef61 100644 --- a/bragi.nix +++ b/bragi.nix @@ -97,6 +97,14 @@ in rec { ''; }; + systemd.services.radvd = { + path = with pkgs; [procps]; + preStart = '' + sysctl net.ipv6.conf.eth.forwarding=1 + sysctl net.ipv6.conf.wlp4s0.forwarding=1 + ''; + }; + services.dhcpd4 = { enable = true; interfaces = [ "eth" @@ -110,7 +118,7 @@ in rec { option subnet-mask 255.255.225.0; option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4; option domain-name "bragisheimr.yggdrasil"; - option domain-search "asgard.yggdrasil" "yggdrasil"; + option domain-search "asgard.yggdrasil", "yggdrasil"; option routers 10.141.4.1; subnet 10.141.4.0 netmask 255.255.255.0 { -- cgit v1.2.3