diff --git a/server-configs/README.md b/server-configs/README.md deleted file mode 100644 index f2ea84e..0000000 --- a/server-configs/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Server related configs -As of 2023, a hypervisor running KVM is created. - -VM's are named as follows: - -* dns - DNS and DHCP server -* gateway - router/NAT/firewall/failover -* monitoring -* voip \ No newline at end of file diff --git a/server-configs/dhcp/README b/server-configs/dhcp/README new file mode 100644 index 0000000..f3d7417 --- /dev/null +++ b/server-configs/dhcp/README @@ -0,0 +1,2 @@ +Specify interfaces in /etc/default/isc-dhcp-server, section INTERFACESv4 +Leave INTERFACESv6 empty diff --git a/server-configs/dhcp/dhcpd.conf b/server-configs/dhcp/dhcpd.conf new file mode 100644 index 0000000..5f9e4df --- /dev/null +++ b/server-configs/dhcp/dhcpd.conf @@ -0,0 +1,105 @@ +# dhcpd.conf + +default-lease-time 600; +max-lease-time 7200; + +# The ddns-updates-style parameter controls whether or not the server will +# attempt to do a DNS update when a lease is confirmed. We default to the +# behavior of the version 2 packages ('none', since DHCP v2 didn't +# have support for DDNS.) +ddns-update-style none; + +# If this DHCP server is the official DHCP server for the local +# network, the authoritative directive should be uncommented. +authoritative; + + + +subnet 10.20.0.0 netmask 255.255.255.0 { + option routers 10.20.0.1; + option domain-name-servers 10.20.0.2; + option domain-name "openfest.org"; + range 10.20.0.100 10.20.0.250; + default-lease-time 7200; +} + +subnet 10.21.0.0 netmask 255.255.252.0 { + option routers 10.21.0.1; + option domain-name-servers 10.21.0.2; + option domain-name "net.openfest.org"; + range 10.21.0.100 10.21.3.250; + default-lease-time 600; +} + +subnet 10.22.0.0 netmask 255.255.252.0 { + option routers 10.22.0.1; + option domain-name-servers 10.22.0.2; + option domain-name "net.openfest.org"; + range 10.22.0.100 10.22.3.250; + default-lease-time 600; +} + +subnet 10.23.0.0 netmask 255.255.255.0 { + option routers 10.23.0.1; + option domain-name-servers 10.23.0.2; + option domain-name "video.openfest.org"; + range 10.23.0.100 10.23.0.250; + default-lease-time 7200; +} + +subnet 10.24.0.0 netmask 255.255.255.0 { + option routers 10.24.0.1; + option domain-name-servers 10.24.0.2; + option domain-name "overflow.openfest.org"; + range 10.24.0.100 10.24.0.250; + default-lease-time 7200; +} + +subnet 10.25.0.0 netmask 255.255.255.0 { + option routers 10.25.0.1; + option domain-name-servers 10.25.0.2; + option domain-name "reception.openfest.org"; + range 10.25.0.100 10.25.0.250; + default-lease-time 7200; +} + +subnet 10.26.0.0 netmask 255.255.255.0 { + option routers 10.26.0.1; + option domain-name-servers 10.26.0.2; + option domain-name "voice.openfest.org"; + range 10.26.0.100 10.26.0.250; + default-lease-time 7200; +} + +subnet 10.27.0.0 netmask 255.255.255.0 { + option routers 10.27.0.1; + option domain-name-servers 10.27.0.2; + option domain-name "ws.openfest.org"; + range 10.27.0.100 10.27.0.250; + default-lease-time 7200; +} + + +host pi2 { + hardware ethernet b8:27:eb:d0:b2:51; + fixed-address 10.24.0.10; +} +host pi3 { + hardware ethernet b8:27:eb:6b:5e:e6; + fixed-address 10.24.0.11; +} +host pi4 { + hardware ethernet dc:a6:32:89:9c:c8; + fixed-address 10.24.0.12; +} + +host printer-reception { + hardware ethernet 00:23:7d:85:82:05; + fixed-address 10.25.0.10; +} + +host overflow-think { + hardware ethernet F0:DE:F1:FE:42:09; + fixed-address 10.24.0.103; +} + diff --git a/server-configs/vms/README.md b/server-configs/hypervisor/README.md similarity index 82% rename from server-configs/vms/README.md rename to server-configs/hypervisor/README.md index c652f38..46f6316 100644 --- a/server-configs/vms/README.md +++ b/server-configs/hypervisor/README.md @@ -1,13 +1,5 @@ -# Virtual Machines - -## Resources used - -| Name | vCPU | Memory (MiB) | Disk (GiB) | VLANs | -| --------------- | ---- | ------------ | ---------- | ----- | -| gateway-openwrt | 8 | 4096 | 1 | all | -| dns | 2 | 4096 | 20 | all | -| monitoring | 4 | 4096 | 40 | 20 | -| voip | 2 | 2048 | 20 | 26 | +# Server related configs +As of 2023, a hypervisor running KVM is created. ## SR-IOV diff --git a/server-configs/hypervisor/enp1s0f0.rules b/server-configs/hypervisor/enp1s0f0.rules new file mode 100644 index 0000000..6838b39 --- /dev/null +++ b/server-configs/hypervisor/enp1s0f0.rules @@ -0,0 +1 @@ +KERNEL=="0000:01:00.0", SUBSYSTEM=="pci", DRIVER=="ixgbe", ATTR{vendor}=="0x8086", ATTR{device}=="0x154d", ATTR{sriov_numvfs}="15" diff --git a/server-configs/vms/dns.xml b/server-configs/hypervisor/qemu/autostart/dns.xml similarity index 75% rename from server-configs/vms/dns.xml rename to server-configs/hypervisor/qemu/autostart/dns.xml index 0c0f3fc..b6aa124 100644 --- a/server-configs/vms/dns.xml +++ b/server-configs/hypervisor/qemu/autostart/dns.xml @@ -1,4 +1,11 @@ - + + + dns 3c603d11-23d5-46b0-b944-390923af9f3d @@ -9,9 +16,6 @@ 4194304 4194304 2 - - /machine - hvm @@ -37,171 +41,124 @@ /usr/bin/qemu-system-x86_64 - - + -
-
- - - + -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - + -
-
-
- - - - + - - - - +
- - - - - - + +