Skip to content

proxy support for socks5 #105

Open
chovy opened this Issue Nov 29, 2012 · 8 comments

5 participants

@chovy
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

http_proxy=127.0.0.7:9800
proxy_address=127.0.0.7:9800

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 http://www.checkmytorrentip.com/

I also tried using tsocks rtorrent

server = 127.0.0.1
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
callesg commented Dec 2, 2012

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

@chovy
chovy commented Dec 2, 2012

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

@callesg
callesg commented Dec 9, 2012

You could use tsocks for that (i think.)

@chovy
chovy commented Dec 10, 2012

rtorrent freezes up with tsocks.

@EvilOlaf

Proxychains also freezes rtorrent :/

@InAnimaTe

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.

@agodlydeciple

bump

has anyone had any luck with socks5 proxies in rTorrent?

@InAnimaTe

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.