Conexão cliente do OpenVPN

Iniciado por lvrodrigues, 02 de Outubro de 2009, 21:53

tópico anterior - próximo tópico

lvrodrigues

Saudações:

Instalei o OpenVPN, versão 2.0.9 no Ubuntu 9.04+ e estou tendo problemas em estabelecer uma conexão com o servidor. Sei que o problema é local, pois consigo conectar o servidor pela VPN com uma máquina Windows. Quando tento estabelecer a conexão, recebo o seguinte log:

luciano@luciano:~/Documentos/openvpn$ sudo openvpn --config clientconfig.conf
Fri Oct  2 21:50:10 2009 OpenVPN 2.0.9 i686-pc-linux [SSL] [LZO] [EPOLL] built on Sep 27 2009
Enter Auth Username:lrodrigues
Enter Auth Password:
Fri Oct  2 21:50:16 2009 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA.  OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Fri Oct  2 21:50:16 2009 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Fri Oct  2 21:50:16 2009 LZO compression initialized
Fri Oct  2 21:50:16 2009 Control Channel MTU parms [ L:1574 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Oct  2 21:50:16 2009 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Fri Oct  2 21:50:16 2009 Local Options hash (VER=V4): 'd79ca330'
Fri Oct  2 21:50:16 2009 Expected Remote Options hash (VER=V4): 'f7df56b8'
Fri Oct  2 21:50:16 2009 UDPv4 link local: [undef]
Fri Oct  2 21:50:16 2009 UDPv4 link remote: 200.168.129.150:1194
Fri Oct  2 21:50:16 2009 TLS: Initial packet from 200.168.129.150:1194, sid=6f584d0c 83f96426
Fri Oct  2 21:50:16 2009 VERIFY OK: depth=1, /C=IT/O=efw/CN=efw_CA
Fri Oct  2 21:50:16 2009 VERIFY OK: depth=0, /C=IT/O=efw/CN=127.0.0.1
Fri Oct  2 21:50:16 2009 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Oct  2 21:50:16 2009 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Oct  2 21:50:16 2009 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Oct  2 21:50:16 2009 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Oct  2 21:50:16 2009 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Fri Oct  2 21:50:16 2009 [127.0.0.1] Peer Connection Initiated with 200.168.129.150:1194
Fri Oct  2 21:50:17 2009 SENT CONTROL [127.0.0.1]: 'PUSH_REQUEST' (status=1)
Fri Oct  2 21:50:17 2009 PUSH: Received control message: 'PUSH_REPLY,route-gateway 172.17.0.28,route-gateway 172.17.0.28,ping 10,ping-restart 120,route 192.168.0.0 255.255.0.0,route 172.17.0.0 255.255.0.0,ifconfig 172.17.10.230 255.255.0.0'
Fri Oct  2 21:50:17 2009 OPTIONS IMPORT: timers and/or timeouts modified
Fri Oct  2 21:50:17 2009 OPTIONS IMPORT: --ifconfig/up options modified
Fri Oct  2 21:50:17 2009 OPTIONS IMPORT: route options modified
Fri Oct  2 21:50:17 2009 Note: Cannot open TUN/TAP dev Tap2: No such file or directory (errno=2)
Fri Oct  2 21:50:17 2009 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Fri Oct  2 21:50:17 2009 Cannot open TUN/TAP dev Tap2: No such file or directory (errno=2)
Fri Oct  2 21:50:17 2009 Exiting


Pesquisei na internet e eles relatam um erro com o módulo TUN, mas está instalado e funcionando normalmente. Uso interfaces TAP para máquinas virtuais. Listando o diretório de dispositivos...

luciano@luciano:~/Documentos/openvpn$ ls /dev/net/tun -al
crw-rw-rw- 1 root root 10, 200 2009-09-27 21:47 /dev/net/tun


Alguém pode ajudar-me a resolver o problema?


Grato,

Luciano.