Bug #13282
closedAlias content is sometimes incomplete if the firewall cannot resolve an FQDN in the alias
100%
Description
If an invalid FQDN is present in an alias before a valid one, the entire table will be empty.
For an example, if I create an Alias with
windowsupdate.com
google.com
It will be an empty table even when loaded into a rule.
If I create an Alias with the domains in the reverse order, everything works fine.
It seems that in the processing order, there is no handling for if one of the domains in the list is invalid.
See attached screenshot showing an active rule, alias, and an empty, broken table.
May be related to redmine 9296 as it also results in empty tables.
Files
Updated by Reid Linnemann over 2 years ago
There must be something else to this than just the unresolvable host, I've tried several times to replicate this and have been unsuccessful.
When you tested this, was there anything special about your resolver? Did you use dnsmasq or unbound, or were you configured to query name servers assigned manually or via DHCP?
Updated by Kris Phillips over 2 years ago
Reid Linnemann wrote in #note-2:
There must be something else to this than just the unresolvable host, I've tried several times to replicate this and have been unsuccessful.
When you tested this, was there anything special about your resolver? Did you use dnsmasq or unbound, or were you configured to query name servers assigned manually or via DHCP?
Reid,
I was testing with unbound and DNS resolution was functional.
However, I just tried to recreate this on a fresh install of 22.05 RELEASE and I cannot. Last when I was testing this I was on RC4 or 5 and could reproduce it regularly. Not sure what changed or if there was some other circumstance to this that I'm no longer hitting (maybe a package or another remnant of my testing). Where there any changes between the RC and release to the functions here or PHP?
Updated by Reid Linnemann over 2 years ago
No, none that I am aware of. I know that filterdns has been untouched for a few months now. I'll look for changes elsewhere that could be related.
Updated by Chris Linstruth over 2 years ago
This has been squirreley for a long time and has been very difficult to reliably duplicate but it is very real. #9296 as stated earlier.
Updated by Reid Linnemann over 2 years ago
I trust that it is definitely real and not a false or misinterpreted report. There's a reason for it and with enough tenacity I'll find it.
Updated by Reid Linnemann about 2 years ago
- Status changed from New to Feedback
- Target version set to 23.01
- % Done changed from 0 to 100
I'm pretty sure the invalid FQDN is a red herring, I found a lot of thread synchronization issues with filterdns that should be resolved as of https://github.com/pfsense/FreeBSD-ports/commit/eebf583cb47ad8255f3890b66349f8eb7d66bc95
Updated by Jim Pingle about 2 years ago
- Project changed from pfSense Plus to pfSense
- Subject changed from FQDN Aliases Break if an Invalid Domain is Present in the Chain to Alias content is sometimes incomplete if the firewall cannot resolve an FQDN in the alias
- Category changed from Aliases / Tables to Aliases / Tables
- Target version changed from 23.01 to 2.7.0
- Affected Plus Version deleted (
22.05) - Plus Target Version set to 23.01
Updating subject for release notes.
Updated by Jim Pingle almost 2 years ago
- Status changed from Feedback to Resolved
Hard to reproduce this but at least as stated it appears to be OK. I tried a few variations and every time the table contained the expected data. Can always reopen/revisit if need be, though there is more significant filterdns work coming in the next release that will likely render this moot either way.