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?
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1710 | |
1093 | |
752 | |
447 | |
231 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.