Forticlient VPN from mac CLI [closed]
Asked Answered
G

2

6

I'd like to make a script to connect to different SSL VPN's from macOS. I cannot find any info as to how to connect VPN's via command line? Can anyone please help me with this?

Gadmann answered 18/6, 2020 at 16:11 Comment(0)
S
15

There is actually a way. First, install openfortivpn via brew:

brew install openfortivpn

Then, connect as such:

sudo openfortivpn <server_ip>:<server_port> -u <username> -p <password>
Southern answered 18/12, 2021 at 16:11 Comment(2)
Works for me. I had to add a configuration file since the password can't be visible. The syntax is: $ sudo openfortivpn -c configuration_fileErving
For me, it seems to connect successfully on command line, but the network itself is not usable (from a browser). The Forticlient Console also does not update it as connected (In Windows OS it connects fine)Actuary
V
3

After some research I have come to conclusion there is no FortiClient CLI for MAC OS. In other words there is no commands for FortiClient in terminal. Still you can use terminal for Backup/Restore/Export for FortiClient VPN configuration. You can use this link for reference: FortiClient XML Reference Guide

Voluptuary answered 4/1, 2021 at 8:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.