OpenVPN activte on boot

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • richypat07
    Newbie
    • Jan 2012
    • 1

    #1

    OpenVPN activte on boot

    Hi All,

    I'm new to the world of DM800...

    My image is Satdreamgr-v3.0-+Extreme+Edition-DM800-sim201-SSL-84b-by+sat+gr

    I'm wanting my box to activate openVPN when I power the system on. Sometimes it is active after a reboot other times it isnt.

    I would like to (if possible add a line to the config file to activate it on boot up)

    Is this possible?

    Thanks in advance
  • TheCoder
    DK Veteran
    • Jun 2011
    • 693

    #2
    If you've properly installed it then it should be a service loaded at boot time so there shouldn't be anything else needs doing.

    If sometimes its active and sometimes it isn't after a reboot then that implies that its likely firing up but, for some reason, is failing to connect. This may be that your connection is actively being refused by the vpn server or it may be some failure in your local network. In these circumstances your best bet might be some kind of cron script which fires off every few minutes, checks the status of the vpn link, and then does whats necessary to continue. The script may be quite complex though (if your not used to linux scripting) as you'll have to detect various things and possibly kill running tasks if the connection hasn't occured.

    Note that simply restarting Openvpn will not guarantee a connection. If its failed to connect once then its quite possible it will fail again. It may be more appropriate to check the openvpn logfiles to see why it is failing to connect on occasion.

    Comment

    • lincsat
      DK Veteran
      • Jun 2008
      • 1228

      #3
      I've noticed a problem using SSL84b with openVPN, try an image with SSL84a installed and you may have more success.

      Comment

      Working...