1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

OpenVPN noob question

Discussion in 'Asuswrt-Merlin' started by htismaqe, Dec 8, 2019.

  1. htismaqe

    htismaqe Very Senior Member

    Joined:
    Aug 1, 2010
    Messages:
    1,701
    Location:
    Fly Over Country
    I got OpenVPN setup and everything is working. I have the client currently running on iOS.

    What I'm wondering is if there's a way to have the VPN connect to my router any time the local network is not available. I would imagine this could be done on a workstation using some scripting but iOS is a lot less configurable in that respect.

    Obviously I don't want the VPN to be connected while I'm on my internal WLAN and it doesn't work anyway. But I also want to be able to receive notifications from smart home security devices and I won't get them if I forget to fire up a VPN tunnel when I'm away from home.
     
  2. Val D.

    Val D. Very Senior Member

    Joined:
    Jun 16, 2019
    Messages:
    935
    Looks like there is an iOS app configurable for own VPN servers:
    App Store -> search for Passepartout - OpenVPN Client
    More information - https://passepartoutvpn.app/

    I had no time to test it personally, but people say it works well.
     
    htismaqe and Butterfly Bones like this.
  3. Butterfly Bones

    Butterfly Bones Very Senior Member

    Joined:
    Apr 10, 2017
    Messages:
    1,089
    Location:
    USA
    Simple setup, just import the OVPN file exported from the router. Easier than the OpenVPN app to import, I'll likely spend the $6.00 USD tomorrow to have it auto connect when I leave home and disconnect when on my home network. I'll test on a couple public WiFi networks first.
     
    htismaqe likes this.
  4. htismaqe

    htismaqe Very Senior Member

    Joined:
    Aug 1, 2010
    Messages:
    1,701
    Location:
    Fly Over Country
    Thanks guys, I'll be checking it out too.
     
  5. htismaqe

    htismaqe Very Senior Member

    Joined:
    Aug 1, 2010
    Messages:
    1,701
    Location:
    Fly Over Country
    FYI, if you only want the functionality I want, it's $1.99 USD. The $6.99 option enables Siri stuff and several hosted VPN providers.
     
    Butterfly Bones likes this.
  6. Adamm

    Adamm Part of the Furniture

    Joined:
    Mar 26, 2013
    Messages:
    2,514
    Under settings toggle the setting “Connect Via” to “Cellular only”. Doing this will auto-disconnect the VPN once you are in Wi-Fi range and reconnect whenever you leave.

    No need to use a paid app at all.
     
    htismaqe likes this.
  7. htismaqe

    htismaqe Very Senior Member

    Joined:
    Aug 1, 2010
    Messages:
    1,701
    Location:
    Fly Over Country
    I've confirmed that it works. Thanks!!!
     
  8. htismaqe

    htismaqe Very Senior Member

    Joined:
    Aug 1, 2010
    Messages:
    1,701
    Location:
    Fly Over Country
    What if I want it to only ignore my WIFI. Does it have the ability to trust my network and not trust all other WIFI connections? Because passepartout does this.
     
  9. Adamm

    Adamm Part of the Furniture

    Joined:
    Mar 26, 2013
    Messages:
    2,514
    Technically speaking if you set it to “Any Network” it should have this effect as its impossible to establish a connection to a network your already connected to.
     
    htismaqe likes this.
  10. htismaqe

    htismaqe Very Senior Member

    Joined:
    Aug 1, 2010
    Messages:
    1,701
    Location:
    Fly Over Country
    The weird thing is I can't get the official OpenVPN client to connect with anything other than the default server settings. I can't get Passepartout to connect with the default server settings because it's trying to use SHA1. If I change it to SHA256, Passepartout connects but OpenVPN doesn't.
     
  11. Adamm

    Adamm Part of the Furniture

    Joined:
    Mar 26, 2013
    Messages:
    2,514
    You can view the logs in the OpenVPN app by pressing the scroll looking icon in the top right corner, that should give you a better idea of what’s going wrong.
     
    htismaqe likes this.