-
-
Notifications
You must be signed in to change notification settings - Fork 383
Unexpected behavior with client-subnet-always-forward
and serve-expired
#825
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
Comments
Hi, I'm unable to reproduce this problem. Can you append your unbound.conf to this issue? |
My bad, after further checking, the bug is a bit harder to reproduce. In order to reproduce, do the following with the same config:
With this you should get two outbound queries with the ECS you requested for 1. and 2. Then you should get uncached requests with ECS = 127.0.0.0/24 for 3,4,5. Let me know if you need more details. |
I don't see any ECS in the response from unbound for 3, 4, and 5. And the request that goes upstream also doesn't have ECS for the queries 3, 4, and 5. |
Just to confirm, subnet is enable at compile time on your build? |
Yes, I also see the subnet option come back in the first two queries, and I see the option go out upstream for the first two queries. |
After more testing, I found the right way to reproduce the issue. You need to add the following to the configuration:
Then to reproduce:
The dig after the record is out of cache will keep going to the upstream with the My guess is that we rather have a bug with |
@Philip-NLnetLabs were you able to reproduce with the new steps above? |
Yes, I see it as well. Thanks. I'll try to figure out why that happens. |
client-subnet-always-forward
client-subnet-always-forward
and serve-expired
测试在1.17.1版本已经修复. |
* nlnet/master: - iana portlist update. - Fix NLnetLabs#812, fix NLnetLabs#846, by using the SSL_OP_IGNORE_UNEXPECTED_EOF option to ignore the unexpected eof while reading in openssl >= 3. - Fix ssl.h include brackets, instead of quotes. - Fix unbound-dnstap-socket test program to reply the finish frame over a TLS connection correctly. - Fix for NLnetLabs#852: Completion of error handling. Changelog entry for issue NLnetLabs#825 Improved comment Test cache update from serve-expired and client-subnet-always-forward ifdef CLIENT_SUBNET Fix issue NLnetLabs#825: interaction between ECS and serve-expired.
Describe the bug
When the
client-subnet-always-forward
option is enabled and thesend-client-subnet
field is left empty, it is expected that only downstream queries containing an ECS record would be sent upstream. However, the current behavior is that all queries are sent upstream with either the downstream ECS or the generated one, disregarding the "send-client-subnet" setting entirely.To reproduce
Steps to reproduce the behavior:
client-subnet-always-forward
toyes
and do not specify a send-client-subnetExpected behavior
The upstream query should not include an ECS option generated with the client source address.
System:
unbound -V
output:The text was updated successfully, but these errors were encountered: