but I can't connect to server
Here is my server.conf
Code: Select all
local 192.168.10.207
port 1194
;proto tcp
proto udp
dev tap0
dev tun
;dev-node MyTap
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
server-bridge 192.168.10.207 255.255.255.0 10.8.0.50 10.8.0.100
;server-bridge
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
;push "dhcp-option DNS 208.67.220.220"
;client-to-client
;duplicate-cn
keepalive 10 120
;tls-auth ta.key 0 # This file is secret
;cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
cipher BF-CBC
comp-lzo
max-clients 50
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
;log openvpn.log
;log-append openvpn.log
verb 3
;mute 20
up "/etc/openvpn/up.sh br0 tap0 1500"
down "/etc/openvpn/down.sh br 0 tap0"
and here is my client.ovpn
Code: Select all
client
dev tap
dev tun
;dev-node MyTap
;proto tcp
proto udp
remote 192.168.10.207 1194
;remote my-server-2 1194
;remote-random
resolv-retry infinite
nobind
;user nobody
;group nobody
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
ca ca.crt
cert client.crt
key client.key
;ns-cert-type server
tls-auth ta.key 1
cipher BF-CBC
comp-lzo
verb 3
;mute 20
Code: Select all
Tue Apr 02 11:32:04 2013 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
Tue Apr 02 11:32:04 2013 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.
Tue Apr 02 11:32:04 2013 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Tue Apr 02 11:32:04 2013 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Tue Apr 02 11:32:04 2013 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Apr 02 11:32:04 2013 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Apr 02 11:32:04 2013 LZO compression initialized
Tue Apr 02 11:32:04 2013 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Tue Apr 02 11:32:04 2013 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Apr 02 11:32:04 2013 Local Options hash (VER=V4): '504e774e'
Tue Apr 02 11:32:04 2013 Expected Remote Options hash (VER=V4): '14168603'
Tue Apr 02 11:32:04 2013 UDPv4 link local: [undef]
Tue Apr 02 11:32:04 2013 UDPv4 link remote: 192.168.10.207:1194
Tue Apr 02 11:33:04 2013 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Apr 02 11:33:04 2013 TLS Error: TLS handshake failed
Tue Apr 02 11:33:04 2013 TCP/UDP: Closing socket
Tue Apr 02 11:33:04 2013 SIGUSR1[soft,tls-error] received, process restarting
Tue Apr 02 11:33:04 2013 Restart pause, 2 second(s)
Tue Apr 02 11:33:06 2013 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.
Tue Apr 02 11:33:06 2013 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Tue Apr 02 11:33:06 2013 Re-using SSL/TLS context
Tue Apr 02 11:33:06 2013 LZO compression initialized
Tue Apr 02 11:33:06 2013 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Tue Apr 02 11:33:06 2013 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Apr 02 11:33:06 2013 Local Options hash (VER=V4): '504e774e'
Tue Apr 02 11:33:06 2013 Expected Remote Options hash (VER=V4): '14168603'
Tue Apr 02 11:33:06 2013 UDPv4 link local: [undef]
Tue Apr 02 11:33:06 2013 UDPv4 link remote: 192.168.10.207:1194