aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional/services
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/common/optional/services')
-rw-r--r--hosts/common/optional/services/asterisk.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/hosts/common/optional/services/asterisk.nix b/hosts/common/optional/services/asterisk.nix
index d638a3c..5032cf5 100644
--- a/hosts/common/optional/services/asterisk.nix
+++ b/hosts/common/optional/services/asterisk.nix
@@ -1,8 +1,14 @@
{ config, lib, pkgs, ... }:
{
- networking.firewall.interfaces.enp116s0.allowedUDPPorts = [
- 5060 # sip
- ];
+ networking.firewall = {
+ allowedUDPPortRanges = [{
+ from = 6970;
+ to = 6999;
+ }];
+ interfaces.enp116s0.allowedUDPPorts = [
+ 5060 # sip
+ ];
+ };
services.asterisk = {
confFiles = {