Closed pwinnski closed 4 months ago
I see this too.
Probably the same as https://github.com/crazy-max/docker-rtorrent-rutorrent/issues/145
Since it's a synology NAS, this may be relevant to your issue https://www.pedrolamas.com/2020/11/04/exposing-the-client-ips-to-docker-containers-on-synology-nas/ It seems like an issue with how Synology handles docker traffic rather than an issue with the images.
@Logiar is absolutely correct, this appears to be a Synology configuration issue. I made sure I understood the iptables commands in the linked article, then issued them, and immediately a torrent that had been stuck on a single 172.17.0.1 peer started adding additional peers. The difference was startling.
This worked for me:
sudo iptables -t nat -A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
sudo iptables -t nat -A PREROUTING -m addrtype --dst-type LOCAL ! --dst 127.0.0.0/8 -j DOCKER
Thank you, @Logiar!
Support guidelines
I've found a bug and checked that ...
Description
Sometimes a torrent will connect to peer 172.17.0.1, a docker-internal address
Expected behaviour
I expect all peers to connect with actual IP addresses, not blocking subsequent peers.
Actual behaviour
Not always, but often, a torrent will connect to peer 172.17.0.1. When it does so, no additional peers can connect after that, so when the first peer connects like that, it become the only peer.
172.17.0.1 is a docker-internal address, not a real peer address. The only way I've found to workaround this is to stop and restart the torrent. Sometimes I have to do that more than once.
Steps to reproduce
Docker info
Docker Compose config
No response
Logs
Additional info
I first noticed this months ago when I was connecting to a torrent I knew had two seeds, a slow one and a very fast one, and I kept getting only the slow one. The fast seeder told me they weren't seeing any traffic from me at all. Since that first time, I've seen it many, many times, including a few minutes ago. The tracker reported three seeds, but I saw only the one slow connection. I stopped and restarted it, and fortunately this time it was the third connection that came in as 172.17.0.1, and one of the other seeders was much faster. File finished in a few minutes, rather than 13 hours.