summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/udpt.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-10-06 07:45:31 +0200
committerlassulus <lass@aidsballs.de>2016-10-06 07:45:31 +0200
commitfa5816431ce0314b1c3260c763a87922b0ad485b (patch)
tree89f2f942ccdac038706ae6ac890a4111b42ca87d /makefu/2configs/udpt.nix
parent61ada606d8ee39c7f3f00be156af7843a6dfc16b (diff)
parent1daec454eb524925eebf407c54a0e9d925b2bb7a (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/udpt.nix')
-rw-r--r--makefu/2configs/udpt.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/makefu/2configs/udpt.nix b/makefu/2configs/udpt.nix
index 6d55ffaf8..922743bf1 100644
--- a/makefu/2configs/udpt.nix
+++ b/makefu/2configs/udpt.nix
@@ -1,6 +1,7 @@
{pkgs, ...}:
let
+ daemon-port = 6969;
cfgfile = pkgs.writeText "udpt-config" ''
[db]
driver=sqlite3
@@ -11,7 +12,9 @@ let
port=6969
threads=5
allow_remotes=yes
- allow_iana_ips=no
+
+ # allow retiolum:
+ allow_iana_ips=yes
announce_interval=1800
cleanup_interval=120
@@ -19,7 +22,7 @@ let
enable=yes
[logging]
- filename=-
+ filename=/tmp/udpt.log
level=warning
'';
in {
@@ -27,5 +30,8 @@ in {
enable = true;
inherit cfgfile;
};
+ networking.firewall.extraCommands = ''
+ iptables -A INPUT -i retiolum -p udp --dport ${toString daemon-port} -j ACCEPT
+ '';
}