Page 1 of 1

DHT doesn't work if using SOCKS5 proxy for trackers only.

Posted: Wed Apr 20, 2022 1:48 pm
by Alexey104
Hello!

I have a VPS with Shadowsocks running on it, and I want to use it as proxy for connecting to announce trackers that are blocked in my country. I don't need to route the actual torrent traffic via proxy, only connect to blocked trackers and then upload/download directly with my IP. This is my proxy settings:

Code: Select all

    "proxy": {
        "anonymous_mode": false,
        "force_proxy": false,
        "hostname": "127.0.0.1",
        "password": "",
        "port": 1080,
        "proxy_hostnames": false,
        "proxy_peer_connections": false,
        "proxy_tracker_connections": true,
        "type": 2,
        "username": ""
    },
This works as expected - I can successfully connect to blocked trackers, and they can see me, but DHT doesn't work at all until "proxy_peer_connections" is set to true, which I don't want. Otherwise DHT nodes are always 0.

Is there any way to use proxy only for announcing to trackers while connecting to peers directly and have DHT working at the same time?