From 49e1a9efd85a51ce189370ce2f76790f7bf0e05f Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Tue, 14 Mar 2017 21:36:17 +0200 Subject: [PATCH] Implicitly map DNSCNC ports via IGD to 53 There is no much reason to expose non-standard DNS ports outside. --- pupy/pupylib/PupyDnsCnc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pupy/pupylib/PupyDnsCnc.py b/pupy/pupylib/PupyDnsCnc.py index 87850502..47eca6e1 100644 --- a/pupy/pupylib/PupyDnsCnc.py +++ b/pupy/pupylib/PupyDnsCnc.py @@ -95,7 +95,8 @@ class PupyDnsCnc(object): ) if self.igd and self.igd.available: - self.igd.AddPortMapping(int(port), 'UDP', int(port)) + self.igd.AddPortMapping(int(port), 'UDP', 53) + self.igd.AddPortMapping(int(port), 'TCP', 53) self.server.start()