From 4e09eeb4ae4e37dd649409cafaf3b5854f0dc417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 24 Jul 2014 09:15:20 +0200 Subject: [PATCH 1/2] net/iodine: make port configurable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fall back to the default DNS port (i.e. 53). If you configure something different than 53 this results in a warning from iodined: ALERT! Other dns servers expect you to run on port 53. You must manually forward port 53 to port $port for things to work. This is obviously true. Signed-off-by: Uwe Kleine-König --- net/iodine/files/iodined.init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/iodine/files/iodined.init b/net/iodine/files/iodined.init index d91b7793e..89f1825f1 100644 --- a/net/iodine/files/iodined.init +++ b/net/iodine/files/iodined.init @@ -9,8 +9,11 @@ start_instance () { config_get password "$section" 'password' config_get tunnelip "$section" 'tunnelip' config_get tld "$section" 'tld' + config_get port "$section" 'port' - service_start /usr/sbin/iodined -l "$address" -P "$password" "$tunnelip" "$tld" + test -n "$port" || port='53' + + service_start /usr/sbin/iodined -l "$address" -P "$password" -p "$port" "$tunnelip" "$tld" } start() { From a66f9e88547457b78d1af07d62d4b29dce77e25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 24 Jul 2014 09:31:54 +0200 Subject: [PATCH 2/2] net/iodine: make address config optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the absense of an address entry bind to all interfaces which is also iodined's default when -l isn't given. Signed-off-by: Uwe Kleine-König --- net/iodine/files/iodined.init | 1 + 1 file changed, 1 insertion(+) diff --git a/net/iodine/files/iodined.init b/net/iodine/files/iodined.init index 89f1825f1..48dea619d 100644 --- a/net/iodine/files/iodined.init +++ b/net/iodine/files/iodined.init @@ -11,6 +11,7 @@ start_instance () { config_get tld "$section" 'tld' config_get port "$section" 'port' + test -n "$address" || address='0.0.0.0' test -n "$port" || port='53' service_start /usr/sbin/iodined -l "$address" -P "$password" -p "$port" "$tunnelip" "$tld"