How do I get rtorrent to use a socks5 proxy? 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 http://www.checkmytorrentip.com/

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


According to this ticket (and that one),you need to decide what to proxy: connections to the tracker or all connections (including the ones to peers):

  1. Proxying tracker connections can be done using the patch mentioned here or using something like Polipo, mentioned here
  2. Proxying everything can be done, as you already tried, using socksifiers like tsocks, but I suppose there's no chance of having incoming connections this way and your BT experience will thus be unsatisfying.

To proxy everything but still have incoming connections, I suspect you'd have to use something VPN-ish.

  • 1
    So I could setup a vpn from one host to another? Using tsocks frooze rtorrent, and I'm not sure why incoming connections wouldn't work, can you explain? – chovy Nov 30 '12 at 17:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.