-
Notifications
You must be signed in to change notification settings - Fork 20
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
Anonymized DNSCrypt doesn't work in WSL2 or Hyper-V on Windows #57
Comments
Hey @awebeer256, do you have this issue if you install the application directly from https://github.com/DNSCrypt/dnscrypt-proxy? I feel like this isn't an issue with the docker container, but maybe something that could be answered on the official repo regarding your congfiguration? |
Nope, it's all fine if I install it natively. |
Thanks for confirming! I assume you are using the same configuration toml file for both local and docker installations, just to rule out a configuration issue? Can you try turning up the I'm not sure what this container could be missing to prevent it working like any other OS. Maybe the certificates need updating or there is a docker permission we need to adjust to allow fragmented packets re: DNSCrypt/encrypted-dns-server#58? |
Yep, the config is the same. Here's the first few lines after starting the container, with
No message about fragmented packets 😕. I'm using this container as part of https://github.com/losuler/pihole-dnscrypt-docker. Here's my
|
Sorry I haven't had much time to investigate this further yet. Can you try running the container in host networking mode to rule out any issues with the docker bridge and NAT? Do you have an example configuration including some actual servers I can test this with? |
I tried with just klutchell/dnscrypt-proxy. Compose:
…and had the same problem. Should I open an issue in that repo instead? |
They are the same repo. I renamed |
Oh, oops. As I said, I'm wanting to use this container in the context of |
Thank you for testing with host networking, that actually rules out a whole bunch of issues I was considering. |
My host machine is Windows 10 (amd64), and I'm using the WSL2-based Docker engine. I have the same containers running with no problems on another machine, but it's in another physical location (many kilometres away), and its host OS is Ubuntu 22. 🤷 |
This sounds related, since WSL2 does a bunch of interesting stuff with networking for Docker. Can you reproduce the issue at the same location in a Linux VM or another device running Linux? |
I booted into an Ubuntu 22 live session on the same machine, installed Docker, and ran the containers with copy-pasted It's not just WSL2, though; back in Windows, I switched to Hyper-V and the problem persisted. |
In my
.toml
I have:I've also uncommented the section to use the lists of ODOH servers and relays.
Under the anonymization section, I've made sure every server has a valid route, and I have this:
The problem is that ODOH servers work, but Anonymized DNSCrypt ones don't.
In the log, for every Anonymized DNSCrypt server, I get this:
The text was updated successfully, but these errors were encountered: