Hi, I noticed that dnsmasq is listening on wan port 53. (I inadvertently found this out by accidentally disabling my firewall... thanks xMff).
This was a side effect of r11062 and ticket 3406: https://dev.openwrt.org/ticket/3406 https://dev.openwrt.org/changeset/10958 I think that a better fix for 3406 is to add a new option called "nodhcp" that specifies "-2 <iface>" instead of "ignore" still listening to dns queries. Attached is a simple patch to truly ignore an interface but allows a user to specify "nodhcp" if they only want to use dnsmasq as a caching dns server. Thoughts? Wade
Index: package/dnsmasq/files/dhcp.conf =================================================================== --- package/dnsmasq/files/dhcp.conf (revision 17603) +++ package/dnsmasq/files/dhcp.conf (working copy) @@ -15,6 +15,7 @@ #option nonwildcard 1 #list interface br-lan #list notinterface lo + #option nodhcp 1 config dhcp lan option interface lan Index: package/dnsmasq/files/dnsmasq.init =================================================================== --- package/dnsmasq/files/dnsmasq.init (revision 17603) +++ package/dnsmasq/files/dnsmasq.init (working copy) @@ -228,7 +228,8 @@ DNS_SERVERS="$DNS_SERVERS $dnsserver" } - append_bool "$cfg" ignore "-2 $ifname" && return 0 + append_bool "$cfg" nodhcp "-2 $ifname" && return 0 + append_bool "$cfg" ignore "-I $ifname" && return 0 config_get proto "$net" proto [ static = "$proto" ] || return 0
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
