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?
Forticlient VPN from mac CLI [closed]
Asked Answered
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>
Works for me. I had to add a configuration file since the password can't be visible. The syntax is: $ sudo openfortivpn -c configuration_file –
Erving
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
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
© 2022 - 2024 — McMap. All rights reserved.