Falha ao conectar-se à VPN PPTP no Ubuntu: falha no plug-in da VPN: 1

2

Eu usei o network-manager-pptp no Ubuntu 12.04 para configurar o vpn.

IPv4 Settings: 
Automatic

VPN: 
Gateway - set
User name - set
Password - Always Ask

PPTP Advanced Option:
PAP, CHAP, MSCHAP, EAP - unchecked
MSCHAPv2 - checked
Use Point-to Point encryption (MPPE) - checked
Securtity - 128-bit

all other settings are unchecked

Mas sempre recebo a mesma mensagem quando tento conectar-me à conexão vpn: falhou. Os mesmos problemas estavam no Ubuntu 10.04. No log do sistema eu tenho:

<info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 3042
May 23 22:17:42 NR5 NetworkManager[983]: <info> VPN service 'pptp' appeared; activating connections
May 23 22:17:42 NR5 NetworkManager[983]: <info> VPN plugin state changed: init (1)
May 23 22:17:42 NR5 NetworkManager[983]: <info> VPN plugin state changed: starting (3)
May 23 22:17:42 NR5 NetworkManager[983]: <info> VPN connection 'VPN NAME' (Connect) reply received.
May 24 00:21:00 NR5 pppd[9773]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
May 24 00:21:00 NR5 pppd[9773]: pppd 2.4.5 started by root, uid 0
May 24 00:21:00 NR5 pppd[9773]: Using interface ppp0
May 24 00:21:00 NR5 pppd[9773]: Connect: ppp0 <--> /dev/pts/3
May 24 00:21:00 NR5 pptp[9776]: nm-pptp-service-9764 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
May 23 22:17:42 NR5 NetworkManager[983]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
May 23 22:17:42 NR5 NetworkManager[983]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
May 24 00:21:01 NR5 pptp[9786]: nm-pptp-service-9764 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
May 24 00:21:01 NR5 pptp[9786]: nm-pptp-service-9764 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
May 24 00:21:01 NR5 pptp[9786]: nm-pptp-service-9764 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
May 24 00:21:02 NR5 pptp[9786]: nm-pptp-service-9764 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
May 24 00:21:02 NR5 pptp[9786]: nm-pptp-service-9764 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
May 24 00:21:02 NR5 pptp[9786]: nm-pptp-service-9764 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 32930).
May 24 00:21:31 NR5 pppd[9773]: LCP: timeout sending Config-Requests
May 24 00:21:31 NR5 pppd[9773]: Connection terminated.
May 23 22:18:13 NR5 NetworkManager[983]: <warn> VPN plugin failed: 1
May 23 22:18:14 NR5 NetworkManager[983]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
May 23 22:18:14 NR5 NetworkManager[983]: <warn> VPN plugin failed: 1
May 23 22:18:14 NR5 NetworkManager[983]: <warn> VPN plugin failed: 1
May 23 22:18:14 NR5 NetworkManager[983]: <info> VPN plugin state changed: stopped (6)
May 23 22:18:14 NR5 NetworkManager[983]: <info> VPN plugin state change reason: 0
May 23 22:18:14 NR5 NetworkManager[983]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.

Antes de iniciar a conexão vpn, a tabela de roteamento parece:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0

Depois que eu tentei iniciar o vpn, o endereço IP X.X.X.X do servidor vpn foi adicionado à tabela de roteamento:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
X.X.X.X         192.168.1.1     255.255.255.255 UGH   0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0

Além disso, a mesma conexão VPN funciona na mesma máquina no Windows sem problemas.

Se você tiver algumas sugestões, eu ficaria feliz. Muito obrigado.

    
por M.K. 24.05.2012 / 00:01

2 respostas

1

Sua conexão expira ( LCP: timeout sending Config-Requests ), o que pode ser causado pelo roteador não permitir conexões PPTP para passar da WAN para um host por trás do NAT. Verifique a configuração do roteador, se a passagem do PPTP está ativada e encaminha para a máquina da qual você deseja fazer o tunelamento.

    
por 14.06.2012 / 13:25
2

Isso me ajudou a resolver meu problema em 12.04 e espero que ajude você também. Copiado de esta página wiki do Ubuntu

Execute o seguinte:

sudo apt-get install pptp-linux

Crie o arquivo /etc/ppp/peers/YOUR_COMPANY com este conteúdo:

pty "pptp YOUR_VPN_GATEWAY --nolaunchpppd"
debug
nodetach
logfd 2
noproxyarp
ipparam YOUR_COMPANY
remotename YOUR_COMPANY
name YOUR_DOMAIN_OR_SERVER_NAME\YOUR_VPN_LOGIN
require-mppe-128
nobsdcomp
nodeflate
lock
noauth
refuse-eap
refuse-chap
refuse-mschap

Adicione a /etc/ppp/chap-secrets :

YOUR_DOMAIN_OR_SERVER_NAME\YOUR_VPN_LOGIN * YOUR_VPN_PASSWORD *

Crie o arquivo /etc/ppp/ip-up.d/add-subnet com conteúdo semelhante a:

[ "$PPP_IPPARAM" = "YOUR_COMPANY" ] || exit 0
route add -net 192.168.100.0/24 dev $PPP_IFACE

Na linha acima, ajuste os valores de sub-rede (192.168.100.0/24) se necessário

Em seguida, execute:

sudo chmod a+x /etc/ppp/ip-up.d/add-subnet
  • Conecte-se à VPN: sudo pon YOUR_COMPANY Para desconectar, pressione Ctrl + C ou feche o terminal.

  • Se você não deseja ver a saída de depuração da conexão VPN, no arquivo / etc / ppp / peers / YOUR_COMPANY, exclua 3 linhas: debug nodetach logfd 2

Nesse caso, "pon YOUR_COMPANY" será executado como um processo em segundo plano. Use "poff YOUR_COMPANY" para desconectar.

    
por 10.08.2012 / 10:45

Tags