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

TomatoUSB OpenVPN Watchdog

Discussion in 'Tomato Firmware' started by alex2k, Apr 15, 2012.

  1. alex2k

    alex2k Networkin' Nut Member

    Hi there!

    I'm running TomatoUSB (v1.28.20111009 MIPSR2-beta-tomato-RT-N-GIT K26 USB VPN) on my Netgear 3500L. I set up a VPN Server and it's running pretty perfect. Nevertheless i want to run a litte OpenVPN watchdog, just to be prepared if something goes wrong and the process stops working.... but sadly i've no clue about scripting / coding.

    When the server's running properly, the "ps" looks like this:

    811 root 7000 S /etc/openvpn/vpnserver1 --cd /etc/openvpn/server1 --

    so how can i monitor this process? is anybody running such a script and would share it with me? Any hints are welcome! :)

    thanks a lot, i appreciate that!
    alex.
     
  2. Goggy

    Goggy Network Guru Member

    "Poll Interval" is the Parameter you are looking for (advanced - TAB in the VPN-GUI). If activated (=entered anything other than 0) than there is a periodically check if the VPN is running, and restart it if not.
     
    alex2k likes this.
  3. alex2k

    alex2k Networkin' Nut Member

    :D omg, THANKS goggy! It's so simple, hehe.
     
  4. alfred

    alfred Networkin' Nut Member

    The log will be flooded with VPN_LOG_NOTE user.info by the Poll Interval feature.
     
  5. alex2k

    alex2k Networkin' Nut Member

    correct, as i can see! ...but that's not a big deal, right? Or do you think this is causing any problems?

    thanks, alfred! :)
     
  6. alfred

    alfred Networkin' Nut Member

    No, not too much problem if you don't always check the log for the manage requirements, but I do. Or, perhaps it can be quieted down by the verbose setting, I didn't test it yet.

    Generally, I don't worry about if OpenVPN stops running, I have two sets of site-to-site VPN running over years, they are very stable and never get down. If they lost the connection in each other, I can see it were all caused by the ISP's sake. They will be automatically reconnected again after the ISP had their problem fixed.
     
  7. koitsu

    koitsu Network Guru Member

Share This Page