swann: enable TFTP and HTTP for phone booting

This commit is contained in:
Luke Granger-Brown 2023-10-28 20:32:40 +00:00
parent 80154c5673
commit 20490c0853

View file

@ -551,6 +551,8 @@ in {
allowedUDPPorts = [ allowedUDPPorts = [
3478 10001 # Unifi 3478 10001 # Unifi
53 # DNS 53 # DNS
69 # TFTP
80 # HTTP
]; ];
}; };
interfaces.vl-eduroam = { interfaces.vl-eduroam = {
@ -853,6 +855,14 @@ in {
''; '';
}; };
services.atftpd = {
enable = true;
};
services.nginx = {
enable = true;
virtualHosts."192.168.1.1".root = "/srv/tftp";
};
services.kea = { services.kea = {
dhcp4.enable = true; dhcp4.enable = true;
dhcp4.settings = { dhcp4.settings = {
@ -879,6 +889,14 @@ in {
hw-address = "9c:93:4e:ad:1f:7b"; hw-address = "9c:93:4e:ad:1f:7b";
ip-address = "192.168.1.51"; ip-address = "192.168.1.51";
hostname = "printer-xerox"; hostname = "printer-xerox";
} {
hw-address = "e8:ed:f3:6a:b9:24";
ip-address = "192.168.1.52";
hostname = "phone-lukegb-desk";
option-data = [{
name = "tftp-server-name";
data = "192.168.1.1";
}];
} { } {
hw-address = "bc:33:29:26:01:5c"; hw-address = "bc:33:29:26:01:5c";
ip-address = "92.118.30.18"; ip-address = "92.118.30.18";