????OpenVPN???????????????????????????????????????????Windows?μ????ù????Linux??????
????1.??????????openvpn?????openvpn-2.2.2-install????????????????C???£??????????????滹?????鷳???
????2.??C:Program FilesOpenVPNeasy-rsa
??????????
????vars.bat.sample???vars.bat
????openssl.cnf.sample???openssl.cnf
??????????????cmd??????

 

cd C:Program FilesOpenVPNeasy-rsa  //??????????譎???C???
vars                                  //?????
clean-all                             //????????keys???
build-ca                              //????ca
build-dh
build-key-server server
build-key test1
build-key test2
build-key test3                       //????3??key??3?????????
openvpn --genkey --secret ta.key      //????ta.key?????DDoS????

???????Comman Name?????д???????????????
???????????????????? server.ovpn????????.ovpn

 

port 53                            #???53???udp????
proto udp
dev tap
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
tls-auth ta.key 0                #???DDoS????
server 10.8.0.0 255.255.255.0
push "redirect-gateway"
push "dhcp-option DNS 8.8.8.8"    #???8.8.8.8???п?????????????????????dns????
push "dhcp-option DNS 8.8.4.4"
client-to-client
keepalive 10 60
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3

???????????????????? client1.ovpn

 

client
dev tap
proto udp
remote ***.***.***.*** 53     #???53???udp????
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert test1.crt
key test1.key
tls-auth ta.key 1             #???DDoS????
duplicate-cn                   #???????????
ns-cert-type server
redirect-gateway
keepalive 15 60
comp-lzo
verb 3
mute 20
script-security 2 system