mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Implement "Randomization" of I2P Hops (tunnel length) #16761
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#16761
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @absolutep on GitHub (Apr 9, 2025).
Suggestion
Implement "Randomization" of I2P Hops (tunnel length) in I2P settings, as shown in image below
Use case
It helps in evading a patternicity attack by "Randomizing" the hops pattern.
For example,
Source A >> H >> M >> Y >> Destination B
Destination B >> C >> J >> W >> L >> Source A
Extra info/examples/attachments
In the context of I2P and specifically i2pd, inbound and outbound variance refer to the random variation in the number of hops used in I2P tunnels. This feature is designed to enhance anonymity by making it harder to predict the exact path of data transmission.
Inbound and Outbound Variance Explained
Inbound Length Variance: This parameter allows for a random number of hops to be added or subtracted from the inbound tunnel length. The default value is 0, meaning no variance is applied by default. However, it can be set between -3 and 3, which means the actual number of hops in an inbound tunnel can vary by up to three hops more or less than the configured length[1].
Outbound Length Variance: Similar to the inbound variance, this parameter introduces randomness in the number of hops for outbound tunnels. Like inbound variance, it can also be set between -3 and 3, allowing for a dynamic adjustment of the tunnel length to improve anonymity[1].
Purpose of Variance
The purpose of introducing variance in tunnel lengths is to make it more difficult for an attacker to identify patterns in the network traffic, which could potentially compromise user anonymity. By randomly adjusting the number of hops, the system makes it harder to trace the path of data packets.
Configuration
These settings can be adjusted in the i2pd configuration files, specifically in the
tunnels.conffile for tunnel configurations. However, the exact syntax and options available might depend on the version of i2pd being used[1][3].Citations:
[1] https://i2pd.readthedocs.io/en/latest/user-guide/tunnels/
[2] https://geti2p.net/en/docs/api/streaming
[3] https://i2pd.readthedocs.io/en/latest/user-guide/configuration/
[4] https://www.nrel.gov/docs/legosti/old/654.pdf
[5] https://i2pplus.github.io/changelog.html
[6] https://i2pgit.org/lbt/i2p.www/-/blob/dns-application/pots/docs.pot
[7] https://github.com/anquanscan/sec-tools
[8] https://www.reddit.com/r/i2p/comments/tst4o7/whats_inboundoutboundquantity_parameter/
@glassez commented on GitHub (Apr 9, 2025):
So what does qBittorrent have to do with it when it comes to i2pd settings, which the user is supposed to be able to configure at his discretion via configuration file?
@absolutep commented on GitHub (Apr 9, 2025):
SAM protocol settings are not provided only I2CP settings are provided.
So, most likely scenario is qBittorrent is handling SAM protocol settings.
Just like they handle Hops and Quantity, presently :-
BiglyBT has already implemented it
@glassez commented on GitHub (Apr 9, 2025):
I don't understand it.
qBittorrentsimply provides the user with the settings thatlibtorrentprovides. Iflibtorrentsupports this and has the appropriate settings, then we could add their support toqBittorrent. If not, then you should contact them so that they implement it first.@absolutep commented on GitHub (May 6, 2025):
@glassez please check this PR for implementing variance tunnels by @ljpf
https://github.com/arvidn/libtorrent/pull/7942
@glassez commented on GitHub (May 6, 2025):
I have a rather superficial knowledge of I2P, so I can hardly help with related jobs except for some general aspects.
@xavier2k6 commented on GitHub (May 25, 2025):
ANNOUNCEMENT!
For anybody coming across this "Feature Request" & would like/love to see a potential implementation in the future!
Here are some options available to you:
Please select/click the 👍 &/or ❤
reactionsin the original/opening post of this ticket.Please feel free (If you have the "skillset") to create a "Pull Request" implementing what's being requested in this ticket.
(new/existing contributors/developers are always welcome)
DO:
DO NOT:
(These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)
@absolutep commented on GitHub (Jan 15, 2026):
This https://github.com/arvidn/libtorrent/pull/7942 has been merged in libtorrent, so I think qBitorrent can implement it now