#16696: LUCI option to use "quiet-dhcp" for dnsmasq
-------------------------+-------------------------------------
Reporter: mattbunce | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Barrier Breaker (trunk)
Component: luci | Version: Trunk
Keywords: |
-------------------------+-------------------------------------
Would it be possible to add options in LUCI to prevent dnsmasq from
logging DHCP requests to the system log (as this can flood the syslog when
you have many clients renewing every few hours).
This can currently be achieved by adding "quiet-dhcp" to /etc/dnsmasq.conf
which is referenced in the automatically generated /var/etc/dnsmasq.conf
Currently, there is no option to add this parameter to /etc/config/dhcp so
/etc/init.d/dnsmasq would need to be tweaked as seen below:
{{{
dnsmasq() {
(...)
append_bool "$cfg" quiet_dhcp "--quiet-dhcp"
append_bool "$cfg" quiet_dhcp6 "--quiet-dhcp6"
append_bool "$cfg" quiet_ra "--quiet-ra"
}}}
Once the init.d script has been updated, the following option(s) could be
added to /etc/config/dhcp
{{{
option quiet_dhcp '1'
option quiet_dhcp6 '1'
option quiet_ra '1'
}}}
So the final requirement would be to add some check boxes in LUCI to
control these new parameters.
Since this affects both the UCI and LUCI elements of OpenWRT I'm not
entirely sure how this need to be requested or how it would be submitted
to trunk, so apologies if I am a little off the mark, but do you think
this could be achievable?
Matt
Thanks to forum users '''qasdfdsaq''' and '''metai''' for pointing me to
the solutions outlined in this request.
--
Ticket URL: <https://dev.openwrt.org/ticket/16696>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets