Sto cercando di installare Openvpn-bridge per accedere alle cartelle e ai file del lavoro dal pc di casa.
Sulla SME 7.4 (server+passerella) ho seguito alla lettera le istruzioni di
Contribs.org.
Ho quindi iniziato a installare PHPki per i certificati
Creato un certificato x il server (che ho chiamato
openvpn-bridge), modalita VPN Server only, senza password
Ho installato openvpn-bridge sulla SME, e nella gestione dei certificati ho aggiunto i certificati nel formato pem e anche la "static key" che era in opzione (non si sa mai).
Con PHPki ho creato un certificato x il mio pc che si trova all'esterno della LAN (certificato chiamato
casa), modalita VPN client only, senza password.
Mi sono scaricato i files (formato PKCS#12 bundle)
openvpn-bridge.p12,
casa.p12, e la chiave statica
takey.pem e messi su una chiavetta usb.
Una volta a casa ho installato openvpn 2.09 gui per windows (sono su windows vista, e mi dice che pero c'è un errore, ma lo costringo a eseguire comunque il programma), apro la cartella "config" e creo il file
connessione.ovpn, dove inserisco il testo seguente :
rport 1194
proto udp
dev tap
nobind
remote INDIRIZZODELSITO.COMtls-client
tls-auth takey.pem 1
ns-cert-type server
# Replace user.p12 with the certificate
# bundle in PKCS12 format
pkcs12 casa.p12# You can replace the pkcs12
# directive with the old ones
#ca cacert.pem
#cert user.pem
#key user-key.pem
mtu-test
comp-lzo
pull
Nel server manager ho selezionato gli utilizzatori che possono accedere per vpn, e messo "2" come numero di connessioni simultanee PPTP.
Ecco l'errore che mi da openvpn-client:
Thu Jan 28 18:54:52 2010 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
Thu Jan 28 18:54:52 2010 Control Channel Authentication: using 'takey.pem' as a OpenVPN static key file
Thu Jan 28 18:54:52 2010 LZO compression initialized
Thu Jan 28 18:54:52 2010 UDPv4 link local: [undef]
Thu Jan 28 18:54:52 2010 UDPv4 link remote: 82.xxx.xxx.xxx:1194
Thu Jan 28 18:55:52 2010 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Thu Jan 28 18:55:52 2010 TLS Error: TLS handshake failed
Thu Jan 28 18:55:52 2010 SIGUSR1[soft,tls-error] received, process restarting
Thu Jan 28 18:55:54 2010 Control Channel Authentication: using 'takey.pem' as a OpenVPN static key file
Thu Jan 28 18:55:54 2010 LZO compression initialized
Thu Jan 28 18:55:54 2010 UDPv4 link local: [undef]
Thu Jan 28 18:55:54 2010 UDPv4 link remote: 82.xxx.xxx.xxx:1194Il server funziona (riesco ad accedere in lettura e scrittura, per le email x esempio), ma il tunnel no....avete un'idea ?
Ciao e grazie
Alex