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 - oc

#1
Thanks for the clarifications, franco 😊

I was also wondering if we'd be so lucky that the below resolves the "wireguard racing unbound at boot time" issue (leading to a long boot delay when there are outbound WG connections to endpoints referred to by name rather than IP)?

"wireguard: move configuration into background for boot"

Thank you!
#2
Tonight I've been prompted to update Zenarmor to 2.7.4 (which surprised me, as I had done that mere days ago). Since I did that several times without encountering any issues, I clicked 'update' and then at the very end 'restart' (zenarmor). And I waited.

But as I had some other consoles open (to other network devices, local and remote), I noticed that at some point I had lost all connectivity. A short while after I have heard the OPNsense reboot sound from the PC speaker (it's in another room). OPNsense came back OK, all working (including zenarmor) - but it is the first time this happens. There was also a crash report on the OPNsense frontpage.

Fingers crossed this is a one-time event...
#3
General Discussion / Re: DNS wildcards in Alias (Hosts)
November 25, 2026, 05:27:41 PM
Quote from: mooh on November 25, 2026, 03:58:57 PMUnbound can still be used as the main DNS resolver. Only redirect "Microsoft.com" and any other wildcard domain to your dnsmasq listening at 127.0.0.1:53053 for example. Don't use port 5353. It's reserved for mDNS. Queries not redirected will work as usual.
I have set that up, it works. But it's clunky, in a number of ways, including regarding adding a new entry, which needs to be done in at least two places (Unbound and Dnsmasq) - and potentially a new rule as well.

Quote from: mooh on November 25, 2026, 03:58:57 PMI have been running this solution for a while but don't do it anymore. The core of the problem is that the external alias populated via dnsmasq "ipset" doesn't keep the TTLs around. Dnsmasq itself doesn't clean up when a TTL expires. External tools don't know the time of expiry, so there is no way of deleting entries at the right time. If an entry is cleaned up before it expires, DNS still resolves the now deleted address from cache, not update the alias, and the rule will fail. Clean up too late and the alias may allow traffic to an address that provides a very different service. This is particularly relevant in times of massive cloud services.
Indeed - and that's something Martin's plugin solves - his plugin is pruning the record after its own original TTL expires (rather than relying on a one-size-fits-all discretionary TTL).

Quote from: mooh on November 25, 2026, 03:58:57 PMIn the end, there is no good solution for DNS level issues on the IP level. I'd also argue that a service provider that can't provide a list of specific DNS names for its service should reconsider the design. But in my experience they will just tell everyone to use a proper firewall ...
In my experience (including at least two of the top enterprise firewall vendors), the big guys are also not flawless when it comes to wildcard-based rules/policies. And I agree with you - the current CDN model, relying on Anycast IPs makes this very hard to implement reliably - but cybersecurity isn't a perfect science, yet rather (IMO) a way to continuously work on "making things safeR" (not entirely safe). And, for getting to "safer", an imperfect wildcard firewall alias is better than nothing.
#4
General Discussion / Re: DNS wildcards in Alias (Hosts)
November 25, 2026, 01:17:36 AM
Hello Martin,

Thank you for getting back to me - I really appreciate it!

I would like to keep Unbound as the "default/basic" resolver for all my clients, both for its ability to resolve recursively, as well as for the stats dashboards, which I started liking and looking at quite frequently (and which led to interesting insights). I would not want to relinquish that.

Therefore I would find it OK to only forward 'special' domains that I want to wildcard (and access through different gateways, which reach different outbound VPNs through PBR).

It is thus assumed that for each 'special' wildcard URL I would have to set up a conditional forwarder in Unbound (Services: Unbound DNS: Query Forwarding), and also an entry in your plugin, assuming that I want to associate each special domain (or more than one, but not all of them) with a certain (different for each domain or group of domains sharing the similar intended gateway) firewall alias, which I then can associate (through PBR) with the designated gateway?

Also - would I have an option (in your plugin) to have a catch-all rule, where all the forwarded queries (to say port 127.0.0.1:5353) are automatically associated with a designated firewall alias? (meaning that if I only set a *.domain.tld in Unbound, but nothing related to it in your plugin, that all such forwarded queries automatically land in a designated firewall alias)

And the last question: I have never dealt with non-core plugins. What can I expect when updating OPNsense? Will your plugin still be there and work? Do I have to reinstall? Can it break and if so, how do I cleanly remove/reinstall it? Can it somehow break OPNsense? Sorry for the silly questions, but I am still a relatively new user of OPNsense (yet very excited and satisfied), and patches always still raise my heartbeat a bit :)

Notwithstanding the above - I salute the apparition of your plugin, and think it has its place and merit. Of course, it would be great if wildcard aliases were embedded into Unbound - but, as this isn't the case, we cannot add a feature request to either one of the teams (OPNsense/Unbound), and thus have to deal with it ourselves.

Danke sehr,
OC
#5
Likewise, no issues with Monit after patching to 26.7.10.
#6
Quote from: yunan777 on November 17, 2026, 10:33:44 AMThe CPU and traffic graph on dashboard widgets display no data after updating to 26.7.9. But in reporting -> traffic, the graph works well.
Works well for me, updated to .9, then .9_1, then .9_3.

Can you please try to reproduce the issue in another browser/on another computer?
#7
General Discussion / Re: DNS wildcards in Alias (Hosts)
November 18, 2026, 05:20:05 AM
Hallo Martin Seener,

Thank you for putting the work into creating this plugin! I really hope it'll make it into the core sometime soon.

I do have a question though - on your website you are mentioning this model:

client ──DNS──▶ AdGuard Home / Unbound ──▶ Wildcard Aliases ──▶ upstream resolver

Which makes me wonder - would your plugin necessarily have to forward the lookup to an external upstream resolver? If currently that is  the case, is there any way to insert it before Unbound, and let Unbound be the actual resolver? Or could at least the plugin refer ONLY its own resolution requests to an upstream server, and let Unbound take care of all client resolution (most of which isn't in most case alias-based)?

Danke,
OC
#8
Quote from: franco on November 16, 2026, 07:21:27 PMThis was also hotfixed in 26.7.9_3.


Cheers,
Franco
Many thanks, Franco. Applied without issues. Health check is now back to normal <3

Danke sehr,
OC
#9
Good day all, and thanks for the patch, which I have just installed. I can now confirm that the "good" behavior is back - meaning editing aliases is again much simpler from a UX perspective.

Two questions:

1. after applying the patch, there is the following in the health check - I guess this is normal?

Checking all packages: ....
opnsense-26.7.9_1: checksum mismatch for /usr/local/opnsense/mvc/app/controllers/OPNsense/Firewall/AliasController.php
opnsense-26.7.9_1: checksum mismatch for /usr/local/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/FilterBaseController.php
opnsense-26.7.9_1: checksum mismatch for /usr/local/opnsense/mvc/app/views/OPNsense/Firewall/alias.volt
opnsense-26.7.9_1: checksum mismatch for /usr/local/opnsense/mvc/app/views/OPNsense/Firewall/filter_rule.volt
opnsense-26.7.9_1: checksum mismatch for /usr/local/opnsense/mvc/app/views/OPNsense/Firewall/nat_rule.volt

2. will this 'fix' eventually be integrated in the 'main' version, so that the health check warnings go away?

Thanks,
OC
#10
Thanks for reporting this, @Nullman. I noticed the same today (coincidentally, I have tweaked my aliases over the last few days, and I have updated to 26.7.9 yesterday, and to 26.7.9_1 today - so I observed something feels different).

It would be very practical if this was reverted to what worked previously.

Thanks :)
OC
#11
26.7, 26.10 Series / Re: Upgrade to 26.7.8 broke Gateways
November 03, 2026, 10:13:15 PM
I upgraded from 26.7.7 to 26.7.8_1 and then 26.7.8_2 and experienced no issues (and I have a pretty diversified gateways setup, policy based routing, etc.) - thanks OPNsense team!
#12
Quote from: Bob.Dig on October 24, 2026, 10:41:51 AM
Quote from: oc on October 24, 2026, 02:28:06 AMBut while it works it's a quite cool setup
I don't think so.
I agree that it's a bit convoluted, but it does follow various segmentation/filtering best practices (from the logical standpoint). For instance, I can control what reaches the Flint, and what the Flint can reach (except what's flowing through the encrypted tunnels, but that's flowing through different VLANs through opnsensee, so it's contolled at that point). But by having the Flint2 (which is also enabled as a wireguard server) behind the opnsense, I have limited IPs/countries/blacklists that can/not reach it inbound, and that it can/not reach when reaching out. The result - very very clean logs on the Flint.

Notwithstanding that, I'm always open to improve the model(s). What would you recommend/change?
Quote from: Bob.Dig on October 24, 2026, 10:41:51 AMNone the less, what happens if you don't monitor the gateway? There is often no point in monitoring it anyway. 
Unfortunately, that won't resolve the issue - I have tried that. Apparently, even with ongoing monitoring disabled, dpinger still looks at the health of the gateway at boot time. So the results have been mixed, whether ongoing monitoring is enabled or disabled. Sometimes some routes are active after a reboot, other times they are not (same routes). It's really quite random. But, as mentioned, I can live with that, as a compromise. But I'd like to get this fixed, as long as it doesn't imply any changes that are likely to be undone at the next (big) opnsense update.

Thanks, and have a good weekend,
OC
#13
https://forum.opnsense.org/index.php?msg=276271
#14
Hallo meyergru - just wanted to follow up on this one as it's been a while. Perhaps my solution will help someone who experienced the same issue (slow boot due to Wireguard being bogged down by DNS resolution when setting up outbound wireguard connections to URLs rather than IPs - and when that happened, inbound Wireguard clients dialing into the opnsense had issues with DNS resolution). This behavior has been reported by others, and various LLMs agreed that it's a known issue, offering just some clunky workarounds (e.g., scripted delayed wireguard). I decided not to go that way.

What I ended up doing was using an external Wireguard router (a Flint 2) which takes care of all outbound Wireguard connections (segregated by VLANs and different igb NIC connections). I have also left the inbound Wireguard instances to opensense, from both another remote Flint 2 carrying quite a bit of traffic, and various mobile devices (such as phones tunneling all traffic through opnsense/zenarmour) - and all works well with just inbound Wireguard. The opnsense is booting fast and external Wireguard clients have no issue connecting to it and getting good DNS resolution.

I still have a (much smaller) issue, also documented - dpinger is giving up if thinking a gateway is down at boot time, and fails to add the respective (already defined) static route to the remote network connected via Wireguard to opnsense's routing table. When that happens, I cannot reach the affected remote network, and have to restart the gateway in question (but once I do that, traffic resumes right away - and I can do it either locally or connected to the opnsense over VPN so no super-big biggie, but it's still annoying in a setup that attempts to be as enterprise-y as possible). Online research suggests this behavior is freebsd-specific. In my case this happens due to a chicken-and-egg situation between opnsense and the Flint2 - because the Flint2 is going online through the opnsense - so obviously while the opnsense is rebooting there's no connectivity - and if the opnsense checks the gateways going through the Flint2 while booting - sometimes they are unavailable and thus the vicious circle. But, like I said, this only happens occasionally, and the fix is one click away, and can be done remotely. But while it works it's a quite cool setup, because the Flint2 does both inbound/outbound VPN, with various levels of Kill switches, and its own traffic and internet access is protected by opnsense/zenarmor/crowdsec.

Thank you meyergru for the steady assistance. I really appreciate it!

Have a great weekend, opnsense community!
OC
#15
Thank you all. I thought I'll provide an update of what I've done to (hopefully) get more life out of the new SSD - maybe this will help anyone:

1. reduced the logging volume and retention time in Zenarmor, and focused on the interfaces of the networks I actually want to protect against ZA's core abilities. This greatly reduced the # of entries/24h. Over a week the "full vs empty" drive appears stable (1% of a 512GB SSD)
2. reduced the volume of ntopng logging (e.g., timeseries), and decided I'll keep ntopng disabled until such time when I need it to troubleshoot something (or to present the system to someone)
3. disabled hostwatch
4. disabled netflow
5. under Firewall/Settings/Advanced, disabled Default pass - Log packets matched from the default pass rules
6. enabled /var/log and /tmp RAM disks (this was done before, and while it didn't prevent my former SSD from dying, it likely delayed its demise).

All the best,
OC