Replies: 2 comments 4 replies
-
|
Not necessarily... Tor emits this warning whenever it receives an IP address rather than a hostname over the SOCKS connection. SOCKS5 already supports remote hostname resolution, so switching to SOCKS4a isn't automatically the fix. Whether it's a real leak depends on how dnscrypt-proxy got the resolver address in the first place. DNS stamps can embed the resolver's IP directly (the addr field). If that's the case for your configured servers, dnscrypt proxy hands Tor an IP it already had, not one it resolved locally, and the warning is benign. If a server is instead configured via hostname (or a stamp with an empty addr, which requires resolving the hostname separately), then yes, that resolution is happening before the SOCKS connection, and the warning is flagging something real. |
Beta Was this translation helpful? Give feedback.
-
|
For the dnscrypt-proxy config specifically, I would not change that line to The sample config documents Tor via SOCKS5: proxy = 'socks5://dnscrypt:dnscrypt@127.0.0.1:9050'and the current code parses The Tor warning is about the endpoint dnscrypt-proxy asks Tor to connect to. In the normal TCP path dnscrypt-proxy dials the resolver address it already has, so Tor sees an IP endpoint. That is not the same thing as leaking the DNS query names; those are still inside the encrypted DNSCrypt/DoH connection. If the goal is to avoid direct resolver visibility, I would use dnscrypt-proxy's anonymized DNS relay routing instead of trying to switch the SOCKS version. Also keep |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Tor now shows a warning each time dnscrypt-proxy resolves a DNS address:
Tor[31932]: Your application (using socks5 to port 443) is giving Tor only an IP address. Applications that do DNS resolves themselves may leak information. Consider using Socks4A (e.g. via privoxy or socat) instead. For more information, please see https://2019.www.torproject.org/docs/faq.html.en#WarningsAboutSOCKSandDNSInformationLeaks. [1 similar message(s) suppressed in last 300 seconds]
We are currently using this in dnscrypt-proxy's toml:
proxy = 'socks5://dnscrypt:dnscrypt@127.0.0.1:9050'
Should it be changed to use socks4a instead?
Beta Was this translation helpful? Give feedback.
All reactions