更换国内源
https://blog.csdn.net/zhou_yongzhe/article/details/80028865
安装编译依赖
1 2
| apt install autoconf apt install libssl-dev
|
libssl-dev 在 centos 上面对应的包名为 openssl-devel
安装运行依赖
1 2 3
| modprobe ppp modprobe ppp_async apt install ppp
|
检出代码编译
1 2 3 4 5
| git clone https://github.com/adrienverge/openfortivpn.git ./autogen.sh ./configure --prefix=/usr/local --sysconfdir=/etc make make install
|
连接
1
| openfortivpn hostname:10443 -u username -p password --insecure-ssl
|
systemd
1 2 3 4 5 6 7 8 9 10 11
| [Unit] Description=openfortivpn service After=network.target remote-fs.target nss-lookup.target
[Service] Type=simple ExecStart=/usr/local/bin/openfortivpn ssl.example.com:10443 -u <username> -p <password> --insecure-ssl
[Install] WantedBy=multi-user.target
|