swann: enable TFTP and HTTP for phone booting
This commit is contained in:
parent
80154c5673
commit
20490c0853
1 changed files with 18 additions and 0 deletions
|
@ -551,6 +551,8 @@ in {
|
|||
allowedUDPPorts = [
|
||||
3478 10001 # Unifi
|
||||
53 # DNS
|
||||
69 # TFTP
|
||||
80 # HTTP
|
||||
];
|
||||
};
|
||||
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 = {
|
||||
dhcp4.enable = true;
|
||||
dhcp4.settings = {
|
||||
|
@ -879,6 +889,14 @@ in {
|
|||
hw-address = "9c:93:4e:ad:1f:7b";
|
||||
ip-address = "192.168.1.51";
|
||||
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";
|
||||
ip-address = "92.118.30.18";
|
||||
|
|
Loading…
Reference in a new issue