Transmission-Daemon does not upload, but can download
Solution 1
This seems to have helped me. Transmission-daemon
can now upload.
I should mention that I'm a newbie when it comes to *nix, so I'm not really sure if what I'm doing is entirely correct.
1) Allowed port 51413
(BitTorrent default) in iptables
by adding this to /etc/rc.local
(suggested by this post):
iptables -A INPUT -m state --state RELATED,ESTABLISHED -p udp --dport 51413 -j ACCEPT
iptables -A OUTPUT -p udp --sport 51413 -j ACCEPT
2) Allowed the same port in ufw
(because I use it as my host-based firewall):
sudo ufw allow 51413/udp
The above instructions are for the UDP port, but the same can be done for TCP, by adding the same lines with udp
replaced by tcp
.
Solution 2
This sounds like a port forwarding issue.
To solve this, you'll have to enter you router's web interface.
It can be reached on your router's address, which can be obtained using the ip route show
command:
default via 192.168.1.1 dev eth0
In that example, the router's IP address would be 192.168.1.1
.
The procedure may vary depending on the manufacturer, so the best you can do is to search in Google how to do it for your specific model.
Anyways, there should be some setting called "Port forwarding" or "NAT". Use the following info for the rule you've to set up:
<your RPi local IP address>
External port: 51413
Internal port: 51413
Protocol: TCP
Therefore, the only port you should need to open in ufw
is 51413.
Related videos on Youtube
P A N
Updated on September 18, 2022Comments
-
P A N almost 2 years
I have just installed
transmission-daemon
on a Raspberry Pi running Raspbian (Jessie).When adding a torrent to the web interface, downloading works at high speeds, but it doesn't upload anything at all. For the torrent file I'm using, there should be plenty of leechers to connect to. BitTorrent works fine on my Mac computers in the same network.
First I thought it might be my firewall (
ufw
) causing issues since I have it set toufw default reject incoming
. This is likely to be the next issue – but even afterufw disable
I still have the same problem with no uploading.Questions:
- What could be hindering upload when
ufw
is turned off? - Next, how can I use Transmission with
ufw
turned on while blocking as many incoming ports as sanely possible?
- What could be hindering upload when
-
Hewbot over 8 yearsSorry if some steps sound too obvious, it's just for helping other people who might not know ;)
-
P A N over 8 yearsThanks for your reply! I should perhaps add that BitTorrent works perfectly fine on my Mac computers connected to the same network. So I would like to avoid making changes in the router if possible. At least it may suggest that a solution can be found within the Raspberry config itself.
-
Hewbot over 8 yearsThen, the only thing I can suggest is to try some port checking tool like this one, and see if the port is open. If it is, we could take a look to the settings on your Pi, but if it isn't, there's nothing you can do "from the inside", and you'll have to change your router settings.
-
AngryUbuntuNerd over 2 yearsthis only works if UPnP port forwarding is available on your router