Skip to content

proxy support for socks5 #105

chovy opened this Issue Nov 29, 2012 · 8 comments

5 participants

chovy commented Nov 29, 2012

I've tried to get socks5 to work with rtorrent, but it doesn't seem to have any impact.

Setup the socks5 proxy on port 9800:

ssh -ND 9800 user@otherhost

in .rtorrent.rc


It cannot download any data from tracker.

Tracker: [Server returned nothing (no headers, no data)]

And my ip does not appear to use the IP from "otherhost" when I check with

I also tried using tsocks rtorrent

server =
eserver_type = 5
server_port = 9800

This shows my IP as coming from 'otherhost', but after a few seconds rtorrent freezes up.

I am using rTorrent 0.9.2/0.13.2

callesg commented Dec 2, 2012

a http proxy is not the same thing as a socks proxy.

chovy commented Dec 2, 2012

Its my understanding http_proxy is used for tracker and proxy_address is used for the there anyway to use a socks5 proxy for both?

callesg commented Dec 9, 2012

You could use tsocks for that (i think.)

chovy commented Dec 10, 2012

rtorrent freezes up with tsocks.


Proxychains also freezes rtorrent :/


Hmm trying this with the same version and it doesn't freeze but i get those fun "could not parse bencoded data" and likewise errors ("Server returned nothing") about communication problems.



has anyone had any luck with socks5 proxies in rTorrent?


So I ended up doing a VPN setup where I forward all the traffic through the vpn and set the bind address to the tun0 interface (or whatever vpn interface is created on your machine).

AFAIK, this is the best/only? way to do this.

It pays to note that I have a dedicated VM for this currently which starts up and automatically manages everything itself. There are now docker containers that you could start from as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.