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!

VPN Kill Switch

Discussion in 'VPN' started by TonyK132, May 21, 2019.

  1. TonyK132

    TonyK132 Regular Contributor

    Joined:
    Jul 24, 2017
    Messages:
    125
    I have PIA and have the Kill Switch disabled. While I really want to have it on, I've found that if the VPN goes down and the Internet is disabled as it should, it does not come on unless you do a router reboot or manually log-in to the router and re-enable the VPN. The problem is that I do not know that the VPN has been disabled so that I can take action. What I'd like is for this action to happen automatically. Is there a script that periodically checks the VPN status, say every 5 min, and if the VPN is down, to attempt to re-enable it? It should only do this if the "Block routed clients if tunnel goes down" option (ie, Kill Switch) is Yes. There should also be other checks, for example, was the VPN previous on (criteria?), not do this any more often than every 5 min, and to do the 1st one at least 5 min from when the VPN went down. Or, is this already being handled by the OpenVPN handler and I'm just not patient enough? BTW, I have an Asus u86 with Merlin 384.8_2 inside.

    Also BTW, it would be nice to get notified that the VPN has gone down. Is there a way to do that, possibly using a SmartThings Virtual Switch to indicate the state of the VPN? When it goes down, then I could trigger a WebCore piston to notify me. Or maybe there is a another way that someone has figured out?
     
  2. Xentrk

    Xentrk Part of the Furniture

    Joined:
    Jul 21, 2016
    Messages:
    2,357
    Location:
    The Land of Smiles
    Check out this thread:
    https://www.snbforums.com/threads/vpnclient1-up-down-scripts-openvpn-ac86u-help-needed.56500/
     
  3. TonyK132

    TonyK132 Regular Contributor

    Joined:
    Jul 24, 2017
    Messages:
    125
    Thanks, that's what I'm looking for.
     
  4. patrick sullivan

    patrick sullivan Regular Contributor

    Joined:
    Dec 16, 2015
    Messages:
    69
    Location:
    Oregon