From f531f0c0d7fc6e3d790b7e801e656261dfeb18a2 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 18 Sep 2019 12:38:35 +0800 Subject: [PATCH] nixbld: add IPv6 tunnel --- nixbld-etc-nixos/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index c62a0dd..1e673f5 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -8,6 +8,7 @@ let netifWan = "enp0s31f6"; netifLan = "enp3s0"; netifWifi = "wlp4s0"; + netifSit = "henet0"; hydraWwwOutputs = "/var/www/hydra-outputs"; in { @@ -48,6 +49,16 @@ in externalInterface = netifWan; internalInterfaces = [ netifLan netifWifi ]; }; + sits."${netifSit}" = { + dev = netifWan; + remote = "216.218.221.6"; + local = "42.200.147.171"; + ttl = 255; + }; + interfaces."${netifSit}".ipv6 = { + addresses = [{ address = "2001:470:18:629::2"; prefixLength = 64; }]; + routes = [{ address = "::"; prefixLength = 0; }]; + }; }; services.hostapd = {