Skip to main content
ldailles
New Member
April 24, 2015
Question

Connect forticlient in command line

  • April 24, 2015
  • 3 replies
  • 69344 views

Hello,

 

I would like to connect and disconnect the client ssl vpn FortiClient in command line. I would like to connect the vpn before backup and disconnect after the backup.

 

How do i do  ?

 

Thanks to your answers.

 

Best regards

    3 replies

    Christopher_McMullan
    Staff
    Staff
    April 24, 2015

    I grabbed this screenshot from mine.

    liquid
    New Member
    April 29, 2015

    Also very interested in possibility.

    Anybody got a hint?

     

    ldailles wrote:

    Hello,

     

    I would like to connect and disconnect the client ssl vpn FortiClient in command line. I would like to connect the vpn before backup and disconnect after the backup.

     

    How do i do  ?

     

    Thanks to your answers.

     

    Best regards

    Christopher_McMullan
    Staff
    Staff
    April 29, 2015

    Check out the image I attached to my previous post. It shows the CLI syntax you would use to perform all the available operations.

    markonans
    New Member
    October 20, 2016

    Good post,  thanks for info.  Would be great if you could send the password as well. 

    Assume this isnt something that can be done? 

     

    marko@ubuntu:~$ pwd /home/marko

    marko@ubuntu:~$ /opt/forticlient-sslvpn/64bit/forticlientsslvpn_cli connect --server test.com.au:443 --vpnuser testaccount --keepalive Password for VPN: STATUS::Setting up the tunnel STATUS::Connecting... STATUS::Login succeed STATUS::Starting PPPd STATUS::Initializing tunnel STATUS::Connecting to server STATUS::Connected Press Ctrl-C to quit STATUS::Tunnel running

    marko@ubuntu:/opt/forticlient-sslvpn/64bit$ uname -a Linux ubuntu 4.4.0-42-generic #62-Ubuntu SMP Fri Oct 7 23:11:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux