[Guide] How to set up qBittorrent 4.6 in i2p mode

HowTos, FAQs, Tips & Tricks, & Guides
Post Reply
yanol
Posts: 6
Joined: 04 Nov 2023 13:54

[Guide] How to set up qBittorrent 4.6 in i2p mode

Post by yanol »

Hello.

In this brief tutorial i will show how you can use a qbittorrent 'profile', a separated instance of qbittorrent, to use it as i2p ONLY.
There has been a tutorial on how to set up qbittorrent in the previous months (in mixed mode), but that tutorial does not explain properly in my opinion the last steps of the setup.

For this, you need to enable SAM service of i2pd (C++ i2p implementation). i2p Java('vanilla') does have SAM enabled by default. To enable the SAM service in i2pd you can consult the i2pd website https://i2pd.readthedocs.io/ ; or check the How to use I2P in qBittorrent.pdf which shows those steps.

After enabling that, you should download a qbittorrent +4.6 version (i2p experimental mode was added in 4.6.1, the library rasterbar should be 2.0 to have i2p support) and then, you can create a new profile using:

Code: Select all

qbittorrent --configuration="I2Pprofile"
Which will create the folder qbittorrent_I2Pprofile inside ~/.config (in linux case)

After you do that, the new qbittorrent profile should open. You now have to proceed with the following steps to enable and configure qbittorrent:

Go to 'preferences' and check for the 'Connection' tab. In there, you should hav it this way, to have i2p ONLY mode:

Image

1: 127.0.0.1 of where you i2p router is running.
2: Your SAM port. You can check its value in you router configuration.
3: Your HTTP proxy port. Check this one in your router configuration.

If you see in the picture, there are several options marked, which you should mark if you want to use the client as I2P only.

After that, the program should work properly. Keep in mind that it will take a few minutes to startup, and that the program is still in i2p experimental mode, so sometimes it will take a several minutes into the torrent metadata download.

You have also several more options in the program, there is by default one which is not suitable for i2p. In the following picture, you see it. it is located in Preferences>Advanced

Image

This option should be unmarked, because it will make some trackers, which does not end in 'announce.php' to be blocked by the qBittorrent client.
(Some i2p trackers use 'a.php' and then are blocked by qBittorrent).



There are also some problems at the moment, with speeds in the program. qBittorrent seems to be slow compared to other i2p clients, so you can check for this options to find one which suits you better. They are located in Preferences>Advanced and determine the 'upload mechanism':



Image



I have changed them for a while and had no luck, qbittorrent is still slow.

I hope this tutorial help those interested in using qbittorrent as i2p client, which stands out by its low resource consumption and its simplicity.

Special thanks to sharefile site for the uploaded images.
anikey
Posts: 77
Joined: 30 Nov 2023 20:08

Re: [Guide] How to set up qBittorrent 4.6 in i2p mode

Post by anikey »

Why do you tell people to use the HTTP proxy? SAM alone works.
BlindTraveler
Posts: 6
Joined: 19 Oct 2024 10:18

Re: The risk of disabeling SSRF in qBittorrent?

Post by BlindTraveler »

If the tracker does not end with /announce.php SSRF mitigation will block it.

1. Why do some use just /a and not /announce.php (like postman/everyone else)?

2. What is the risk of disabling SSRF mitigation(for the client)?
BlindTraveler
Posts: 6
Joined: 19 Oct 2024 10:18

Re: [Guide] How to set up qBittorrent 4.6 in i2p mode

Post by BlindTraveler »

@anikey, it's possible that SAM alone did not work when tutorial was made.
Using proxy should not have major(if any) performance benefits. In fact if you decide to have two instances of qBittorrent running(only I2P and mix) connecting to the same proxy will make it possible to correlate two instances(:< ...).

For anyone reading this tutorial, just leave the Proxy Server->Type = None

Edit:
Use i2psnark if you can't take risk of some information leaking(client connecting to something without using SAM in this case).
Tutorial uses a proxy most likely to avoid information leaking.
If you decide to just leave the Proxy Server->Type = None go to your Preferences->BitTorrent->Privacy and uncheck all the check marks(mainly the DHT).

Make sure to enable anonymous mode if you use proxy or not in Privacy.
anikey
Posts: 77
Joined: 30 Nov 2023 20:08

Re: [Guide] How to set up qBittorrent 4.6 in i2p mode

Post by anikey »

BlindTraveler wrote: 16 Feb 2025 13:16 Use i2psnark if you can't take risk of some information leaking(client connecting to something without using SAM in this case).
Or just put qBittorrent in a sandbox with no internet access and just the SAM bridge, that is also an option, and probably even more bulletproof than i2psnark (because snark runs in the same process as the router, less boundary).
Post Reply