openvpn on Centos 5.5
Posted: Fri Oct 07, 2011 8:28 am
Hi All.
Before i've already config openvpn on Debian, It's ok. Now i try to config openvpn on Centos V5.5 in vmware but when i connect to server it's openvpn guide is hang.
I've already disable firewall (/etc/init.d/iptables stop) and Selinux = disabled
Server.conf
client.conf
log file server
log file Client
Before i've already config openvpn on Debian, It's ok. Now i try to config openvpn on Centos V5.5 in vmware but when i connect to server it's openvpn guide is hang.
I've already disable firewall (/etc/init.d/iptables stop) and Selinux = disabled
Code: Select all
server IP :172.22.0.11
client IP: 172.22.0.15
Code: Select all
dev tun
proto udp
port 1194
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
server 10.0.8.0 255.255.255.0
persist-tun
persist-key
verb 3
comp-lzo
Code: Select all
dev tun
proto udp
client
remote 172.22.0.11 1194
ca "C:\\Program Files\\OpenVPN\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\keys\\home.crt"
key "C:\\Program Files\\OpenVPN\\keys\\home.key"
dh "C:\\Program Files\\OpenVPN\\keys\\dh1024.pem"
comp-lzo
verb 3
Code: Select all
Fri Oct 7 22:23:44 2011 OpenVPN 2.2.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] [eurephia] built on Oct 7 2011
Fri Oct 7 22:23:44 2011 WARNING: --keepalive option is missing from server config
Fri Oct 7 22:23:44 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Oct 7 22:23:44 2011 Diffie-Hellman initialized with 1024 bit key
Fri Oct 7 22:23:44 2011 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Oct 7 22:23:44 2011 Socket Buffers: R=[110592->131072] S=[110592->131072]
Fri Oct 7 22:23:44 2011 ROUTE default_gateway=172.22.0.2
Fri Oct 7 22:23:44 2011 TUN/TAP device tun0 opened
Fri Oct 7 22:23:44 2011 TUN/TAP TX queue length set to 100
Fri Oct 7 22:23:44 2011 /sbin/ifconfig tun0 10.0.8.1 pointopoint 10.0.8.2 mtu 1500
Fri Oct 7 22:23:44 2011 /sbin/route add -net 10.0.8.0 netmask 255.255.255.0 gw 10.0.8.2
Fri Oct 7 22:23:44 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Oct 7 22:23:44 2011 UDPv4 link local (bound): [undef]:1194
Fri Oct 7 22:23:44 2011 UDPv4 link remote: [undef]
Fri Oct 7 22:23:44 2011 MULTI: multi_init called, r=256 v=256
Fri Oct 7 22:23:44 2011 IFCONFIG POOL: base=10.0.8.4 size=62
Fri Oct 7 22:23:44 2011 Initialization Sequence Completed
Fri Oct 7 22:24:31 2011 event_wait : Interrupted system call (code=4)
Fri Oct 7 22:24:31 2011 TCP/UDP: Closing socket
Fri Oct 7 22:24:31 2011 /sbin/route del -net 10.0.8.0 netmask 255.255.255.0
Fri Oct 7 22:24:31 2011 Closing TUN/TAP interface
Fri Oct 7 22:24:31 2011 /sbin/ifconfig tun0 0.0.0.0
Fri Oct 7 22:24:31 2011 SIGINT[hard,] received, process exiting
Code: Select all
Fri Oct 07 15:11:11 2011 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
Fri Oct 07 15:11:11 2011 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.
Fri Oct 07 15:11:11 2011 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Fri Oct 07 15:11:11 2011 LZO compression initialized
Fri Oct 07 15:11:11 2011 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Oct 07 15:11:11 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Oct 07 15:11:11 2011 Local Options hash (VER=V4): '41690919'
Fri Oct 07 15:11:11 2011 Expected Remote Options hash (VER=V4): '530fdded'
Fri Oct 07 15:11:11 2011 UDPv4 link local (bound): [undef]:1194
Fri Oct 07 15:11:11 2011 UDPv4 link remote: 172.22.0.11:1194
Fri Oct 07 15:12:11 2011 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Oct 07 15:12:11 2011 TLS Error: TLS handshake failed
Fri Oct 07 15:12:11 2011 TCP/UDP: Closing socket
Fri Oct 07 15:12:11 2011 SIGUSR1[soft,tls-error] received, process restarting
Fri Oct 07 15:12:11 2011 Restart pause, 2 second(s)
Fri Oct 07 15:12:13 2011 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.
Fri Oct 07 15:12:13 2011 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Fri Oct 07 15:12:13 2011 LZO compression initialized
Fri Oct 07 15:12:13 2011 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Oct 07 15:12:13 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Oct 07 15:12:13 2011 Local Options hash (VER=V4): '41690919'
Fri Oct 07 15:12:13 2011 Expected Remote Options hash (VER=V4): '530fdded'
Fri Oct 07 15:12:13 2011 UDPv4 link local (bound): [undef]:1194
Fri Oct 07 15:12:13 2011 UDPv4 link remote: 172.22.0.11:1194
Fri Oct 07 15:13:13 2011 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Oct 07 15:13:13 2011 TLS Error: TLS handshake failed
Fri Oct 07 15:13:13 2011 TCP/UDP: Closing socket
Fri Oct 07 15:13:13 2011 SIGUSR1[soft,tls-error] received, process restarting
Fri Oct 07 15:13:13 2011 Restart pause, 2 second(s)
Fri Oct 07 15:13:15 2011 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.
Fri Oct 07 15:13:15 2011 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Fri Oct 07 15:13:15 2011 LZO compression initialized
Fri Oct 07 15:13:15 2011 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Oct 07 15:13:15 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Oct 07 15:13:15 2011 Local Options hash (VER=V4): '41690919'
Fri Oct 07 15:13:15 2011 Expected Remote Options hash (VER=V4): '530fdded'
Fri Oct 07 15:13:15 2011 UDPv4 link local (bound): [undef]:1194
Fri Oct 07 15:13:15 2011 UDPv4 link remote: 172.22.0.11:1194
Fri Oct 07 15:14:15 2011 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Oct 07 15:14:15 2011 TLS Error: TLS handshake failed
Fri Oct 07 15:14:15 2011 TCP/UDP: Closing socket