Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
swoo
New Contributor

How can I keep the VPN connection alive?

I'm currently running a screen on my machine (Ubuntu 16.04.3) to connect to the VPN in background:

    screen -S vpn

To connect to my VPN, I run the following command:

    ./forticlientsslvpn_cli --server ip:port --vpnuser user

Then I'll get a prompt to confirm the connection because of the certificate:

The certificate for the SSLVPN server is invalid. You are connecting to an untrusted server. which could put your confidential information at risk. Would you like to connect to this server? (Y/N)

Once I confirm the connection, everything works properly.

    STATUS::Login succeed
STATUS::Starting PPPd
STATUS::Initializing tunnel
STATUS::Connecting to server
STATUS::Connected
Press Ctrl-C to quit
STATUS::Tunnel running

However, after a few hours of connection, I'll get the following error:

    SSLVPN down unexpectedly with error:6
STATUS::Stopping tunnel
Clean up...

How can I get my machine to reconnect to the VPN automatically upon disconnection or keep the connection alive?

0 REPLIES 0
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors