diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-22 14:15:03 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-22 14:15:03 +0200 |
commit | 77e3551e2d17a52d670424ac710cf4cbfec9b18a (patch) | |
tree | e88a10e0d06a42113b69f76779f3295c7bcc835d | |
parent | af47b0ed9767d27d1a40b49a95c606cb3602615d (diff) | |
download | nixos-77e3551e2d17a52d670424ac710cf4cbfec9b18a.tar nixos-77e3551e2d17a52d670424ac710cf4cbfec9b18a.tar.gz nixos-77e3551e2d17a52d670424ac710cf4cbfec9b18a.tar.bz2 nixos-77e3551e2d17a52d670424ac710cf4cbfec9b18a.tar.xz nixos-77e3551e2d17a52d670424ac710cf4cbfec9b18a.zip |
ipv6 forwarding
-rw-r--r-- | bragi.nix | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -97,6 +97,14 @@ in rec { | |||
97 | ''; | 97 | ''; |
98 | }; | 98 | }; |
99 | 99 | ||
100 | systemd.services.radvd = { | ||
101 | path = with pkgs; [procps]; | ||
102 | preStart = '' | ||
103 | sysctl net.ipv6.conf.eth.forwarding=1 | ||
104 | sysctl net.ipv6.conf.wlp4s0.forwarding=1 | ||
105 | ''; | ||
106 | }; | ||
107 | |||
100 | services.dhcpd4 = { | 108 | services.dhcpd4 = { |
101 | enable = true; | 109 | enable = true; |
102 | interfaces = [ "eth" | 110 | interfaces = [ "eth" |
@@ -110,7 +118,7 @@ in rec { | |||
110 | option subnet-mask 255.255.225.0; | 118 | option subnet-mask 255.255.225.0; |
111 | option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4; | 119 | option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4; |
112 | option domain-name "bragisheimr.yggdrasil"; | 120 | option domain-name "bragisheimr.yggdrasil"; |
113 | option domain-search "asgard.yggdrasil" "yggdrasil"; | 121 | option domain-search "asgard.yggdrasil", "yggdrasil"; |
114 | option routers 10.141.4.1; | 122 | option routers 10.141.4.1; |
115 | 123 | ||
116 | subnet 10.141.4.0 netmask 255.255.255.0 { | 124 | subnet 10.141.4.0 netmask 255.255.255.0 { |