Created
July 2, 2017 14:31
-
-
Save zealfire/b84636a1a454dace4508ea8c0338389b to your computer and use it in GitHub Desktop.
Install forticlient in linux. Replace HOST, PORT, USER and PASS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install expect | |
wget http://kb.cloud.it/files/tar-gz/forticlientsslvpn_linux_4-0-2281-tar.gz | |
tar xzf forticlientsslvpn_linux_4-0-2281-tar.gz | |
sudo mv forticlientsslvpn /opt/ | |
cat > sslvpn << EOF | |
#!/usr/bin/expect -f | |
set timeout -1 | |
cd /opt/forticlientsslvpn | |
spawn ./forticlientsslvpn_cli --server HOST:PORT --vpnuser USER | |
expect "Password for VPN:" {send -- "PASS\r"} | |
expect "to this server? (Y/N)\r" {send -- "y\r"} | |
expect eof | |
EOF | |
chmod +x sslvpn | |
sudo mv sslvpn /usr/local/bin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment