Linux上没有GUI的Fortinet SSL VPN客户端安装(centos)

如何在CentOS上运行的VPS上安装和设置一个Fortinet SSL VPN客户端? 我有问题做这件事,因为我所有的指南都使用未安装在VPS上的GUI来节省资源。 (例如: http : //dbssolutions.freshdesk.com/solution/categories/1513/folders/3047/articles/1791-how-to-install-the-linux-fortinet-ssl-vpn-client )

我已经有了vpn客户端的linux版本,但不知道如何使用terminal来安装和configuration它。

我花了一段时间试图find这个文件,并从一个Fortinet工程师得到这个。

  1. 像其他任何使用tar.gz文件一样安装然后在linux CLI下运行命令
  2. 然后在linux CLI下运行命令

./forticlientsslvpn_cli --server 172.17.97.85:10443 --vpnuser forti

确保命令从sslvpn目录运行。 用您的服务器replaceIP地址。

您可以尝试在不使用Fortinet GUI的情况下configuration您的VPN。 这里是一个完整的指南,用于linux http://www.ipsc-howto.org/的 IPSEC,你可能想试试这个:

该链接是通过由pty-redir创build并连接到ssh的伪terminal运行pppd而创build的。 这是通过类似于以下命令序列来完成的:

 /usr/sbin/pty-redir /usr/bin/ssh -t -e none -o 'Batchmode yes' -c blowfish -i /root/.ssh/identity.vpn -l joe > /tmp/vpn-device sleep 10 /usr/sbin/pppd `cat /tmp/vpn-device` sleep 15 /sbin/route add -net 172.16.0.0 gw vpn-internal.mycompany.com netmask 255.240.0.0 /sbin/route add -net 192.168.0.0 gw vpn-internal.mycompany.com netmask 255.255.0.0 

这样做是运行ssh,将input和输出redirect到pppd。 传递给ssh的选项在terminal模式下(-t)使用指定的标识文件(-i),使用blowfishencryptionalgorithm(-c),使用选项“Batchmode是“(-o)。 sleep命令用于隔离命令的执行,以便每个命令在下一次运行之前完成启动。

从“调出链接 ”

下一节,“ 脚本 ”可以帮助你configuration和运行你的VPN客户端。 在ubuntu文档中还有其他信息。

这是另一个短的解决scheme。 下载并安装客户端:

 # wget -q http://kb.arubacloud.com/files/tar-gz/forticlientsslvpn_linux_4-0-2281-tar.aspx -O fortisslvpn.tgz && tar -xzf fortisslvpn.tgz # cd forticlientsslvpn && ./helper/setup.linux.sh 

按Ctrl + C,同意他们的许可证(仅限第一次),然后通过以下方式连接到VPN:

 # yes | ./forticlientsslvpn_cli --server example_firewall_host:10443 --vpnuser example_user > /dev/null 

编码一些像这样的Expect脚本:

 #!/usr/bin/expect spawn /opt/local/forticlientsslvpn/64bit/forticlientsslvpn_cli --server vpn_host:port --vpnuser user1 expect "Password for VPN:" send "password\r" #expect "*(Y/N)" #send "Y\r" interact