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

Always on VPN ?

Discussion in 'Tomato Firmware' started by NikCoul, Jan 11, 2014.

  1. NikCoul

    NikCoul Reformed Router Member

    Hi All

    Is there anyway to keep a vpn session so that it is always on ?

    So we the box reboots it always starts the vpn and if it disconnects it auto reconnects ?

    Thanks

    Nik
     
  2. gfunkdave

    gfunkdave LI Guru Member

    In the server's advanced settings box, add the line

    Code:
    keepalive 30 120
     
  3. waeking

    waeking Networkin' Nut Member

    There is an option to start the vpn with wan. that is what you want.
     
  4. gfunkdave

    gfunkdave LI Guru Member

    Ah, yes - both the keepalive and checking the "start with WAN" box will do what you want.
     
  5. NikCoul

    NikCoul Reformed Router Member

    Sorry, I meant for a VPN client connection to a remote openvpn server.
     
  6. gfunkdave

    gfunkdave LI Guru Member

    Details like that always help.

    If you're connecting a remote PC to a VPN server, put my keepalive directive in the server's config. This will push settings to the client. Check the OpenVPN manpages for details on what keepalive does.

    If the client is Windows, there's a way to set the OpenVPN client to run as a service at startup. Probably the same exists for Linux and Mac. Google is your friend here...I don't remember.
     
  7. NikCoul

    NikCoul Reformed Router Member

    OK thanks.

    The client is the build in one on the router connecting to a remote server.

    I'll do some more hunting.
     

Share This Page