From 42a0ebba1aa51c69fecf3f0c85a18257fcb871da Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 16 Jun 2015 19:28:26 +0200 Subject: proxy-ARP & dhcpd --- bragi.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'bragi.nix') diff --git a/bragi.nix b/bragi.nix index 7e9ed966..e1a10fb4 100644 --- a/bragi.nix +++ b/bragi.nix @@ -161,4 +161,30 @@ ;; esac ''; + + networking.interfaces = { + "wlp4s0" = { + proxyARP = true; + }; + "enp1s0" = { + proxyARP = true; + useDHCP = false; + ipAddress = "10.141.4.1"; + prefixLength = "24"; + }; + }; + + services.dhcpd = { + enable = true; + interfaces = "enp1s0"; + extraConfig = '' + option subnet-mask 255.255.255.0; + option broadcast-address 10.141.1.1; + option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4; + option domain-name "asgard.yggdrasil"; + subnet 10.141.4.0 netmask 255.255.255.0 { + range 10.141.4.100 10.141.4.254; + } + ''; + }; } -- cgit v1.2.3