I need to connect my machine to a forticlient getaway but I don't know how to do it via terminal I don't mean the command to open the GUI, but the commands tho connect and disconnect assuming that I already have my vpn connection profiles configurated if it's there any command like:
fortissl connectionname on
or something like this:
fortissl (serverIP) (username) (password) (port) (example)
That should be nice as well I'm using ubuntu 18.10 and the foti app is Forticlient SSL-VPN
Basically I don't want to open the GUI anymore, just connect to the server via Terminal, then I'll be trying some bash things with that.
13 Answers
First download the Fortigate SSLVPN CLI
wget If you have a direct secure source please share.
You need to uncompress the downloaded file:
tar -xzvf forticlientsslvpn_linux_4.4.2328.tar.gzInstall ppp (in case you don't have it):
sudo apt-get install pppGo to the installer setup dir:
cd ./forticlientsslvpn/64bit/helperand run the setup file:
sudo ./setup.linux.sh go to the following dir
cd forticlientsslvpn/64bit/Finally you can connect whenever you want using this command:
./forticlientsslvpn_cli --server serveraddress:port --vpnuser usernameFor further information in forticlient CLI:
Please try openfortivpn:
sudo apt install openfortivpnWe may setup default connection by editing this file:
sudo nano /etc/openfortivpn/configAfter setting up, just run the command:
sudo openfortivpnIf the connection was not in the list of trusted certification, the command will return an error message and we can just follow the message to add the server as trusted and re-run the command.
1Since I was recently found about this too. It is all running in CLI by the way
You can Download Fortigate SSLVPN CLI and extract it to any folder then navigate to to forticlientsslvpn/64bit/ or forticlientsslvpn/32bit/
after that just run: ./forticlientsslvpn_cli --server serveraddress:port --vpnuser username
And you are done.
Source:
9