aboutsummaryrefslogtreecommitdiff
path: root/templates/vmbr1.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vmbr1.conf.j2')
-rw-r--r--templates/vmbr1.conf.j229
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/vmbr1.conf.j2 b/templates/vmbr1.conf.j2
new file mode 100644
index 0000000..7e00a2d
--- /dev/null
+++ b/templates/vmbr1.conf.j2
@@ -0,0 +1,29 @@
+# Serve DHCP only on vmbr1
+interface=vmbr1
+bind-interfaces
+
+# Disable DNS functionality entirely
+port=0
+
+# DHCP range with 12h lease time
+dhcp-range={{ nat_subnet_prefix }}.100,{{ nat_subnet_prefix }}.200,12h
+
+# Gateway and external DNS for clients
+dhcp-option=3,{{ nat_subnet_prefix }}.1 # Gateway
+dhcp-option=6,1.1.1.1,1.0.0.1 # DNS servers
+
+# Block dnsmasq from loading unrelated configs
+no-hosts
+no-resolv
+
+# Disable ping checks and extra interfaces
+no-ping
+no-dhcp-interface=
+
+# Drop privileges
+user=dnsmasq
+group=dnsmasq
+
+# Logging
+log-queries
+log-dhcp