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-event determining your and down state

Discussion in 'Asuswrt-Merlin' started by Markster, Oct 10, 2019.

  1. Markster

    Markster Regular Contributor

    Joined:
    Jan 29, 2019
    Messages:
    63
    Quick question to anyone that has done it. How do I determine in OpenVPN-event script the state of the VPN client?
    I want to execute different section in the script when VPN client has gone down and different logic when it has been started.
    Thanks in advance.
     
  2. Martineau

    Martineau Part of the Furniture

    Joined:
    Jul 8, 2012
    Messages:
    2,327
    Location:
    UK
    If you use this openvpn-event template you can code the appropriate custom trigger script.
     
    elorimer and Markster like this.
  3. Markster

    Markster Regular Contributor

    Joined:
    Jan 29, 2019
    Messages:
    63
    Thank you. This is what I was looking for.