-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiFi connection management #370
Comments
How do you suggest to manage the policy enforcement?
I'd love to hear more ideas about the techy part, and not the UI part. |
This would be an excellent feature! There are certain networks I connect to that I trust, and having to manually disconnect openVPN when connecting to the network and then (try to remember to) connect to openvpn when leaving the network is quite cumbersome.. Alternatively, adding support for other apps such as Tasker or Automagic Premium to initiate connections/disconnections using this app would establish the same thing, since users could create rules in those apps to detect when the network changes. |
Hello. I can't find the new tab: Connection management. Is this available only in beta? |
@mesterj not yet. I've built this feature internally, but I need to find a time to contribute the code into a PR. |
I'm trying to do this with Tasker. Connecting is already possible by sending an intent. |
There is a 3rd party plugin for Tasker that allow full control of OpenVPN for Android. I do not want to allow general disconnect/pause etc. intents since otherwise arbitrary apps could control connections |
I would love to have an option when I connect to WiFi network A or B then fire up VPN. |
I was just about to create a new issue to suggest this. This would be great, possibly with a switch to deny any communication on unsecured Wi-Fi networks until a connection is established. (Minus the app/service in charge of connectivity checks, to allow the user to click through captive logins) |
You could allow disconnecting by intent, and make it an option that is disabled by default. This would allow folks that want to use this to have it as long as they understand the risk. @AlmogBaku any chance you've had time to get your changes organized? :) |
Hey, perhaps a dumb idea from a non-programmer but... hear me out :-) In android, it's possible to have activities that are non exported (android:exported="false") In this case, other "vanilla" applications will not be able to start this activity HOWEVER It doesn't make the security more broken than just having rooted device does ;-) |
Requiring root for anything as simple as this, where a non root solution @schwabe https://github.com/schwabe Hey, perhaps a dumb idea from a non-programmer but... hear me out :-) In android, it's possible to have activities that are non exported In this case, other "vanilla" applications will not be able to start this HOWEVER It doesn't make the security much more broken than just having rooted — |
I don't like the Intent without restriction as it would allow arbitrary apps to break the connection. Disconnecting via is already possible but apps using that api need to prompt for permissions from OpenVPN for Android. |
Allow the use of intent to be configurable, and disable it by default. I don't care, as long as the functionality exists then those of us who trust the apps on our devices and understand the risk can use it and everyone else can leave it off. This app seems to arbitrarily disconnect itself or fail to reconnect on multiple network changes, so having it be controllable by intent might actually help us to recover from an errant disconnect by using something like Tasker |
Since #103 was closed as a duplicate of this issue, are there any plans to implement a network blacklist such that openvpn won't try to connect when the device is connected to one of the networks in the blacklist? That request seems a bit unrelated to this intent discussion (triggering a disconnect vs not connecting in the first place [ie #103]) |
The OpenVPN Tasker plugin does not work with OpenVPN for Android at present, and has not been working since version 0.6.60, based on the google play comments, it looks like there have been a number of times in the past where this has broken, but the plugin has not been updated since 2014. Since I'd imagine the thing most people are trying to do with Tasker is to configure the VPN to connect on any WiFI networks that are not their home network, this feature would be very useful. Certainly better than relying on a 3rd party plugin app which contains ads and in-app purchases |
Yes, but I have had not time and motivation to implement this yet. Keep in mind that OpenVPN for Android is a spare time project for me. |
Is there anything we could do to motivate you to work on this? it's literally the only thing keeping this app from being usable for me.. since it essentially breaks every time I wander to my local network (where my VPN server is located). I could configure my router to loopback, but having to VPN from within the network where my server is located to the same network is silly. |
I use the CyberGhost VPN Android app and really like how it handles the network settings. E.g., it is possible to exclude my two trusted home WLANs (SSIDs House LANister + It Hurts When IP) and automatically start the VPN on other networks. If interested, you can download the app and test it for a week. |
@GregoryGoodnight I don't think a proprietary application is an appropriate replacement for this one.. |
Sorry for the confusion @craftyguy, I did NOT mean to replace this app with another one. I just like the way that the Cyberghost VPN Android app handles the WiFi connection management and that we could take it as an inspiration. |
Bummer, I really thought this would be a basic function, REALLY like the app include/exclude list, that ROCKS! But I really need a way to...when on home WiFi connect to Work VPN, when on work WiFi connect to Home VPN, seems like a logical thing people do... |
I am having the same issue. I want to disable the VPN on home and Work network for various reasons. So tried using E-Robot app to control the connections but the expressions and conditions make it more complicated and triggering multiple events to enable or disable the VPN connection. |
Did someone get such a bevahiour with Autoset? So far, it can start OpenVPN when I leave my home WiFi, but I did not figure out how it could stop the VPN connection when I arrive at home. |
Would also like to request this feature. |
is there a way that we get that feature soon? something like: there is a soltuion at the moment that works (only tested on linux, ubuntu) if the client is not in the local network, the rules gives a error and you can connect though the VPN to your local netowork:
but that seems only to apply on the initial connection and its not tested with windows / mac / android / etc |
Not likely. It is on my TODO list since 2015 and there has never been enough motivation to implement it. |
The motivational use-case is very well explained in OpenVPN's support forum: Hope you reconsider the motivation ! |
@Meetsch I see the use case. It is just not something that I personally use or really interested in. It is also not something that is very easy to implement or simple. |
this is getting more and more important and has to be implemented in the app without funny tasker. |
@gitlot6 if you go by the privacy argumentation then this feature would not be for you either. There is simply no way to implement this without leaking data as the app can only react AFTER the WiFi has connected but at that time, you will already have data flowing. So again a half-baked implementation is also nothing that I am happy with and the current APIs just don't allow any "Use VPN always on certains WiFI but not on other" in any proper way that doesn't leak traffic. Also trying to pressure me into developing something with the threat of negative feedback is not helping. |
I saw this article while searching for this feature as well as another article here: https://directaccess.richardhicks.com/2020/03/24/always-on-vpn-trusted-network-detection/ The implementation, in this case, is by reading the domain suffix of an adapter and connecting/disconnecting/reconnecting based on that. Perhaps this method would be something easier to implement than SSID or Cellular detection as it would be connection agnostic. No ideas on the data leak aspect other than some hook where all is halted by the VPN (perhaps with a blackhole route) until this detection is performed. That would mean having the client not disconnect but "paused"... |
That is Windows. If there was a viable way on Android I would have implemented it. Unless Google gives me something that allows me to implement it, I will not implement the feature since I don't want a half-broken feature that cannot be fixed. |
Main windows gets a new tab that does connection management.
List of conditions/actions. First action that matches will be taken.
Conditions should include Mobile network/specific WiFis or the category unencrypted WiFis.
Action should include Connect VPN x, Disconnect VPN, (and disconnect/connect only if not a specific WiFI is used.
DeviceListener already is already triggered on network reconnect.
The text was updated successfully, but these errors were encountered: