我是按照版主100.09.29新增:憑證及金鑰檔案製作.
N16也有改Authorization Mode="TLS"
dev tun
proto udp
port 443
檢查過Server 跟 Client都一樣
重新做了兩次結果都一樣
按Connect後出現以下訊息 請教一下我哪裡出錯了
Wed Dec 19 15:45:01 2012 OpenVPN 2.1_beta7 Win32-MinGW [SSL] [LZO2] built on Nov 12 2005
Wed Dec 19 15:45:01 2012 WARNING: No server certificate verification method has been enabled.
See http://openvpn.net/howto.html#mitm for more info.
Wed Dec 19 15:45:01 2012 Cannot load certificate file client.crt: error:0906D06C:PEM routines:PEM_read_bio:no start line: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
Wed Dec 19 15:45:01 2012 Exiting
Doto wrote:
我是按照版主100....(恕刪)
我知道你的需求,比較一下我的Tomato Server與Win7 Client設定與你有何不同,
變更成與我一模一樣就對了

Tomato Server端:

Win7 Client端client.open文字內容 (220.134.45.175是我的分享器IP,要改成你的)
client
proto tcp
dev tun
remote 220.134.45.175
port 443
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
comp-lzo
verb 3
redirect-gateway
小弟照著此文章設定了Server端與Client
確認在台灣連線OK
丟CONFIG給在大陸的同事使用
頭幾天使用上沒問題,過了五天後開始跟我說連不上SERVER
我在台灣用NB連上我的VPN Server,確認是可以的
我就試著把port 1194改成1196
改完當天他又可以連上 但過一天後又被擋了
於是我不死心 又改成1198
情形又一樣 一天後又擋了
怪的是為什麼匪國不擋我ip 卻擋我的port
請問有沒有辦法解掉這個惱人的問題呢?

晚上來試看看
設定檔如下protocol改成TCP看還是不是一樣
client
proto udp
dev tun
remote x.x.x.x 1198
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert ACENB.crt
key ACENB.key
comp-lzo
verb 3
http://www.wretch.cc/album/bitemancat
Tun mode是從本文學習的,透過證書的方式認證


client
dev tun
proto udp
remote xxx.xxx.xxx.xxx 443
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3
redirect-gateway def1
dhcp-option DNS 8.8.4.4
dhcp-option DNS 168.95.192.1
用了一陣子的Tun + 證書方式後,覺得速度真的不行,然後上網看有人說內地這邊已經有能力可以判斷出用證書建立連線的openvpn,進而封殺,因此開始研究Static Key
一開始我只是很單純的改改設定,按照本文的方式設定,都無法建立成功,最後上網找到一篇設定Static Key+Tap mode的方式(http://goo.gl/mSE2t),才成功建立


remote xxx.xxx.xxx.xxx 989
dev tap
secret static.txt
proto udp
comp-lzo
route-gateway 192.168.1.1
redirect-gateway def1
float
route-method exe
route-delay 2
後者不管是建立連線速度,或是建立後的速度,都比前者要快很多。但Tap模式現在在Android 4.x之後無法使用,有點苦惱,所以想問問不知道有沒有人懂得這其中的奧妙?
另外大家若想簡易建立VPN Server,可以用OpenVPN AS
就是用vmware直接開啟openven server後,設定完成就可以使用
可參考
使用 OpenVPN AS 快速建立 VPN Server
快速自己搭建穩定的,不被干擾重置的OpenVpn,比l2tp,pptp及普通openvpn好用
關閉廣告