mob next [ci-skip] [ci skip] [skip ci]

lastFile:modules/clan/phonebox/default.nix
This commit is contained in:
2025-10-24 16:51:55 +07:00
parent 1d0cbbbd94
commit 26fc825cd2

View File

@@ -12,7 +12,66 @@
...
}:
{
networking.firewall.allowedUDPPorts = [ 5060 ];
networking.interfaces = {
${ata-interface} = {
useDHCP = false;
ipv4.addresses = [
{
address = "192.168.254.1";
prefixLength = 24;
}
];
};
};
services.dnsmasq = {
enable = true;
settings = {
bind-interfaces = true;
# enable-ra = true;
domain-needed = true;
domain = "localhost";
dhcp-range = [
"192.168.254.100,192.168.254.100,255.255.255.0,24h"
];
dhcp-option = [
"3,192.168.254.1"
"option6:information-refresh-time,3600"
];
interface = [ ata-interface ];
};
};
services.nginx = {
enable = true;
virtualHosts = {
"_" = {
locations."/" = {
proxyPass = "http://192.168.254.100";
};
};
};
};
networking.firewall.allowedUDPPortRanges = [
{
from = 10000;
to = 20000;
}
];
networking.firewall.allowedUDPPorts = [
53
67
5060
];
networking.firewall.allowedTCPPorts = [
53
80
443
];
services.asterisk = {
enable = lib.mkDefault true;
confFiles = {