Re: [問題] openVPN client [windows] 設定

作者: gn00618777 (非常念舊)   2014-11-03 17:53:35
OK 終於是可以連線了
但連線無法持久,狀況是這樣:
如果我啟動 server , /etc/init.d/openvpn start, tun0 會出來都沒事
如果我用 client 端連上去,有分配到IP,馬上,server端的 tun0 消失,
我必須要重新啟動 openvpn server,才可以連,然後連上又馬上tun0消失,以此循環
。請問有人遭遇這問題過嗎?
謝謝。 以下是連線log:
Tue Nov 04 17:59:09 2014 OpenVPN 2.3.5 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Oct 28 2014
Tue Nov 04 17:59:09 2014 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.05
Enter Management Password:
Tue Nov 04 17:59:10 2014 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Tue Nov 04 17:59:10 2014 UDPv4 link local: [undef]
Tue Nov 04 17:59:10 2014 UDPv4 link remote: [AF_INET]172.16.51.14:1194
Tue Nov 04 17:59:10 2014 VERIFY OK: depth=1, C=TW, ST=Taiwan, L=Taoyuan, O=Tailyn, emailAddress=berniechen@tailyn.com.tw
Tue Nov 04 17:59:10 2014 VERIFY OK: depth=0, C=TW, ST=Taiwan, L=Taoyuan, O=Tailyn, OU=Office, CN=vpn_server, emailAddress=berniechen@tailyn.com.tw
Tue Nov 04 17:59:10 2014 Data Channel Encrypt: Cipher 'DES-CFB' initialized with 64 bit key
Tue Nov 04 17:59:10 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Nov 04 17:59:10 2014 Data Channel Decrypt: Cipher 'DES-CFB' initialized with 64 bit key
Tue Nov 04 17:59:10 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Nov 04 17:59:10 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Tue Nov 04 17:59:10 2014 [vpn_server] Peer Connection Initiated with [AF_INET]172.16.51.14:1194
Tue Nov 04 17:59:12 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue Nov 04 17:59:12 2014 open_tun, tt->ipv6=0
Tue Nov 04 17:59:12 2014 TAP-WIN32 device [pvpn] opened: \\.\Global\{674C1CBE-94F5-467D-90DC-40154685D8AD}.tap
Tue Nov 04 17:59:12 2014 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {674C1CBE-94F5-467D-90DC-40154685D8AD} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Tue Nov 04 17:59:12 2014 Successful ARP Flush on interface [26] {674C1CBE-94F5-467D-90DC-40154685D8AD}
Tue Nov 04 17:59:17 2014 Initialization Sequence Completed
Tue Nov 04 17:59:24 2014 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Nov 04 17:59:24 2014 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Nov 04 17:59:24 2014 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Nov 04 17:59:24 2014 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Nov 04 17:59:24 2014 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Nov 04 17:59:24 2014 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
作者: gn00618777 (非常念舊)   2014-11-04 10:00:00
OK 解決了,是 server.conf 有一個權限相關選項問題

Links booklink

Contact Us: admin [ a t ] ucptt.com