Disconnect if VPN drops?

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
minty
Posts: 2
Joined: Fri Feb 01, 2013 9:13 pm

Disconnect if VPN drops?

Postby minty » Fri Feb 01, 2013 9:19 pm

I own a Mac, I am very much a newbie to it and struggle with the finer details of networking.

I understand I'd be foolish not to hide my IP at times. I have a VPN service, but from time to time it will drop, then Transmission will commence peer-to-peer with my real IP address, which I'd rather avoid.

Is there any way to make a preference in Transmission, so that it 'sees' the VPN IP when the program starts, but instantly kills all transfers if the VPN drops (eg if it suddenly 'sees' a new IP for my computer instead of the VPNs) ?

Great program. I have donated in the past and it was worth it.

x190
Posts: 5095
Joined: Sun Nov 30, 2008 4:59 am

Re: Disconnect if VPN drops?

Postby x190 » Sat Feb 02, 2013 3:32 am

Add this line to ~/Library/Preferences/org.m0k.transmission.plist:

"~" = your home folder.
http://osxdaily.com/2011/07/22/access-u ... os-x-lion/

transmissionple.png
transmissionple.png (23.34 KiB) Viewed 15576 times


or:

https://trac.transmissionbt.com/ticket/2313
The stone age didn’t end because we ran out of stones.
---The Great Disruption - by Paul Gilding
https://paulgilding.com/
-------------------------------------------------

minty
Posts: 2
Joined: Fri Feb 01, 2013 9:13 pm

Re: Disconnect if VPN drops?

Postby minty » Sat Feb 02, 2013 5:14 pm

Appreciate the help, had a look, I have no file called org.m0k.transmission.plist in Library

Do I need to make one there?

The other link is to stuff too advanced for me I just can't follow it.

x190
Posts: 5095
Joined: Sun Nov 30, 2008 4:59 am

Re: Disconnect if VPN drops?

Postby x190 » Sat Feb 02, 2013 6:44 pm

Appreciate the help, had a look, I have no file called org.m0k.transmission.plist in Library


That's /Users/<yourusername>/Library/Preferences/org.m0k.transmission.plist
otherwise known as ~/Library/Preferences/org.m0k.transmission.plist.

See the following:

http://osxdaily.com/2011/07/22/access-u ... os-x-lion/

Open the .plist in Property List Editor.app and add that line using the IP received from your VPN provider.
The stone age didn’t end because we ran out of stones.
---The Great Disruption - by Paul Gilding
https://paulgilding.com/
-------------------------------------------------

ajohansson
Posts: 5
Joined: Thu Feb 21, 2013 4:33 pm

Re: Disconnect if VPN drops?

Postby ajohansson » Thu Feb 21, 2013 8:00 pm

WOuld be great if you didnt have to bind to the ip address specifically but to the interface. My vpn changes the ip address everytime i connect to it. There are scripts that do it. I havent figured it out yet cant get it to work. Is there a plisteditor command to tell is to connect to the interface?


But vuze which i really dont like does have integration right in the program to do this. It will not download/upload if the VPN is not connected at all. A pretty simple set up in vuze but I hate the vuze GUI and all the other crap in it. I love how light transmission is but cant get another letter from verizon so I have to be on the vpn and I cant have transmsission continue if I lose connection. If transmission had this safety feature it would be the ultimate!!!!

ajohansson
Posts: 5
Joined: Thu Feb 21, 2013 4:33 pm

Re: Disconnect if VPN drops?

Postby ajohansson » Thu Feb 21, 2013 8:58 pm

well after more research looks like there is a way to do this. I used the patch from this ticket thread

https://trac.transmissionbt.com/ticket/2313

added BindInterface and put ppp0 in the string and it works perfectly. well I thought I download, turn off vpn and it stops, then finds my other network for some reason and connects. looks like its vuze till if figure this out.

jhnielson
Posts: 1
Joined: Mon Apr 15, 2013 8:20 pm

Re: Disconnect if VPN drops?

Postby jhnielson » Mon Apr 15, 2013 8:27 pm

ajohansson wrote:well after more research looks like there is a way to do this. I used the patch from this ticket thread

https://trac.transmissionbt.com/ticket/2313

added BindInterface and put ppp0 in the string and it works perfectly. well I thought I download, turn off vpn and it stops, then finds my other network for some reason and connects. looks like its vuze till if figure this out.



Thanks for the sharing this info. Would you mind sharing how you went about compiling/building this version with the patch? I'm a a bit of a newbie to this type of patching and wasn't able to follow how to do this.

Tron
Posts: 1
Joined: Sat Mar 28, 2015 4:20 am

Re: Disconnect if VPN drops

Postby Tron » Sat Mar 28, 2015 4:33 am

Hi crew, this sounds like an excellent feature, GREAT WORK..! but would like to know if there's a Snow Leopard version available.... :?: :?: :?:

Exp
Posts: 61
Joined: Wed Sep 26, 2007 12:31 pm

Re: Disconnect if VPN drops?

Postby Exp » Sat Apr 18, 2015 4:16 am

This is what you guys are looking for, very easy to use.

https://github.com/joshbernfeld/Transmi ... ace-Binder
20"iMac intel 2.66 Duo: 4GB RAM : OSX 10.10.3

Marc31
Posts: 44
Joined: Thu Dec 06, 2007 12:01 am

Re: Disconnect if VPN drops?

Postby Marc31 » Tue Nov 24, 2015 11:40 pm

Exp wrote:This is what you guys are looking for, very easy to use.

https://github.com/joshbernfeld/Transmi ... ace-Binder

Exp … p … p … exponentially … explicitly … ex … ex … excellent!

All that remains to be wished for now is keeping connectable. Contradiction in terms seems to ring a bell.

cheers,
iMac 3.06 gHz Intel Core 2 Duo, OS X


Return to “Requests”