我正在运行 Arch Linux,最近更新了整个系统。
现在我每次用命令连接VPN时nmcli
,如果失败,我无法找出原因:
NetworkManager[15967]: <info> VPN plugin state changed: starting (3)
NetworkManager[15967]: <info> VPN connection 'XXX' (Connect) reply received.
NetworkManager[15967]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
NetworkManager[15967]: <warn> VPN plugin failed: 1
NetworkManager[15967]: <warn> VPN plugin failed: 1
NetworkManager[15967]: <warn> VPN plugin failed: 1
NetworkManager[15967]: <info> VPN plugin state changed: stopped (6)
NetworkManager[15967]: <info> VPN plugin state change reason: 0
NetworkManager[15967]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
在升级之前,我可以看到来自 pppd 的错误消息,例如“您已经登录 bla bla”,现在所有有用的消息都消失了。
有任何想法吗?为什么连接失败?
答案1
NetworkManager.conf
更改文件中使用的日志级别
[logging] 此部分控制 NetworkManager 的日志记录。此处的任何设置都会被 --log-level 和 --log-domains 命令行选项覆盖。
level=<level> One of [ERR, WARN, INFO, DEBUG]. The ERR level logs only critical errors. WARN logs warnings that may reflect operation. INFO logs various informational messages that are useful for tracking state and operations. DEBUG enables verbose logging for debugging purposes. Subsequent levels also log all messages from earlier levels; thus setting the log level to INFO also logs error and warning messages.
但请注意这部分:
此部分控制 NetworkManager 的日志记录。此处的任何设置都会被 --log-level 和 --log-domains 命令行选项覆盖。
答案2
我确实检查了您的日志并与我的成功日志进行了比较,发现您的网络管理器 ppp 插件无法加载,您需要安装 networkmanager-pptp 包才能使用它。