I nearly waste my 1 day for this issue.
I have 2 PCs; 1. Windows as a client, 10.20.30.20 2. Debian(latest) as a server, 10.20.30.10
I install Dante(SOCKS proxy) and configure/restart it. I can use this SOCKS proxy(10.20.30.10/1080TCP) from "1". (Firefox, No auth)
So I add this proxy to uTorrent's connection setting. Proxy Server: Type=SOCKS5, Proxy=10.20.30.10, Port=1080, No Auth
uTorrent start using my SOCKS proxy, but it can't connect to DHT/UDP. uTorrent make these connections(example);
*65432 = uTorrent's Listening Port
TCP 10.20.30.20:(random)->10.20.30.10:1080 {Yeah, this is what I'm expected!}
UDP 10.20.30.20:65432->10.20.30.10:(random) {Huh?}
Since uTorrent make a UDP packet, and Dante doesn't open UDP port(s) UDP packet was ignored(drop) by a server. Dante is opening only 1 port(TCP 1080), and I can't understand why uTorrent is not using TCP protocol when relaying UDP.
My questions are: 1. How can I force Dante to open UDP port dynamically, when asked? 2. If "SOCKS5 is supporting UDP" is true, why uTorrent can't send UDP to TCP port?
dante setting
logoutput: syslog
internal: 10.20.30.10 port = 1080
external: tun0
method: username none
clientmethod: none
user.privileged: root
user.notprivileged: nobody
user.libwrap: nobody
connecttimeout: 50
client pass {
from: 10.20.30.20/32 port 1024-65535 to: 0.0.0.0/0
}
client block {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect error
}
block {
from: 0.0.0.0/0 to: 127.0.0.0/8
log: connect error
}
pass {
from: 10.20.30.20/32 to: 0.0.0.0/0
protocol: tcp udp
#command: bind connect udpassociate
##^ I already tried Enable/Disable command, change from to 0.0.0.0/0, and so on, but no success!
}
block {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect error
}