Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Monviech (Cedrik)

#1
As reference, I added it to DHCPv6 here, and it's off by default:

https://github.com/opnsense/core/blob/a4b837e2a3fca50b3425c5c99bddb0489da64199/src/opnsense/mvc/app/models/OPNsense/Kea/KeaDhcpv6.xml#L124-L127

but in DHCPv4 I guess it was added at the beginning when dnsmasq wasn't that much on the radar as the standard, so its on per default to help normal users:

https://github.com/opnsense/core/blob/a4b837e2a3fca50b3425c5c99bddb0489da64199/src/opnsense/mvc/app/models/OPNsense/Kea/KeaDhcpv4.xml#L181-L184
#2
I wouldn't mind changing it to default to off, but I want a github ticket for it so it can be discussed.
#3
Quote from: nero355 on November 25, 2026, 04:12:03 PM
Quote from: Monviech (Cedrik) on November 25, 2026, 01:00:28 PMAuto collect option data sets gateway, dns server etc... from the system configuration. If you disable it, these fields are all manual.
Why did you guys choose to implement it like that ?

To me it's a bit of a weird "construction" and luckily something I immediately noticed when moving from ISC to KEA so it never caused me any issues, but I can imagine someone will not notice it while looking for a field to configure those options manually...
In fact I think I can remember a topic/post or two where that was the case :)

You can define any DHCP option manually as well (in the DHCP option tab) and they get defined at the latest point in the KEA packet chain that way (supersede, before the packet is sent out). So you can supersede even options that option auto collect would send out, even if these fields are hidden. xD

https://github.com/opnsense/core/blob/a4b837e2a3fca50b3425c5c99bddb0489da64199/src/opnsense/mvc/app/models/OPNsense/Kea/KeaDhcpv4.php#L184-L187

https://reports.kea.isc.org/dev_guide/d5/d27/libdhcp_flex_option.html

"supersede - Specifies the supersede action: it takes a string expression on the query packet. If the expression evaluates to a not empty value, the option with the value is added to the response. If it already exists it is overwritten."

https://docs.opnsense.org/manual/kea.html#dhcp-options


----

I think your point is that the regular fields are not visible while auto collect is enabled, so it may not be obvious where to configure them manually. That's fair. Once you disable auto collect, the fields become visible and you can set them directly.

The custom options I mentioned are another way to override them, but you don't need those for the usual gateway, DNS, and NTP settings.
#4
Talking with you helped me to find that it was still a bit weird and fix it. So thanks :)
#5
Auto collect option data does not influence the DHCPv4 domain name option.

When the subnet's Domain name field is empty, the system domain is added during configuration generation:

https://github.com/opnsense/core/blob/f1c1cde32eb1c0fc4cad4863009da5322a5f9cb8/src/opnsense/mvc/app/models/OPNsense/Kea/KeaDhcpv4.php#L169-L174

I find that a bit unexpected too; theoretically, the fallback could also depend on Auto collect option data.

https://github.com/opnsense/core/pull/11314
#6
Ich betreibe 2 OPNsensen hinter 1 Fritzbox, mit IPv4 und IPv6, ohne größere Unterbrechung.

Dafür benutze ich den ndp proxy, präfix delegation gibt es dann aber keine.
https://docs.opnsense.org/manual/ndp-proxy-go.html#high-availability

Ist aber etwas komplexer das richtig zu konfigurieren, und es gibt in der Fritzbox keine möglichkeit zu sagen "alle IP addressen des on-link präfixes dürfen inbound alles". Man muss dann halt einzelne IPv6 addressen als exposed host eingeben wenn der Verkehr eingehend auch erlaubt werden soll (ausgehend geht standardmäßig in der Fritzbox ja alles)

CARP virtuelle IPs braucht man für IPv6 dann auch nicht, nur für IPv4

Insgesamt ist es weniger schön als echte Präfix Delegation oder statisches IPv6, aber läuft und ist ganz cool.


#7
Auto collect option data sets gateway, dns server etc... from the system configuration. If you disable it, these fields are all manual. It shouldn't really influence anything else.

https://github.com/opnsense/core/blob/f1c1cde32eb1c0fc4cad4863009da5322a5f9cb8/src/opnsense/mvc/app/models/OPNsense/Kea/KeaDhcpv4.php#L62-L64
#8
Nothing about Unbound was changed so I think thats okay.
#9
I wanted to offer a migration but at the same time we didn't know as it was a bit of an assumption.

Its documented here:

https://github.com/opnsense/docs/commit/10c01b996cb0b9ed3e12f5d09bef2b2fd2e22510
#10
It was already tested and it seems to do the trick. You can install it via this command in a root shell (if you are on the latest community version)

opnsense-patch https://github.com/opnsense/core/commit/58e3c06a683495254c2bbd4a00ef0613315324d3
#11
The issue is old but this came up again and this will most likely fix it:

https://github.com/opnsense/core/pull/11305
#12
Disabling "enable" dnsmasq is also quite disruptive :)

(take my response as humor, I know how it is xD)
#13
General Discussion / Re: Release related end-user burnout
November 23, 2026, 01:08:35 PM
Bigger manual intervention is stuff like this:

https://github.com/opnsense/changelog/blob/218ee41bc2860e1e1b38cafde5f8d8fcd47f644e/community/26.7/26.7#L95-L101
#14
General Discussion / Re: Unable to connect to new DEC697
November 22, 2026, 11:15:44 AM
Best send a mail to sales with your issue if you bought it directly from deciso.
#15
26.7, 26.10 Series / Re: issue with legacy firewall rules
November 21, 2026, 01:47:41 PM
you can install the os-firewall-legacy plugin. But the migration assistant exists even without it. And it has a button to delete all old rules.