<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem with dante socks server doing DNS lookups]]></title><description><![CDATA[<p dir="auto">I have followed this <a href="https://forum.netgate.com/topic/139300/socks5-proxy-dante-on-virtual-ip-to-use-openvpn-ovpnc1-as-gateway">guide</a> and this <a href="https://forum.netgate.com/topic/143101/socks5-via-dante-needs-to-be-present-by-default-see-attached-tutorial-example">one</a> to set up a SOCKS5 client on pfsense. I'm using it to proxy web connections over various VPN tunnels I have preconfigured on pfsense.</p>
<p dir="auto">The HTTP/S requests are successfully being processed by dante, however, the issue I'm running into is that dante will not process the DNS requests over the specified VPN connection- it always defaults to to the WAN dns (so the browsers are leaking DNS requests).</p>
<p dir="auto">Below is my config file:</p>
<pre><code># Logging

debug: 1

logoutput: /var/log/sockd.log

# User
user.unprivileged: nobody

# Bind ports
internal: em1 port = 1080
external: ovpnc3

# Auth
clientmethod: none
socksmethod: none

client pass {
  from: 0.0.0.0/0 to: 0.0.0.0/0
  log: error
  clientmethod: none
}

# generic pass statement - bind/outgoing traffic
socks pass {
  from: 0.0.0.0/0 to: 0.0.0.0/0
  command: bind connect udpassociate bindreply udpreply
  socksmethod: none
  log: error
}
</code></pre>
<p dir="auto">I verified that my browser connections are in fact 100% proxified since I ran wireshark on the boxes hosting the browsers and found no traffic that was non-socks. Further, I tried connecting my browsers to a few external public SOCKS5 proxies and found that they were properly proxyfing the DNS connections.</p>
<p dir="auto">Reading up on the dante documentation, the only directive I could find that is DNS related is the "resolveprotocol" command, which can be set to tcp, udp or fake, none of which solved my problem.</p>
<p dir="auto">Looking at the dante logs under /var/log/sockd.log, I see a number of pass: tcp/connect entries, which show the IP of the request along with how it was routed through dante, but not a single line that references any UDP packets.</p>
<p dir="auto">To clarify, I want only traffic processed by dante/SOCKS to be sent through the VPN tunnel- I could configure pfsense to send all DNS traffic though a single VPN tunnel using NAT rules, but that isn't what I'm trying to do here.</p>
<p dir="auto">Any thoughts as to why dante isn't processing DNS?</p>
]]></description><link>https://forum.netgate.com/topic/153289/problem-with-dante-socks-server-doing-dns-lookups</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 10:25:48 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/153289.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 May 2020 06:08:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with dante socks server doing DNS lookups on Sat, 17 Jul 2021 19:48:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sparkman123">@<bdi>sparkman123</bdi></a> said in <a href="/post/910300">Problem with dante socks server doing DNS lookups</a>:</p>
<p dir="auto">For me it is not working with any ovpn client in the first place. <img src="https://forum.netgate.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=717669fab53" class="not-responsive emoji emoji-android emoji--confused" style="height:23px;width:auto;vertical-align:middle" title=":confused:" alt="😕" /></p>
]]></description><link>https://forum.netgate.com/post/992710</link><guid isPermaLink="true">https://forum.netgate.com/post/992710</guid><dc:creator><![CDATA[Bob.Dig]]></dc:creator><pubDate>Sat, 17 Jul 2021 19:48:46 GMT</pubDate></item></channel></rss>