Skip to content

Instantly share code, notes, and snippets.

@zealfire
Created July 2, 2017 14:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zealfire/b84636a1a454dace4508ea8c0338389b to your computer and use it in GitHub Desktop.
Save zealfire/b84636a1a454dace4508ea8c0338389b to your computer and use it in GitHub Desktop.
Install forticlient in linux. Replace HOST, PORT, USER and PASS.
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