PDA

Bekijk de volledige versie : rtorrent does not download



onewiki
28-09-2009, 04:04
I've installed rtorrent, everything goes well and then I started it:
"rtorrent -n -o import=/opt/etc/rtorrent.conf"

It loads the torrent but never downloads anything. Always 0.0 everything, except that the file size is correct.

Any suggestions? Thanks.

avberk
28-09-2009, 18:43
Did you test if the port through the firewall is open?

onewiki
28-09-2009, 18:59
Just checked. It is actually open, that is, port 51779.

avberk
29-09-2009, 20:17
do you have all dependencies installed?

e.g.

libtorrent, libsigc++, ncursesw, ncurses, libcurl


maybe try another torrent first.

onewiki
29-09-2009, 23:42
without these packages, rtorrent wouldn't even be able to run. So they are not the issue. I certainly have tried multiple torrents, but thanks for reply.

onewiki
30-09-2009, 03:45
I figured it out. Of course it is due to my stupid mistake. I didn't do two things:
1. make post-firewall executable
2. put #!/bin/sh at the beginning of the script.

So a brief addendum to the following tutorial:
http://wl500g.info/showthread.php?t=16416&page=2

do two things:
1.
$ nano /usr/local/sbin/post-firewall

#!/bin/sh
# set default policy
iptables -P INPUT DROP
# remove last default rule
iptables -D INPUT -j DROP

iptables -A INPUT -p tcp --dport 51777:51780 -j ACCEPT
iptables -A INPUT -p udp --dport 6881 -j ACCEPT

# Restablishing INPUT chain policy
iptables -A INPUT -j DROP

2.
$ chmod +x /usr/local/sbin/post-firewall

flashfs save && flashfs commit && flashfs enable && reboot