From eb2af7f2fd7bd2c79d927adb438a05a48802cf5e Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 3 Mar 2025 16:07:56 +0100 Subject: [PATCH] Services: Dnsmasq / add dhcp option 114 for captive portal (https://github.com/opnsense/core/issues/8329) --- src/opnsense/scripts/dns/dnsmasq_dhcp_options.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/opnsense/scripts/dns/dnsmasq_dhcp_options.py b/src/opnsense/scripts/dns/dnsmasq_dhcp_options.py index c7380878a..83af23282 100755 --- a/src/opnsense/scripts/dns/dnsmasq_dhcp_options.py +++ b/src/opnsense/scripts/dns/dnsmasq_dhcp_options.py @@ -29,7 +29,11 @@ import json import subprocess -result = {} +# not yet registered by name, but pratical to have +# https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml +result = { + '114' : 'dhcp captive-portal [114]' +} sp = subprocess.run(['/usr/local/sbin/dnsmasq', '--help','dhcp'], capture_output=True, text=True) for line in sp.stdout.split("\n"): parts = line.split(maxsplit=1)