iTorrent icon indicating copy to clipboard operation
iTorrent copied to clipboard

Torrent traffic no longer goes through vpn on 1.8

Open Bkmd100 opened this issue 4 years ago • 62 comments

My isp throttles torrent download speeds, so I have to use a vpn to get a reasonable download speed. I noticed that my speed is throttled after updating to 1.8 even with vpn on, using http://checkmyip.torrentprivacy.com/ shows that my browsing ip is my vpn’s while torrenting ip is my isp’s. Downgrading to previous versions fixes to issue.

Bkmd100 avatar Jun 13 '20 08:06 Bkmd100

I already wrote a large piece of text of why it is impossible, but then I checked it with your website and realised that it really not works... I have no idea why the hell is it possible, I'll try to update libtorrent in next release, hope it will fix that problem.

XITRIX avatar Jun 13 '20 10:06 XITRIX

I use NordVPN on a cellular connection and v1.8 is showing the real IP on my jailbroken phone. I suspect non-jailbroken devices could be safe, but jailbroken devices it's not on the right internet interface. Please place a warning on the main download for v1.8 that it's not suitable for jailbroken devices that use a VPN for safety. 1.7.4 hotfix is tested and safe. Libtorrent 1.2.6 settings are likely to blame.

141 avatar Jun 28 '20 12:06 141

It's a little bit strange. My cellular operator bans all p2p connections so I cannot download any torrent using cellular without VPN, but with VPN it works fine, so could it tells that VPN is working? Also LibTorrent 2.0 already has a release candidate version, maybe updating to it will fix that problem...

XITRIX avatar Jun 28 '20 14:06 XITRIX

It's probably only leaking the real IP to the tracker, but no other connections can connect to you on the real IP. Leaking the real IP at all is the problem. The latest version of qbittorrent uses libtorrent 1.6 and it has no issue on a computer.

141 avatar Jun 28 '20 21:06 141

Checked the latest version of qbittorrent with libtorrent 1.2.6 and it HAS the same problem, while previous versions with 1.1... doesn't, so the only way is to wait libtorrent's fix. Снимок экрана 2020-06-29 в 00 53 58 In next update I'll implement proxy option, so may be you can try to use it instead of broken vpn connection (you already could try it by downloading Dev version of app from AppCenter Link)

XITRIX avatar Jun 28 '20 21:06 XITRIX

Until you understand the problem with libtorrent 1.2.6 can you revert to 1.2.3 or whatever was used previously? V1.2.3 doesn't have the issue 1.2.6 has, so if that still causes an issue it's not libtorrent.

I tested the windows qbittorrent v4.2.5 (on win10) with default settings on a wifi connection, and I had no problems with a leaked real IP. I retested on three different sites for leaks, but there was none.

Tested on a wired connection with a different computer and still qbittorrent 4.2.5(with default connection settings) for win64 is safe with NordVpn. Here's the two additional sites I tested both on: https://torguard.net/checkmytorrentipaddress.php https://ipleak.net/

141 avatar Jun 28 '20 23:06 141

Ok, I'll test it with previous versions, I think libtorrent could have problems with "linux" part of code, macOS and iOS uses the same shared code as linux, and only windows uses it's own c++ libs, which (maybe) has no such problem.

XITRIX avatar Jun 29 '20 07:06 XITRIX

I tested 1.8.1 (July) on all three testing sites as before and it failed again. Instead of giving me back my VPN address, it's giving me an IP from my cellular provider. That basically geo-locates me and isn't acceptable. I'm currently on the Checkra1n jailbreak on ios 12.4.4. Still thinking 1.2.3 is the safe libtorrent to use.

141 avatar Jul 29 '20 04:07 141

Same, I'm on a non jail broken device and it literally shows my ip AND cellular ip when checking.

ImOldGregg avatar Jul 29 '20 08:07 ImOldGregg

I’ll downgrade libtorrent if it will not brake anything in next release (or update to 2.0 if it will be released)

XITRIX avatar Jul 29 '20 12:07 XITRIX

Sounds good! Thank you! It's always something, am I right? 😭

ImOldGregg avatar Jul 29 '20 13:07 ImOldGregg

Yep, unfortunately it's true T_T

XITRIX avatar Jul 29 '20 17:07 XITRIX

Libtorrent 1.2.8 has been released, not sure if the issue will be fixed in this version or not.

ImOldGregg avatar Aug 08 '20 11:08 ImOldGregg

Just curious when the next build would be out. Not trying to rush, I'm still using 1.7.4 hotfix just fine.

ImOldGregg avatar Aug 20 '20 20:08 ImOldGregg

image New version has been released right now, I'll check if that bug was fixed and then update iTorrent release

XITRIX avatar Aug 20 '20 21:08 XITRIX

Awesome! I'll be looking forward to it!

ImOldGregg avatar Aug 20 '20 21:08 ImOldGregg

Just joined Patreon to help a little.

ImOldGregg avatar Aug 20 '20 21:08 ImOldGregg

Thanks for your support!

XITRIX avatar Aug 20 '20 21:08 XITRIX

E20664A2-04CD-4325-B5E7-826A5E654AAE v1.2.9, still not fixed((

XITRIX avatar Aug 20 '20 23:08 XITRIX

Well that sucks 😭

ImOldGregg avatar Aug 20 '20 23:08 ImOldGregg

Created an issue for libtorrent arvidn/libtorrent#5027

XITRIX avatar Aug 21 '20 06:08 XITRIX

They didn't help too much did they 😂 hopefully you'll get it figured out. If you need any beta testing let me know.

ImOldGregg avatar Aug 22 '20 14:08 ImOldGregg

True:) But now I know about network interfaces, I’ll try to implement some kind of priorities of them, and also there could be a new option like “download with VPN connection only”. May be I’ll release 1.8.2 version without this fix, cause it already have a lot of other bug fixes, so may be it will be a feature(fix) for 1.8.3, but I’m not sure yet...

XITRIX avatar Aug 22 '20 21:08 XITRIX

A better site to test torrent ip is https://ipmagnet.tap3.eu/ When I test with that site on 1.8.1 it gives me multiple ip's. One is my original, one the VPN address, and anther random address.

ImOldGregg avatar Aug 23 '20 00:08 ImOldGregg

Wow, great, thanks for it!

XITRIX avatar Aug 23 '20 10:08 XITRIX

Also I know this is in the wrong category but downloaded torrent files now open correctly in iTorrent, no need to use chrome browser anymore. I'm running iOS 14 beta 5.

ImOldGregg avatar Aug 23 '20 16:08 ImOldGregg

No, I'm a big idiot, there was a problem cause I used .open rule to open files, and with resigned apps this is the problem, but if .import rule is using, it will be fine. I fixed it in yesterday commit, so the next update will fix that problem at all.

XITRIX avatar Aug 23 '20 17:08 XITRIX

Hey, it's all good. I'm just glad someone's committed to making a torrent app for iOS. 😁 I just wish I could help more but I know nothing about the coding aspect of it.

ImOldGregg avatar Aug 23 '20 17:08 ImOldGregg

Hey I know you already know this but the new version is still pulling ip's from all network interfaces instead of the default or main. It lists my WiFi ip, cellular ip, and VPN ip (when VPN is on). Figured I'd go ahead and post before somebody else does hopefully they'll read this before commenting. Using https://ipmagnet.tap3.eu/ for testing.

ImOldGregg avatar Aug 25 '20 23:08 ImOldGregg

Yes, as I told, 1.8.2 does not have any fixes of this problem, I'll try to implement such options in next update, and may be libtorrent will change some settings for it

XITRIX avatar Aug 26 '20 13:08 XITRIX

@ImOldGregg, I've implemented an option to chose interface to use. You could try it in latest dev build, find in Settings -> Connection Settings -> Interface. Need some tests from you.

XITRIX avatar Sep 23 '20 20:09 XITRIX

Sure thing man. What do I need to do to sign up for dev build?

ImOldGregg avatar Sep 23 '20 20:09 ImOldGregg

I unfortunately was not able to install from the dev center.

ImOldGregg avatar Sep 23 '20 21:09 ImOldGregg

Because that link only for jailbroken devises, you should download it with PC and install with cydia impactor

XITRIX avatar Sep 24 '20 05:09 XITRIX

Or use AltStore

rvb1k avatar Sep 24 '20 09:09 rvb1k

Ok, so I've tested using PIA VPN app on iOS 14. When you choose the all option like before it will show the public, VPN, and cellular ip addresses. Choosing Primary will show just the public IP address. VPN only does not respond with an ip. I have also checked each interface in the manual options but none of the show the VPN up address coming from the PIA app.

I have noticed that the last iteration that works like it should says its signed with libtorrent while the newer versions are signed with your app model. Not sure if that means anything since I'm not a coder. Maybe there was an order of flow that was swapped since updating libtorrent. I'm not sure.

Last known working with VPN: image

Last dev build: image

ImOldGregg avatar Sep 25 '20 17:09 ImOldGregg

Hey just making sure you saw my last post. It's heading in the right direction I think, just needs some tweaking. Hope my info helps. Message if you need more.

ImOldGregg avatar Oct 08 '20 06:10 ImOldGregg

Hi, yes, I saw it, that version was before libtorrent changed it’s interface policy, earlier it worked with one interface only, but later it was changed to use all of available interfaces, so now we should setup it manually. Try to check interfaces list before vpn enabled, than enable it and check again, new interface should appear, try to use it.

XITRIX avatar Oct 09 '20 09:10 XITRIX

These are the only interfaces that show in the manual list.

image

image

image

ImOldGregg avatar Oct 09 '20 17:10 ImOldGregg

When I test each one individually i can only get my public on en0 and my cellular on pdp_ip0. All of the other interfaces do not respond when testing. If I choose the All option it gives me all three ip addresses, the public,VPN, and cellular.

ImOldGregg avatar Oct 09 '20 17:10 ImOldGregg

All of the interfaces show the same whether I'm on my public ip or connected to a VPN. I never seen a new interface show up after connecting to my VPN.

ImOldGregg avatar Oct 09 '20 17:10 ImOldGregg

Running iOS 14.0.1 and using Private Internet Access VPN and Synology VPN for testing.

ImOldGregg avatar Oct 09 '20 17:10 ImOldGregg

Still no luck on getting it to find the correct interface?

ImOldGregg avatar Nov 04 '20 23:11 ImOldGregg

@ImOldGregg If the phone is jailbroken and you have terminal(and netstat) installed, do a "netstat -i" before and after the vpn connection started. There will be a second ip listed(not your given ip) in the interfaces the second time and that's your vpn connection interface. Most likely it's ipsec0. Furthermore, try stopping all connections in the app, connect to ipsec0, close and remove the app from memory, and relaunch and see if it's still using ipsec0. Then test if everything is okay. At least you can eliminate variables and know more. I have not been using this app, so I'm going according to what I see from NordVPN's connection.

141 avatar Nov 05 '20 01:11 141

Still haven't forgot to test, just been busy 😭 Gonna try to test and get you some results soon.

ImOldGregg avatar Nov 30 '20 08:11 ImOldGregg

Tested the 1.8.4 dev2 build just now and PIA VPN finally registers on the utun8 interface. I'm able to get all torrent traffic thru just the VPN address finally. Probably still needs more testing but just wanted to let you know its good results so far 🙌

ImOldGregg avatar Dec 07 '20 04:12 ImOldGregg

That's great news! I'm not sure that I'll be able to make some kind of automatic interface selection, but if someone really worries about ip leaking, he could use manual interface selection.

XITRIX avatar Dec 07 '20 08:12 XITRIX

I have to correct myself, its not utun8 that PIA uses but rather the last available utun interface. I checked today and utun8 was gone from the list. Last was utun7 and setting to that worked just fine.

ImOldGregg avatar Dec 09 '20 03:12 ImOldGregg

I have installed and just starting to test Version 1.8.4-dev.2 (21.0). The connections to choose from I see has been dumbed down, and by default it will give away the real IP. Once the setting is changed to VPN Only the TCP and UDP connections are fine and safe. Once the changes are in the production release this bug is gone, but it would be lovely, if it detects a VPN, to either choose that or prompt to choose that. Also, it's troubling that it's leaking the real IP when on a VPN connection, using the default All setting. I am really puzzled why it leaks in the All setting.

I guess I'll be using the app, due to the Transmission 3.0 release for iDevices is not connecting to UDP trackers. So, I'll be active again here.

141 avatar Dec 21 '20 15:12 141

I'm assuming its going to be hard to set an automatic setting with it going thru iOS. My VPN lets me use IPSec, wireguard, or openVPN protocols and the interface they use is different especially wireguard which can use any number of the tun# options. It will usually try the last available one though but not always. Anytime I restart iOS I have to manually play with it to show the correct tun and set to it. Keep in mind i know absolutely nothing about coding for iOS tho these are just what I've noticed so far and my assumptions 😭🤦‍♂️😂

ImOldGregg avatar Dec 21 '20 23:12 ImOldGregg

The same as I know nothing about networking) It was really strange to me that iOS app could use any other network interface than iOS provides. As autosetup I tried to allow all utun interfaces, but some VPNs creates another interfaces. As I understand qBitTorrent works the same way on macOS, so I think I can't do nothing more, than allow to choose interface manually.

XITRIX avatar Dec 22 '20 09:12 XITRIX

Ok, some progress information. Now I'm in progress of changing the core of iTorrent from libTorrent to libTransmission. No leak on transmission at all. That will be a separate app but with same code base, the only change will be is iTorrent-Framework, so I'll be able to support and update both apps simultaneously. There is a chance that I'll allow to change iTorrent's core inside the app, but I don't know who the hell needs it, so may be not. Lots of stuff already done, it could download torrents and magnets already. But there are also lots of things to be done and polished, so I'm not sure about release date.

XITRIX avatar Jan 17 '21 16:01 XITRIX

Looking forward to it! Let us know if you need any testing.

ImOldGregg avatar Jan 22 '21 06:01 ImOldGregg

than you so much @XITRIX for working on this issue. I'm using an old iPhone 5s jailbroken to download some low seed torrents... but, I've checked with the last released version of the app and it was leaking my real ip. then I've read this topic, and downloaded last 1.8.4-dev.3 build from appcenter. now, it show my real ip + the VPN ip.

the thing is that I cant change interface mode under network settings. equal happen to proxy settings. I click mode, select VPN, but it don't change and dont show changing on mode, under network. same thing happens with proxy settings, if I try to set SOCKS5, i click it but nothing happen.

maybe it's an issue with ios 12? i'm running 12.5.1... any help will be appreciated!! thks!!

oppalla avatar Apr 16 '21 16:04 oppalla

No, it's not because of iOS version, have you tried to select port manually?

XITRIX avatar Apr 16 '21 17:04 XITRIX

No, it's not because of iOS version, have you tried to select port manually?

no, not in fact. now that you said, I've tried to change port number, changed to 6861 to 6871. closed and opened the app, nothing changed. I can't select other mode than ALL in "select interface mode" and cant select any proxy type other than NONE in Proxy type.

should I change ports to any specifically number and check it again? thanks for the fast answering :)

oppalla avatar Apr 16 '21 19:04 oppalla

That's strange, I'm pretty sure that it worked in previous versions, I'll try to check it later, but I cannot promise that it will be soon, I have not enough time to work a lot on itorrent right now.

XITRIX avatar Apr 16 '21 19:04 XITRIX

That's strange, I'm pretty sure that it worked in previous versions, I'll try to check it later, but I cannot promise that it will be soon, I have not enough time to work a lot on itorrent right now.

sir, mr. @XITRIX, I just have to say thank you for supporting us. I will try my best to help you solve any issues that my help can be valuable... for you to visualize what is happening, I made a screen rec for you to see... you can watch here: https://drive.google.com/file/d/1UGDsWEINloCwTW2ebFg6Se8uZR4gTi3Y also, I'm sorry for the delay in answering!

oppalla avatar Apr 18 '21 04:04 oppalla

Try installing 1.7.4 hotfix version and let us know of the results on a VPN test. Use this site since it will provide multiple IP leaks thru torrent if there are any. http://ipmagnet.services.cbcdn.com/

ImOldGregg avatar Apr 18 '21 04:04 ImOldGregg

I use https://ipleak.net, which is also a great leak tester.

with version 1.7.4 hotfix, in both services, ipleak.net and ipmagnet.services.cbcdn.com the only showing IP is the VPN one. thanks for the info @ImOldGregg !!!

hope to have this old feature once again on the next updates, if @XITRIX finds some time for it!!! thank you all

oppalla avatar Apr 22 '21 02:04 oppalla

@ImOldGregg does this version 1.7.4 just allows one downloading torrent per time? :( I use it to keep downloading low seed torrents, so there will be no point on using for only one torrent per time..

oppalla avatar Apr 22 '21 03:04 oppalla