summaryrefslogtreecommitdiff
path: root/hosts/vidhar/network/dsl.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar/network/dsl.nix')
-rw-r--r--hosts/vidhar/network/dsl.nix15
1 files changed, 1 insertions, 14 deletions
diff --git a/hosts/vidhar/network/dsl.nix b/hosts/vidhar/network/dsl.nix
index ae2caec2..9c9a57b8 100644
--- a/hosts/vidhar/network/dsl.nix
+++ b/hosts/vidhar/network/dsl.nix
@@ -95,13 +95,6 @@ in {
95 rdnss = [{ servers = ["::"]; }]; 95 rdnss = [{ servers = ["::"]; }];
96 dnssl = [{ domain_names = ["yggdrasil"]; }]; 96 dnssl = [{ domain_names = ["yggdrasil"]; }];
97 } 97 }
98 { name = "dmz01";
99 advertise = true;
100 verbose = true;
101 prefix = [{ prefix = "::/64"; }];
102 route = [{ prefix = "::/0"; }];
103 rdnss = [{ servers = ["::"]; }];
104 }
105 ]; 98 ];
106 99
107 debug = { 100 debug = {
@@ -121,11 +114,6 @@ in {
121 interface = "lan"; 114 interface = "lan";
122 network = "::/0"; 115 network = "::/0";
123 }; 116 };
124 dmz01 = {
125 method = "iface";
126 interface = "dmz01";
127 network = "::/0";
128 };
129 }; 117 };
130 }; 118 };
131 }; 119 };
@@ -168,7 +156,7 @@ in {
168 ''; 156 '';
169 157
170 postStop = '' 158 postStop = ''
171 for dev in lan dmz01; do 159 for dev in lan; do
172 ${pkgs.iproute2}/bin/ip -6 a show dev "''${dev}" scope global | ${pkgs.gnugrep}/bin/grep inet6 | ${pkgs.gawk}/bin/awk '{ print $2; }' | ${pkgs.findutils}/bin/xargs -I '{}' -- ${pkgs.iproute2}/bin/ip addr del '{}' dev "''${dev}" 160 ${pkgs.iproute2}/bin/ip -6 a show dev "''${dev}" scope global | ${pkgs.gnugrep}/bin/grep inet6 | ${pkgs.gawk}/bin/awk '{ print $2; }' | ${pkgs.findutils}/bin/xargs -I '{}' -- ${pkgs.iproute2}/bin/ip addr del '{}' dev "''${dev}"
173 done 161 done
174 ''; 162 '';
@@ -193,7 +181,6 @@ in {
193 iaid 1195061668 181 iaid 1195061668
194 ipv6rs # enable routing solicitation for WAN adapter 182 ipv6rs # enable routing solicitation for WAN adapter
195 ia_pd 1 lan/0/64/0 # request a PD and assign it to the LAN 183 ia_pd 1 lan/0/64/0 # request a PD and assign it to the LAN
196 ia_pd 1 dmz01/1/64/0 # request a PD and assign it to dmz01
197 184
198 reboot 0 185 reboot 0
199 186