openvpn not connect!

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Locked
fahimi
OpenVpn Newbie
Posts: 9
Joined: Sat Oct 01, 2011 10:27 pm

openvpn not connect!

Post by fahimi » Sat Oct 01, 2011 10:30 pm

hi guys
i've problem with my openvpn
my server config named /etc/openvpn/990.conf is :

local x.x.x.x #- my_server_ip
#port 1194 #- port
#proto udp #- protocol
port 990 #- port
proto tcp #- protocol
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login
client-cert-not-required
username-as-common-name
server 10.0.0.0 255.0.0.0
push "redirect-gateway def1"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 4.2.2.1"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status 1194.log
verb 3

and client config is :
client
dev tun
proto tcp
remote x.x.x.x 990
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ca ca.crt
auth-user-pass
comp-lzo
verb 3

i should to say i put ca.crt from /etc/openvpn/easy-rsa/2.0/keys/ca.crt beside my client config file on client machine.
my open ssl is the latest version : openssl-devel-0.9.8e-20.el5.x86_64 && openssl-devel-0.9.8e-20.el5.i386
my openvpn is OpenVPN 2.2.0 x86_64-redhat-linux-gnu
i start my openvpn with command:
openvpn /etc/openvpn/990.conf &
this is client log for connection:
Sat Oct 01 14:36:43 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.
Sat Oct 01 14:36:43 2011 WARNING: No server certificate verification method has been enabled. See openvpn.net/howto.html#mitm for more info.
Sat Oct 01 14:36:43 2011 Re-using SSL/TLS context
Sat Oct 01 14:36:43 2011 LZO compression initialized
Sat Oct 01 14:36:43 2011 Control Channel MTU parms [ L:1576 D:140 EF:40 EB:0 ET:0 EL:0 ]
Sat Oct 01 14:36:43 2011 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Sat Oct 01 14:36:43 2011 Local Options hash (VER=V4): '2547efd2'
Sat Oct 01 14:36:43 2011 Expected Remote Options hash (VER=V4): '77cf0943'
Sat Oct 01 14:36:43 2011 Attempting to establish TCP connection with x.x.x.x:990
Sat Oct 01 14:36:44 2011 TCP connection established with x.x.x.x:990
Sat Oct 01 14:36:44 2011 TCPv4_CLIENT link local: [undef]
Sat Oct 01 14:36:44 2011 TCPv4_CLIENT link remote: x.x.x.x:990
Sat Oct 01 14:36:44 2011 TLS: Initial packet from x.x.x.x:990, sid=c285ebc4 9fbcf829
Sat Oct 01 14:37:08 2011 TCP/UDP: Closing socket
Sat Oct 01 14:37:08 2011 SIGTERM[hard,] received, process exiting

server side log of connection is :
Sat Oct 1 11:56:24 2011 MULTI: multi_create_instance called
Sat Oct 1 11:56:24 2011 Re-using SSL/TLS context
Sat Oct 1 11:56:24 2011 LZO compression initialized
Sat Oct 1 11:56:24 2011 Control Channel MTU parms [ L:1576 D:140 EF:40 EB:0 ET:0 EL:0 ]
Sat Oct 1 11:56:24 2011 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Sat Oct 1 11:56:24 2011 Local Options hash (VER=V4): '77cf0943'
Sat Oct 1 11:56:24 2011 Expected Remote Options hash (VER=V4): '2547efd2'
Sat Oct 1 11:56:24 2011 TCP connection established with 2.176.201.201:59334
Sat Oct 1 11:56:24 2011 TCPv4_SERVER link local: [undef]
Sat Oct 1 11:56:24 2011 TCPv4_SERVER link remote: 2.176.201.201:59334
Sat Oct 1 11:56:24 2011 2.176.201.201:59334 TLS: Initial packet from 2.176.201.201:59334, sid=9826400f 98dc69b1
Sat Oct 1 11:56:44 2011 2.176.201.201:59327 [UNDEF] Inactivity timeout (—ping-restart), restarting
Sat Oct 1 11:56:44 2011 2.176.201.201:59327 SIGUSR1[soft,ping-restart] received, client-instance restarting
Sat Oct 1 11:56:44 2011 TCP/UDP: Closing socket

can anyone help what's problem?

User avatar
ecrist
Forum Team
Posts: 237
Joined: Wed Nov 26, 2008 10:33 pm
Location: Northern Minnesota, USA
Contact:

Re: openvpn not connect!

Post by ecrist » Sun Oct 02, 2011 12:14 pm

This topic has been locked as the user has been deleted for using PMs for spam.
OpenVPN Community Administrator
IRC: #openvpn, #openvpn-devel
Co-Author of Mastering OpenVPN
Author of Troubleshooting OpenVPN

Locked