Ocelot icon indicating copy to clipboard operation
Ocelot copied to clipboard

Use of "ipv4" and "ipv6" announce parameters is now discouraged

Open undertheironbridge opened this issue 5 years ago • 6 comments

In the last (12 March 2020) update to BEP-0007, the following paragraph was added :

An earlier version of this BEP specified new HTTP parameters to announce an additional address of a different address family than the source IP address of the tracker connection (&ipv4= and &ipv6=). These are discouraged, as they allow an attacker to announce a victim's IP address to launch a DDoS attack.

This is a valid concern. Ocelot supports ip and ipv4 announce parameters, as well as the X-Forwarded-For HTTP header, as ways to change the default IP reported to other peers.

undertheironbridge avatar May 13 '20 21:05 undertheironbridge

What a poor change as it really complicates the record keeping. It reads to me that to follow BEP-007, we can now expect a user may send the same announce multiple times with different IP addresses, and we have to now correlate them all to avoid duplication of stats.

itismadness avatar May 21 '20 21:05 itismadness

https://github.com/transmission/transmission/pull/4502

Roardom avatar Jan 01 '23 08:01 Roardom

Transmission dev here. Does removal of ipv4=, ipv6= break Ocelot?

ckerr avatar Jan 01 '23 19:01 ckerr

@ckerr Thanks for asking! No, it doesn't break anything.

The ipv6 code is quite buggy and I hope nobody is actually running it.

sheepish-ops avatar Feb 24 '23 00:02 sheepish-ops

@ckerr Thanks for asking! No, it doesn't break anything.

The ipv6 code is quite buggy and I hope nobody is actually running it.

I'm currently running the v2.0 tagged version. Will running the current version and removing ipv4=, ipv6= allow for both?

voaii avatar Apr 03 '23 17:04 voaii

One of the problems with the IPv6 implementation in current master is that it is using a shared swarm for IPv4 and IPv6. This can cause problems with clients that do not support IPv6, see for example https://github.com/OPSnet/Ocelot/issues/24

There are very likely more issues, thus my recommendation to not run that IPv6 code at all.

sheepish-ops avatar Apr 08 '23 13:04 sheepish-ops