Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BitTorrent tracker not working via IPv6 #235

Open
Popolechien opened this issue Sep 21, 2022 · 12 comments
Open

BitTorrent tracker not working via IPv6 #235

Popolechien opened this issue Sep 21, 2022 · 12 comments

Comments

@Popolechien
Copy link
Member

Reported by user:

It looks like IPv6 is broken
Connecting to http://tracker.openzim.org ([http://tracker.openzim.org]> (https://t.co/QWCU3b9tiE))|51.159.30.163|:6969... connected.
Connecting to http://tracker.openzim.org (http://tracker.openzim.org)|2001:bc8:6005:1a:dac4:97ff:fe2a:33d8|:6969... failed: Connection refused.

@rgaudin rgaudin changed the title Torrent tracker seems unresponsive torrent tracker not working via IPv6 Sep 21, 2022
@rgaudin
Copy link
Member

rgaudin commented Sep 21, 2022

Looks like opentracker needs to be ran (and built) either for v6 or for v4. We'd need to run two trackers to support ipv4 and ipv6.

Do we want to?

http://erdgeist.org/gitweb/opentracker/tree/README_v6

@signout
Copy link
Contributor

signout commented Sep 22, 2022

I reported this issue (via twitter)
I really like IPv6, but understand if you don't want to maintain two different instances. If that's what you end up deciding then please remove the AAAA record so torrent clients can use the IPv4. rtorrent prefers IPv6 and doesn't use the v4 even if the v6 doesn't answer.

@rgaudin
Copy link
Member

rgaudin commented Sep 22, 2022

Ok I'll remove the record until we decide to act upon this. Thank you for the tip

@signout
Copy link
Contributor

signout commented Sep 22, 2022

Thank you :)

@rgaudin
Copy link
Member

rgaudin commented Sep 23, 2022

Was a CNAME to another record which had both A and AAAA records. Replaced it with an A record. Please give it a try in like an hour from now and let me know if this works with your client.

@rgaudin rgaudin closed this as completed Sep 23, 2022
@kelson42 kelson42 reopened this Sep 23, 2022
@kelson42 kelson42 self-assigned this Sep 23, 2022
@kelson42
Copy link
Contributor

kelson42 commented Sep 23, 2022

I'm not sure we should not have two instances....

@kelson42 kelson42 pinned this issue Oct 2, 2024
@kelson42 kelson42 changed the title torrent tracker not working via IPv6 BitTorrent tracker not working via IPv6 Dec 8, 2024
@kelson42
Copy link
Contributor

kelson42 commented Jan 3, 2025

@rgaudin Considering the already large amount of users using IPv6, we have now to fix this issue if we want a working BitTorrent infrastructure. We should probably considere having another kind of tracker, because having two:

  • won't mutualise the peers
  • willgenerate complexity on the superseeder side

https://torrust.com/ seems a valid alternative.

@rgaudin
Copy link
Member

rgaudin commented Jan 3, 2025

Checked out torrust ; looks good. Can work the same way we currently do. Given its an API, we can have a pure tracker running and simply manage the whitelist via API calls on k8s-cronjobs. We could even use their web-index software for advocacy purposes.

Small effort overall.

@rgaudin
Copy link
Member

rgaudin commented Jan 3, 2025

Important to note that we cannot run the tracker on our k8s as IPv6 is not supported. It would thus need to de deployed on a non-node machine and that should be discussed in #operations.

@kelson42
Copy link
Contributor

kelson42 commented Jan 3, 2025

@rgaudin What is important to me is that the tracker is IPv6 ready and can distribute IPv6 peers. This should be doable even if the tracker service is only addressable in IPv4 right?

@rgaudin
Copy link
Member

rgaudin commented Jan 4, 2025

I can not answer that but from what I understand, each peer announces itself to the tracker, informing about its IP and port.
If the tracker is not reachable because it's domain resolves only to IPv4, then the client can not announce itself to it.

If the peer has dual stack then I suppose that if the tracker supports IPv4 and IPv6 (torrust or opentracker compiled with the flag) then assuming its bt-client sends both IPs, then I believe the tracker plays its role for both IPs.

@rgaudin
Copy link
Member

rgaudin commented Jan 25, 2025

FYI the tracker software has been changed to torrust which does support IPv6. It's still not reachable from IPv6 though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants