diff options
Diffstat (limited to 'hosts/vidhar/network/dsl.nix')
-rw-r--r-- | hosts/vidhar/network/dsl.nix | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/hosts/vidhar/network/dsl.nix b/hosts/vidhar/network/dsl.nix index 536e0e0d..5b7c5ac7 100644 --- a/hosts/vidhar/network/dsl.nix +++ b/hosts/vidhar/network/dsl.nix | |||
@@ -97,13 +97,6 @@ in { | |||
97 | dnssl = [{ domain_names = ["yggdrasil"]; }]; | 97 | dnssl = [{ domain_names = ["yggdrasil"]; }]; |
98 | # other_config = true; | 98 | # other_config = true; |
99 | } | 99 | } |
100 | { name = "dmz01"; | ||
101 | advertise = true; | ||
102 | verbose = true; | ||
103 | prefix = [{ prefix = "::/64"; }]; | ||
104 | route = [{ prefix = "::/0"; }]; | ||
105 | rdnss = [{ servers = ["::"]; }]; | ||
106 | } | ||
107 | ]; | 100 | ]; |
108 | 101 | ||
109 | debug = { | 102 | debug = { |
@@ -123,11 +116,6 @@ in { | |||
123 | interface = "lan"; | 116 | interface = "lan"; |
124 | network = "::/0"; | 117 | network = "::/0"; |
125 | }; | 118 | }; |
126 | dmz01 = { | ||
127 | method = "iface"; | ||
128 | interface = "dmz01"; | ||
129 | network = "::/0"; | ||
130 | }; | ||
131 | }; | 119 | }; |
132 | }; | 120 | }; |
133 | }; | 121 | }; |
@@ -170,7 +158,7 @@ in { | |||
170 | ''; | 158 | ''; |
171 | 159 | ||
172 | postStop = '' | 160 | postStop = '' |
173 | for dev in lan dmz01; do | 161 | for dev in lan; do |
174 | ${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}" | 162 | ${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}" |
175 | done | 163 | done |
176 | ''; | 164 | ''; |
@@ -195,7 +183,6 @@ in { | |||
195 | iaid 1195061668 | 183 | iaid 1195061668 |
196 | ipv6rs # enable routing solicitation for WAN adapter | 184 | ipv6rs # enable routing solicitation for WAN adapter |
197 | ia_pd 1 lan/0/64/0 # request a PD and assign it to the LAN | 185 | ia_pd 1 lan/0/64/0 # request a PD and assign it to the LAN |
198 | ia_pd 1 dmz01/1/64/0 # request a PD and assign it to dmz01 | ||
199 | 186 | ||
200 | reboot 0 | 187 | reboot 0 |
201 | 188 | ||