Por que a conexão está sendo fechada?

0

Eu instalei o Open VPN. Tanto nos meus servidores quanto no meu computador. Eu vejo meus arquivos de log como:

Aug 18 18:37:52 ubuntu openvpn[27920]: Local Options hash (VER=V4): 'bd6dea9e'
Aug 18 18:37:52 ubuntu openvpn[27920]: Expected Remote Options hash (VER=V4): '760316bb'
Aug 18 18:37:52 ubuntu openvpn[27931]: Attempting to establish TCP connection with x.x.x.x.x.x:80
Aug 18 18:37:52 ubuntu openvpn[27931]: TCP connection established with x.x.x.x:80
Aug 18 18:37:52 ubuntu openvpn[27931]: Socket Buffers: R=[87380->131072] S=[23860->131072]
Aug 18 18:37:52 ubuntu openvpn[27931]: TCPv4_CLIENT link local: [undef]
Aug 18 18:37:52 ubuntu openvpn[27931]: TCPv4_CLIENT link remote: x.x.x.x.x:80
Aug 18 18:37:52 ubuntu openvpn[27931]: WARNING: Bad encapsulated packet length from peer (15393), which must be > 0 and <= 1546 -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attemping restart...]
Aug 18 18:37:52 ubuntu openvpn[27931]: Connection reset, restarting [0]
Aug 18 18:37:52 ubuntu openvpn[27931]: TCP/UDP: Closing socket
Aug 18 18:37:52 ubuntu openvpn[27931]: /sbin/route del -net x.x.x.x.x. netmask 255.255.255.255
Aug 18 18:37:52 ubuntu openvpn[27931]: /sbin/route del -net 0.0.0.0 netmask 128.0.0.0
Aug 18 18:37:52 ubuntu openvpn[27931]: /sbin/route del -net 128.0.0.0 netmask 128.0.0.0
Aug 18 18:37:52 ubuntu openvpn[27931]: Closing TUN/TAP interface
Aug 18 18:37:52 ubuntu openvpn[27931]: SIGUSR1[soft,connection-reset] received, process restarting
Aug 18 18:37:52 ubuntu openvpn[27931]: Restart pause, 5 second(s)
Aug 18 18:37:57 ubuntu openvpn[27931]: Cannot open file key file 'ovpn.key': No such file or directory (errno=2)
Aug 18 18:37:57 ubuntu openvpn[27931]: Exiting

Eu me pergunto onde está o problema, o que faz VPN para se reconectar. Observe que o arquivo ovpn.key está no diretório atual !. Mas ainda está mostrando a mensagem de erro cannot open file .

Alguém pode me dizer onde estou cometendo erros?

Obrigado antecipadamente.

    
por batman 18.08.2012 / 15:15

1 resposta

1
  • Sempre faça referência à sua chave com um nome de arquivo absoluto, não um nome relativo!

  • Se ainda assim não funcionar, verifique as permissões do arquivo.

por lgarrett 10.10.2012 / 13:40