Skip to main content
rafaelbrsjtt
Visitor III
March 27, 2024
Solved

Forticlient VPN Only on Linux

  • March 27, 2024
  • 1 reply
  • 2843 views

Hi, recently i started an application on linux that i need to use a database on another network, so, i have to use a VPN to connect in this database.

 

 

When i run the command 'fortclient vpn view' i got the following message:

 

Client Certificate: None
Authentication: Disabled
Single Sign On (SSO) for VPN Tunnel: Disabled
Auto Connect: Disabled
Always Up: Disabled
Save Password: Disabled

 

 

How do i enable the option Always Up and Auto Connect?

 

the command 'forticlient vpn edit' don't give me this options.

 

Sorry for my bad english

 

 

 

 

Best answer by ozkanaltas

Hello @rafaelbrsjtt ,

 

You can enable with this command always-up feature. But you can't activate the auto-connect feature on Linux. Because the Linux client can't save your password. 

 

 

/opt/forticlient/fortivpn connect <my_vpn_name> --user=<username> --password --save-password --always-up

 

 

Also if you want to get more information about Linux client commands, you can review this document.

 

https://docs.fortinet.com/document/forticlient/7.2.4/administration-guide/41299/forticlient-linux-cli-commands

 

And I found one more thing. Someone wrote a script about automating ssl-vpn connection on Linux. I haven't try before but maybe it works for you.

 

https://gist.github.com/mgeeky/8afc0e32b8b97fd6f96fce6098615a93

 

1 reply

ozkanaltas
Valued Contributor III
March 28, 2024

Hello @rafaelbrsjtt ,

 

You can enable with this command always-up feature. But you can't activate the auto-connect feature on Linux. Because the Linux client can't save your password. 

 

 

/opt/forticlient/fortivpn connect <my_vpn_name> --user=<username> --password --save-password --always-up

 

 

Also if you want to get more information about Linux client commands, you can review this document.

 

https://docs.fortinet.com/document/forticlient/7.2.4/administration-guide/41299/forticlient-linux-cli-commands

 

And I found one more thing. Someone wrote a script about automating ssl-vpn connection on Linux. I haven't try before but maybe it works for you.

 

https://gist.github.com/mgeeky/8afc0e32b8b97fd6f96fce6098615a93