NetworkManager가 VPN 플러그인을 찾을 수 없습니다

NetworkManager가 VPN 플러그인을 찾을 수 없습니다

동일한 VPN 클라이언트 구성으로 두 개의 다른 컴퓨터를 설정하려고 합니다. 두 시스템 모두 Ubuntu 20.04를 실행하며 하나는 X(시스템 B)가 없습니다.

다음은 머신 A에서 작동하는 NetworkManager 구성 파일입니다.

[connection]
id=myVPN
uuid=blabla-blabla-blabla
type=vpn
autoconnect=false
permissions=user:mark:;

[vpn]
IKE DH Group=dh2
IPSec ID=myID
IPSec gateway=myGateway
IPSec secret-flags=1
Local Port=0
NAT Traversal Mode=natt
Perfect Forward Secrecy=server
Vendor=cisco
Xauth password-flags=1
Xauth username=myUser
ipsec-secret-type=save
xauth-password-type=save
service-type=org.freedesktop.NetworkManager.vpnc

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto

[proxy]

이 파일을 머신 B에 복사하고 다음을 실행했습니다.

$ sudo nmcli connection import type vpn file myVPN.nmconnection
Error: failed to find VPN plugin for vpn

두 컴퓨터 모두에서 패키지를 확인했습니다.

기계 A

$ dpkg -l | grep network-manager
ii  network-manager                                   1.22.10-1ubuntu2.2                              amd64        network management framework (daemon and userspace tools)
ii  network-manager-config-connectivity-ubuntu        1.22.10-1ubuntu2.2                              all          NetworkManager configuration to enable connectivity checking
ii  network-manager-gnome                             1.8.24-1ubuntu3                                 amd64        network management framework (GNOME frontend)
ii  network-manager-openvpn                           1.8.12-1                                        amd64        network management framework (OpenVPN plugin core)
ii  network-manager-openvpn-gnome                     1.8.12-1                                        amd64        network management framework (OpenVPN plugin GNOME GUI)
ii  network-manager-pptp                              1.2.8-2                                         amd64        network management framework (PPTP plugin core)
ii  network-manager-pptp-gnome                        1.2.8-2                                         amd64        network management framework (PPTP plugin GNOME GUI)
ii  network-manager-vpnc                              1.2.6-2                                        amd64        network management framework (VPNC plugin core)
ii  network-manager-vpnc-gnome                        1.2.6-2                                        amd64        network management framework (VPNC plugin GNOME GUI)

기계 B

$ dpkg -l | grep network-manager
ii  network-manager                            1.22.10-1ubuntu2.2                    amd64        network management framework (daemon and userspace tools)
ii  network-manager-config-connectivity-ubuntu 1.22.10-1ubuntu2.2                    all          NetworkManager configuration to enable connectivity checking
ii  network-manager-openvpn                    1.8.12-1                              amd64        network management framework (OpenVPN plugin core)
ii  network-manager-pptp                       1.2.8-2                               amd64        network management framework (PPTP plugin core)
ii  network-manager-vpnc                       1.2.6-2                                        amd64        network management framework (VPNC plugin core)

보시다시피 헤드리스 시스템에 필요하지 않은 GUI 패키지를 제외하고는 동일합니다.

머신 B에 설치해야 하는 다른 패키지(network-manager-*가 아닌)가 있습니까?

업데이트

상황이 점점 악화되고 있습니다. 위의 연결이 정상적으로 실행되는 머신 A에서 다음 명령을 실행했습니다.

$ nmcli connection export myVPN ~/export-myVPN
$ nmcli connection import type vpn file ~/export-myVPN
Error: failed to find VPN plugin for vpn

우와! 동일한 시스템에서 방금 내보낸 파일을 가져올 수 없습니다!

도움말은 다음과 같이 말합니다.

$ nmcli connection import --help
Usage: nmcli connection import { ARGUMENTS | help }

ARGUMENTS := [--temporary] type <type> file <file to import>

Import an external/foreign configuration as a NetworkManager connection profile.
The type of the input file is specified by type option.
Only VPN configurations are supported at the moment. The configuration
is imported by NetworkManager VPN plugins.

그래서 나도 type VPN기회 없이 시도해 봤다. 나는 나를 믿고 싶지 않다~ 해야 하다GUI를 사용하여 VPN을 구성하려면 Gnome만 설치하세요.

업데이트 2

몇 시간을 보냈지만 파일을 내보낸 동일한 컴퓨터(전체 Gnome이 설치된 상태)에서도 파일을 가져올 수 없었습니다.

그래서 나는 다음과 같은 추악한 해결 방법을 수행했습니다.

  1. 설치하다gnome-session gdm3 network-manager-gnome
  2. GUI 프런트엔드에서 내가 가져오려고 했던 것과 동일한 파일을 가져옵니다.nmcli
  3. 위의 패키지를 제거하십시오
  4. 다음을 사용하여 새 VPN 연결을 실행하십시오.nmcli

관련 정보