我在 Ubuntu 服务器上实现此 vpn 时遇到了麻烦。
Ubuntu 18.04.1 LTS
特别是我得到了错误:pppd:不是 setuid-root 并且调用用户不是 root。
我必须说我使用的是root用户
sudo openfortivpn --trusted-cert 6f0ac15ce35ca1af5e3b751475asdfasdf4ba7a1ec289eda308b95cbf13 xxxxx.xxxxx.xxx.xx:10443 -u 2234 <<< '123'
VPN account password:
INFO: Connected to gateway.
INFO: Authenticated.
INFO: Remote gateway has allocated a VPN.
ERROR: read: Input/output error
INFO: Cancelling threads...
ERROR: pppd: Is not setuid-root and the invoking user is not root.
INFO: Terminated pppd.
INFO: Closed connection to gateway.
INFO: Logged out.
正如你在下面看到的,我在操作系统中安装了 ppp
dpkg -l | grep ppp
ii ppp 2.4.7-2+2ubuntu1.3 amd64 Point-to-Point Protocol (PPP) - daemon
这是最新版本,我使用 apt-get 包管理器
相反,当我检查 pppd 时,我得到了以下内容
sudo pppd
Couldn't open the /dev/ppp device: Operation not permitted
pppd: Sorry - this system lacks PPP kernel support
当我尝试从 Linux 内核启动或运行 pppd 时,我得到:
modprobe ppp
modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.15.0/modules.builtin.bin'
modprobe: FATAL: Module ppp not found in directory /lib/modules/4.15.0
ls -l /lib/modules/4.15.0/modules.builtin.bin
-rw-r--r-- 1 root root 0 Feb 17 04:01 /lib/modules/4.15.0/modules.builtin.bin