 +	instance->config.bindaddr.sin_addr.s_addr = inet_addr("10.114.103.1");
 +	instance->config.bindaddr.sin_port = 5313;
  	instance->config.relayaddr.sin_family = AF_INET;
- 	instance->config.relayaddr.sin_port = htons(53);
+-	instance->config.relayaddr.sin_port = htons(53);
++	instance->config.relayaddr.sin_port = 53;
  	instance->config.relay_timeout = 30;
-@@ -368,6 +368,15 @@ static int dnsu2t_onenter(parser_section *section)
- static int dnsu2t_onexit(parser_section *section)
- {
- 	dnsu2t_instance *instance = section->data;
-+	//Force some values that the OS depends on
+ 	instance->config.inflight_max = 16;
+
+@@ -367,6 +367,20 @@ static int dnsu2t_onexit(parser_section *section)
+ 	instance->config.bindaddr.sin_port = htons(instance->config.bindaddr.sin_port);
+ 	instance->config.relayaddr.sin_port = htons(instance->config.relayaddr.sin_port);
+
++	// Force some values that the OS depends on
 +	if (instance->config.bindaddr.sin_addr.s_addr != inet_addr("10.114.103.1")) {
 +		log_error(LOG_WARNING, "Overwriting `dnsu2t:local_ip` entry: it needs to match OS' iptables configuration.\n");
 +		instance->config.bindaddr.sin_addr.s_addr = inet_addr("10.114.103.1");
 +	}
-+	if (instance->config.bindaddr.sin_port != 5313) {
++	if (instance->config.bindaddr.sin_port != htons(5313)) {
 +		log_error(LOG_WARNING, "Overwriting `dnsu2t:local_port` entry: it needs to match OS' iptables configuration.\n");
-+		instance->config.bindaddr.sin_port = 5313;
++		instance->config.bindaddr.sin_port = htons(5313);
 +	}
++	if (instance->config.relayaddr.sin_port != htons(53)) {
++		log_error(LOG_WARNING, "Overwriting `dnsu2t:remote_port` entry: it needs to match OS' iptables configuration.\n");
++		instance->config.relayaddr.sin_port = htons(53);
++	}
++
+ 	list_add(&instance->list, &instances);
 
- 	section->data = NULL;
- 	for (parser_entry *entry = &section->entries[0]; entry->key; entry++)
+ 	return 0;
 diff --git a/redsocks.c b/redsocks.c
-index 9d56f42..0c2ad06 100644
+index 9d56f42..38c8f14 100644
 --- a/redsocks.c
 +++ b/redsocks.c
 @@ -127,7 +127,8 @@ static int redsocks_onenter(parser_section *section)

Upstream-Status: Inappropiate [Configuration]
---
 base.c     |  6 ++++++
 dnsu2t.c   | 13 +++++++++++--
 redsocks.c | 13 ++++++++++++-
 3 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/base.c b/base.c
index 210ddb5..9acf365 100644

 		parser_error(section->context, "`max_accept_backoff` must be positive, 0 ms is too low");
 		return -1;
diff --git a/dnsu2t.c b/dnsu2t.c
index bae4a45..6b02d1c 100644
--- a/dnsu2t.c
+++ b/dnsu2t.c
@@ -336,10 +336,10 @@ static int dnsu2t_onenter(parser_section *section)

 	INIT_LIST_HEAD(&instance->list);
 	instance->config.bindaddr.sin_family = AF_INET;
