Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firewall --> Aliases --> Hosts does not follow CNAMEs #8159

Open
2 tasks done
Kornelius777 opened this issue Dec 22, 2024 · 1 comment
Open
2 tasks done

Firewall --> Aliases --> Hosts does not follow CNAMEs #8159

Kornelius777 opened this issue Dec 22, 2024 · 1 comment
Labels
support Community support

Comments

@Kornelius777
Copy link

Kornelius777 commented Dec 22, 2024

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug

My Alias "Debian Update Servers" consists of those servers which are strictly necessary for performing Debian Updates.
Among these Server Names, there is e.g. "deb.debian.org" which is a CNAME for "debian.map.fastlydns.net".
Unfortunately, entering deb.debian.org into the Hosts List isn't sufficient. To make it accessible to my servers, I also had to add debian.map.fastlydns.net.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Firewall --> Aliases'
  2. Add Alias, Type Hotst(s)
  3. Add hostname (e.g. deb.debian.org) which resolves as a CNAME
  4. Access e.g. deb.debian.org. (will be blocked)

Expected behavior

I would expect the alias to dive into the CNAMES and resolve the whole chain.

Describe alternatives you considered

The only workaround for me (currently) is: Do a nslookup for every hostname and add the "final" hostname from the CNAME chain into the alias, additionally

Screenshots

none

Relevant log files

none

Additional context

none

Environment

Software version used and hardware type if relevant, e.g.:

OPNsense 24.7.11_2-amd64

@AdSchellevis AdSchellevis added the support Community support label Dec 23, 2024
@AdSchellevis
Copy link
Member

cnames being are resolved, but if there's more [dns] magic in between you might not receive the same entries on every request.
image

if addr.rdtype is RdataType.CNAME:
# query cname (recursion)
self._request_queue.append(addr.target)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Community support
Development

No branches or pull requests

2 participants