aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional/services/asterisk.nix
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-06-19 16:09:30 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-06-19 16:09:30 -0700
commitd87c0cc9d83d83c3babdf3450ab1be790244e49a (patch)
treefd5003dd92c8ee48e37118e670cf6dadbfc81ba0 /hosts/common/optional/services/asterisk.nix
parenta8a783ae9c57906a88c2ad7945476989e5ae2730 (diff)
downloadnix-d87c0cc9d83d83c3babdf3450ab1be790244e49a.tar
nix-d87c0cc9d83d83c3babdf3450ab1be790244e49a.tar.gz
nix-d87c0cc9d83d83c3babdf3450ab1be790244e49a.tar.bz2
nix-d87c0cc9d83d83c3babdf3450ab1be790244e49a.tar.lz
nix-d87c0cc9d83d83c3babdf3450ab1be790244e49a.tar.xz
nix-d87c0cc9d83d83c3babdf3450ab1be790244e49a.tar.zst
nix-d87c0cc9d83d83c3babdf3450ab1be790244e49a.zip
Adjust firewall rules
Diffstat (limited to 'hosts/common/optional/services/asterisk.nix')
-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 = {