From: Hans Dedecker Date: Wed, 8 Jun 2016 14:35:18 +0000 (+0200) Subject: dnsmasq: Add option --max-port X-Git-Tag: v17.01.0-rc1~2457 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7eaacd4d233678132914dc67f25f8b8d51100400;p=openwrt%2Fstaging%2Fchunkeey.git dnsmasq: Add option --max-port By default dnsmasq uses random ports for outbound dns queries; when the maxport UCI option is specified the ports used will always be smaller than the specified value. This is usefull for systems behind firewalls. Signed-off-by: Hans Dedecker --- diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 0360548e0d..ecf83622be 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -149,6 +149,7 @@ dnsmasq() { append_parm "$cfg" dhcpleasemax "--dhcp-lease-max" append_parm "$cfg" "queryport" "--query-port" append_parm "$cfg" "minport" "--min-port" + append_parm "$cfg" "maxport" "--max-port" append_parm "$cfg" "domain" "--domain" append_parm "$cfg" "local" "--server" config_list_foreach "$cfg" "server" append_server