summaryrefslogtreecommitdiff
path: root/hosts/vidhar/network/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-08 00:24:18 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-08 00:24:18 +0100
commitc89e822a5d558b9f9bb9d1ac2a1dd76f3e64c595 (patch)
treea3d99e39387b21448d9e4d99a1dda75f10008c2e /hosts/vidhar/network/default.nix
parent876c5c44867aec221a36c3b1319d96c8c3df9e44 (diff)
downloadnixos-c89e822a5d558b9f9bb9d1ac2a1dd76f3e64c595.tar
nixos-c89e822a5d558b9f9bb9d1ac2a1dd76f3e64c595.tar.gz
nixos-c89e822a5d558b9f9bb9d1ac2a1dd76f3e64c595.tar.bz2
nixos-c89e822a5d558b9f9bb9d1ac2a1dd76f3e64c595.tar.xz
nixos-c89e822a5d558b9f9bb9d1ac2a1dd76f3e64c595.zip
vidhar: dmz01
Diffstat (limited to 'hosts/vidhar/network/default.nix')
-rw-r--r--hosts/vidhar/network/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/hosts/vidhar/network/default.nix b/hosts/vidhar/network/default.nix
index 62539239..81dac652 100644
--- a/hosts/vidhar/network/default.nix
+++ b/hosts/vidhar/network/default.nix
@@ -21,6 +21,11 @@
21 { address = "10.141.1.1"; prefixLength = 24; } 21 { address = "10.141.1.1"; prefixLength = 24; }
22 ]; 22 ];
23 }; 23 };
24 interfaces."dmz01" = {
25 ipv4.addresses = [
26 { address = "10.141.2.1"; prefixLength = 24; }
27 ];
28 };
24 29
25 vlans = { 30 vlans = {
26 mgmt = { 31 mgmt = {
@@ -31,6 +36,10 @@
31 id = 3; 36 id = 3;
32 interface = "eno2"; 37 interface = "eno2";
33 }; 38 };
39 dmz01 = {
40 id = 4;
41 interface = "eno2";
42 };
34 }; 43 };
35 44
36 firewall.enable = false; 45 firewall.enable = false;
@@ -58,6 +67,15 @@
58 67
59 subnet 10.141.1.0 netmask 255.255.255.0 { 68 subnet 10.141.1.0 netmask 255.255.255.0 {
60 range 10.141.1.128 10.141.1.254; 69 range 10.141.1.128 10.141.1.254;
70 option domain-name-servers 10.141.1.1;
71 option broadcast-address 10.141.1.255;
72 }
73
74 subnet 10.141.2.0 netmask 255.255.255.0 {
75 range 10.141.2.128 10.141.2.254;
76 option domain-name-servers 10.141.2.1;
77 option broadcast-address 10.141.2.255;
78 option routers 10.141.2.1;
61 } 79 }
62 ''; 80 '';
63 machines = [ 81 machines = [