Giter VIP home page Giter VIP logo

ios-vpn-autoconnect's Introduction

I'm a software engineering leader and passionate technologist with over a decade of experience in technology-related fields.

I build experiences using a variety of hardware and software, mostly focused on home automation and IoT. I hold four patents.

I race in the 24 Hours of LeMons series. I write about cars and take pictures of them. I ride street and dirt motorcycles and love finding new places in the middle of nowhere.

I listen to podcasts such as ATP, The Smoking Tire, 99% Invisible, Carmudgeon, and Freakonomics.

I drink craft beer and go camping.

I've got an awesome wife and yellow lab.

Check out my personal homepage, https://www.linquist.com

ios-vpn-autoconnect's People

Contributors

andpoi avatar antoniodowling avatar klinquist avatar patrickdekleijn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-vpn-autoconnect's Issues

I want to buy you a beer

I think this project helps a lot of people. People that would gladly buy you a beer.

Do you plan to have a Paypal.me kind thing in order to let people send you a few bucks?

Line Breaks in SSID Exclusions cause failures

Line Breaks in the SSID string value cause it to fail to properly recognize the necessary SSID.

Line 308:
onlySsids += ' <string>\n ' + ssids[i].trim() + '\n </string>\n'

Change to:
onlySsids += ' <string>' + ssids[i].trim() + '</string>\n'

SSID Exclusions

When you generate the exclusion list, it appears that order matters quite a bit.

With the generator it'll spit out the following for "On wifi only":
<key>OnDemandRules</key> <array> <dict> <key>InterfaceTypeMatch</key> <string>WiFi</string> <key>Action</key> <string>Connect</string> </dict> <dict> <!-- VPN Default state --> <key>Action</key> <string>Disconnect</string> </dict> <dict> <key>InterfaceTypeMatch</key> <string>WiFi</string> <key>SSIDMatch</key> <array> <string> SSID_EXCLUSION_HERE </string> </array> <key>Action</key> <string>Disconnect</string> </dict> </array>

It needs to be changed to:
<key>OnDemandRules</key> <array> <dict> <key>InterfaceTypeMatch</key> <string>WiFi</string> <key>SSIDMatch</key> <array> <string> SSID_EXCLUSION_HERE </string> </array> <key>Action</key> <string>Disconnect</string> </dict> <dict> <key>InterfaceTypeMatch</key> <string>WiFi</string> <key>Action</key> <string>Connect</string> </dict> <dict> <!-- VPN Default state --> <key>Action</key> <string>Disconnect</string> </dict> </array>

Issue when switching from cellular to untrusted wifi

Using this tool, I setup a profile that connects VPN when using untrusted wifi and cellular and I am seeing a problem. When switching from cellular to untrusted wifi, the VPN does not disconnect/reconnect and the device continues using cellular (with VPN) instead of the expected wifi (with VPN).

This is also a problem when switching from trusted (or untrusted) wifi to a new untrusted wifi as the device will switch to cellular (with VPN) temporarily until the new untrusted wifi connects. Once the new untrusted wifi connects, the device is still using cellular (with VPN).

Honestly, this feels like an iOS/MDM problem, but I thought I would post it here just in case there is something in the profile that your code generates that can control this behaviour.

Not Working on MacOS BigSur

Hi, I tried "iOS VPN Profile Generator", on iPhone and it works, but It doesn't work on MacOS BigSur 11.1.
Is there a way to use it on MacOS, too?
This is what happens when I try the profile on MacOS: I set to connect VPN when I'm not connected to my Home WiFi, but when I connect to my iPhone's Tethering to test the created profile, VPN continues to connect and disconnect repeatedly.
What can I do?

macOS Testing?

The VPN Autoconnect seems to work very well for iOS, but for macOS, connecting to an untrusted WiFi network will cause the system to rapidly connect and disconnect the VPN. Any ideas on how to work this?

When set to cellular, it does not jump on to wifi.

Hi,

Thanks for the configurator!

I have the following issue:

If I am on cellular, then it will be connected to the VPN over cellular internet. Once I get on my wifi it seems that the VPN over cellular is still active and is the primary internet. Is that a common thing or have I done something wrong? I would expect the logic to disconnect VPN over cellular and connect over WIFI once the phone is on WIFI.

Thanks.

Consecutive profiles

Hey there,

thank you very much for creating this tool! I just noticed that once you download a profile, further changes are not applied to consecutive downloads. So you have to reload the page for every new profile. Can you reproduce this behavior?

Thanks, Lucas

Custom DNS during VPN connection

Hi all,
It's great that I've found this generator which works on IOS devices.
So far I have an issue is to set a custom DNS in the script to like a Google DNS.
My questions is, whether we can set the custom DNS inside the script (mobileconfig)?

Thank you very much for your time.
Dean

OpenVPN

Will this work with OpenVPN?

Tunnelbear

Is it possible to set this up for use with Tunnelbear? Looking at the profile Tunnelbear installed, it seems to use IKEv2.

Could one use this great tool to (re)connect Wireguard automatically?

Wireguard actually works great on iOS, especially with the on-demand feature.
However, it has had the nasty bug for quite some time that a permanent 24/7 connection is not possible if the IP address of the endpoint changes (e.g. because the Wireguard sever is self-hosted via DynDNS). Thus, every morning the connection must be manually disconnected and reconnected. Otherwise, websites simply don't load without an error message, which naturally frustrates users when they have to manually put their iPhone back online.
The issue is neither server-side nor with the client app on the iOS device solvable so far.

Therefore, if "iOS-VPN-Autoconnect" were extended to Wireguard and could contain the simple function: "rebuild the vpn tunnel daily at 6 am", this would make Wireguard really useful for many on iOS.
(or it doesn't have to be a time based automation, it would be enough if the script would support in case of Wireguard "automatically disconnect and reconnect" instead of just "automatically connect" in case of Wireguard, because otherwise the old "dead" tunnel will be reused, like it is the case when you switch on and off the flight mode, the Wireguard client then continues to use the old connection and doesn't establish a new one).

Strings not correctly encoded

Encountered a problem when using '&' in a password; needed to be encoded as '&' to function. iOS gave 'profile is corrupted' errors until this was done.

ipsec support

will be there support for ipsec? instead of just l2tp?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.