From dccb32fa4d58ae7c598e6b3f5c8040ae19283136 Mon Sep 17 00:00:00 2001 From: Daniel Vijge Date: Mon, 12 Feb 2024 19:56:59 +0100 Subject: [PATCH] Add option to configure DHCP domain whitelisting --- config/dhcp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config/dhcp b/config/dhcp index 4d19d72..30b6934 100644 --- a/config/dhcp +++ b/config/dhcp @@ -11,6 +11,11 @@ config dnsmasq option localservice '1' option domain '{{ local_domain }}' option local '/{{ local_domain }}/' +{% if dhcp is defined and dhcp.domain_whitelist is defined %} +{% for domain in dhcp.domain_whitelist %} + list rebind_domain '{{ domain }}' +{% endfor %} +{% endif %} config dhcp 'lan' option interface 'lan' @@ -29,7 +34,8 @@ config odhcpd 'odhcpd' option maindhcp '0' option leasefile '/tmp/hosts/odhcpd' option leasetrigger '/usr/sbin/odhcpd-update' - option loglevel '4' +{# was 4, set to 3 to disable message 'No default route present, overriding ra_lifetime' #} + option loglevel '3' {% for ap in aps %} config host @@ -60,4 +66,4 @@ config domain option ip '{{ host.ip }}' {% endfor %} -{% endif %} \ No newline at end of file +{% endif %}