diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-14 04:14:32 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-14 04:14:32 +0100 |
commit | c923294b84cdd22bc171337335735cd564f9a03c (patch) | |
tree | 4d5b08e6473867b41887d1f428e3d5a3b95aa9b8 /hosts/vidhar/network/dsl.nix | |
parent | 947aac1ca6c930d94776124c60df2ce8b2b59621 (diff) | |
download | nixos-c923294b84cdd22bc171337335735cd564f9a03c.tar nixos-c923294b84cdd22bc171337335735cd564f9a03c.tar.gz nixos-c923294b84cdd22bc171337335735cd564f9a03c.tar.bz2 nixos-c923294b84cdd22bc171337335735cd564f9a03c.tar.xz nixos-c923294b84cdd22bc171337335735cd564f9a03c.zip |
Revert "vidhar: ..."
This reverts commit ac71bc3f6216a247615ce36c6eddf25365b00a76.
Diffstat (limited to 'hosts/vidhar/network/dsl.nix')
-rw-r--r-- | hosts/vidhar/network/dsl.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/hosts/vidhar/network/dsl.nix b/hosts/vidhar/network/dsl.nix index 9c9a57b8..ae2caec2 100644 --- a/hosts/vidhar/network/dsl.nix +++ b/hosts/vidhar/network/dsl.nix | |||
@@ -95,6 +95,13 @@ 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 | } | ||
98 | ]; | 105 | ]; |
99 | 106 | ||
100 | debug = { | 107 | debug = { |
@@ -114,6 +121,11 @@ in { | |||
114 | interface = "lan"; | 121 | interface = "lan"; |
115 | network = "::/0"; | 122 | network = "::/0"; |
116 | }; | 123 | }; |
124 | dmz01 = { | ||
125 | method = "iface"; | ||
126 | interface = "dmz01"; | ||
127 | network = "::/0"; | ||
128 | }; | ||
117 | }; | 129 | }; |
118 | }; | 130 | }; |
119 | }; | 131 | }; |
@@ -156,7 +168,7 @@ in { | |||
156 | ''; | 168 | ''; |
157 | 169 | ||
158 | postStop = '' | 170 | postStop = '' |
159 | for dev in lan; do | 171 | for dev in lan dmz01; do |
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}" | 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}" |
161 | done | 173 | done |
162 | ''; | 174 | ''; |
@@ -181,6 +193,7 @@ in { | |||
181 | iaid 1195061668 | 193 | iaid 1195061668 |
182 | ipv6rs # enable routing solicitation for WAN adapter | 194 | ipv6rs # enable routing solicitation for WAN adapter |
183 | ia_pd 1 lan/0/64/0 # request a PD and assign it to the LAN | 195 | 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 | ||
184 | 197 | ||
185 | reboot 0 | 198 | reboot 0 |
186 | 199 | ||