How to use WPA2 + PSK in CentOS 5 with ipw3945d wifi card

I went to a friend house last nite..
He got streamyx and also wifi..

His wifi however.. protected with WPA2 + PSK auth…

/sbin/iwlist eth1 scan

would return something like this..
wifi-network-with-wpa2-auth-BlackN

Got some sort of key..*sigh*

But I was only used to play with just WEP configuration and the passphrase based auth.

Gee… how to get my Cent OS online on this WPA2 enabled wifi network?

well.. after few minute fiddling with.. got fed up.. so just asked him to turn it off and we play the PS3 instead..

muahaha.. (trying so damn hard to get that “ultra combo move” triggered…)

ps3-with-street-fighter

back at home.. (managed to re-create this scenario..). time to play..

wpa-enabled-network-at-home

tried few time with..

[root@nb-namran ~]# which wpa_supplicant
/usr/sbin/wpa_supplicant
[root@nb-namran ~]# rpm -q --whatprovides /usr/sbin/wpa_supplicant
wpa_supplicant-0.5.10-8.el5
[root@nb-namran ~]# wpa_supplicant -help
wpa_supplicant v0.5.10
Copyright (c) 2003-2008, Jouni Malinen  and contributors

This program is free software. You can distribute it and/or modify it
under the terms of the GNU General Public License version 2.

Alternatively, this software may be distributed under the terms of the
BSD license. See README and COPYING for more details.

This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/)

usage:
  wpa_supplicant [-BddhKLqqtuvwW] [-P
] [-g] \
        -i -c [-C] [-D] [-p] \
        [-b] [-f] \
        [-N -i -c [-C] [-D] \
        [-p] [-b] ...]

drivers:
  wext = Linux wireless extensions (generic)
  hostap = Host AP driver (Intersil Prism2/2.5/3)
  prism54 = Prism54.org driver (Intersil Prism GT/Duette/Indigo)
  madwifi = MADWIFI 802.11 support (Atheros, etc.)
  atmel = ATMEL AT76C5XXx (USB, PCMCIA)
  ndiswrapper = Linux ndiswrapper
  wired = wpa_supplicant wired Ethernet driver
options:
  -b = optional bridge interface name
  -B = run daemon in the background
  -c = Configuration file
  -C = ctrl_interface parameter (only used if -c is not)
  -i = interface name
  -d = increase debugging verbosity (-dd even more)
  -D = driver name
  -f = log output to debug file instead of stdout (default: /var/log/wpa_supplicant.log)
  -g = global ctrl_interface
  -K = include keys (passwords, etc.) in debug output
  -t = include timestamp in debug messages
  -h = show this help text
  -L = show license (GPL and BSD)
  -p = driver parameters
  -P = PID file
  -q = decrease debugging verbosity (-qq even less)
  -u = enable DBus control interface
  -v = show version
  -w = wait for interface to be added, if needed
  -W = wait for a control interface monitor before starting
  -N = start describing new interface
example:
  wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
[root@nb-namran ~]#

Hmm..

my wifi device is at eth1 .. though..

[root@nb-namran ~]# ipw3945d
ipw3945d - regulatory daemon
Copyright (C) 2005-2006 Intel Corporation. All rights reserved.
version: 1.7.22
2009-07-14 02:10:09: ERROR: ipw3945d already running.  If ipw3945d is not running then you
need to remove '/var/run/ipw3945d.pid' and try again.

then..

[root@nb-namran ~]# rpm -ql wpa_supplicant
/etc/dbus-1/system.d/wpa_supplicant.conf
/etc/logrotate.d/wpa_supplicant
/etc/rc.d/init.d/wpa_supplicant
/etc/sysconfig/wpa_supplicant
/etc/wpa_supplicant
/etc/wpa_supplicant/wpa_supplicant.conf
/usr/sbin/wpa_cli
/usr/sbin/wpa_passphrase
/usr/sbin/wpa_supplicant
/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
/usr/share/doc/wpa_supplicant-0.5.10
/usr/share/doc/wpa_supplicant-0.5.10/COPYING
/usr/share/doc/wpa_supplicant-0.5.10/ChangeLog
/usr/share/doc/wpa_supplicant-0.5.10/README
/usr/share/doc/wpa_supplicant-0.5.10/eap_testing.txt
/usr/share/doc/wpa_supplicant-0.5.10/examples
/usr/share/doc/wpa_supplicant-0.5.10/examples/ieee8021x.conf
/usr/share/doc/wpa_supplicant-0.5.10/examples/plaintext.conf
/usr/share/doc/wpa_supplicant-0.5.10/examples/wep.conf
/usr/share/doc/wpa_supplicant-0.5.10/examples/wpa-psk-tkip.conf
/usr/share/doc/wpa_supplicant-0.5.10/examples/wpa2-eap-ccmp.conf
/usr/share/doc/wpa_supplicant-0.5.10/todo.txt
/usr/share/doc/wpa_supplicant-0.5.10/wpa_supplicant.conf
/usr/share/man/man5/wpa_supplicant.conf.5.gz
/usr/share/man/man8/wpa_background.8.gz
/usr/share/man/man8/wpa_cli.8.gz
/usr/share/man/man8/wpa_passphrase.8.gz
/usr/share/man/man8/wpa_supplicant.8.gz
/var/run/wpa_supplicant

oh.. got gui..

/usr/bin/wpa_gui

but.. somehow no adapter..
how da heck am i to add new adapter to it..

# WPA-PSK/TKIP

ctrl_interface=/var/run/wpa_supplicant

network={
  ssid="example wpa-psk network"
  key_mgmt=WPA-PSK
  proto=WPA
  pairwise=TKIP
  group=TKIP
  psk="secret passphrase"
}

and ..

network={
  ssid="example wpa2-eap network"
  key_mgmt=WPA-EAP
  proto=WPA2
  pairwise=CCMP
  group=CCMP
  eap=TLS
  ca_cert="/etc/cert/ca.pem"
  private_key="/etc/cert/user.p12"
  private_key_passwd="PKCS#12 passhrase"
}

Hmm.. i guess i just do this..
edit the /etc/wpa_supplicant/wpa_supplicant.conf to become such as ..

network={
  ssid="BlackN"
  key_mgmt=WPA-PSK
  proto=WPA2
  pairwise=TKIP
  group=TKIP
  psk="secret passphrase"
}

then i run..

/usr/sbin/wpa_supplicant -B -dd -i eth1 -c /etc/wpa_supplicant/wpa_supplicant.conf

it successfully run..and daemonized..

wpa-supplicant
then..

/usr/bin/wpa_gui

wah.. this time got eth1 as adapter..

use the scan button.. to scan..

can see one of my “WPA2+PSK enabled” network are there..

double click.. ~ wah..~
wpa2-psk-keying

enter passphrase… then associated..

but no ip address..

/sbin/dhclient eth1

got this..

[root@nb-namran ~]# dhclient eth1
Internet Systems Consortium DHCP Client V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:1c:bf:9e:b6:24
Sending on   LPF/eth1/00:1c:bf:9e:b6:24
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 17
receive_packet failed on eth1: Network is down
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 18
send_packet: Network is down
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

first few times ..failed..darn.. but wifi is associated..
let’s try manually set ip address..

/sbin/ifconfig eth1 192.168.133.249

successfully established..
wpa-gui-with-ip
Hmm..

wpa-gui-event-history-for-ip
then ping the gateway.. hahaha..

ping 192.168.133.1

seem fine..

/sbin/ifdown eth1
ifdown eth0
ifdown lo
dhclient eth1

got this..

[root@nb-namran ~]# dhclient eth1
Internet Systems Consortium DHCP Client V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:1c:bf:9e:b6:24
Sending on   LPF/eth1/00:1c:bf:9e:b6:24
Sending on   Socket/fallback
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPNAK from 192.168.133.254
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
send_packet: Network is down
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
DHCPOFFER from 192.168.133.254
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPACK from 192.168.133.254
bound to 192.168.133.250 -- renewal in 8216 seconds.

then..it is connected.. muahaha..

great..

to get it automatically run during start up..
I guess just need append these into /etc/rc.local

/usr/sbin/wpa_supplicant -B -dd -i eth1 -c /etc/wpa_supplicant/wpa_supplicant.conf.

wpa-gui-success
ok.. done..

p/s : can now go to sleep..

to use maybank2u over the free and unprotected hotspot.. ~ is dangerous..

Inspired by this log ,
I somehow managed to get a few server updated the OpenSSH with the

yum update openssh-server -y

with one got kernel panic..~ failed..~

Related Post

4 Responses

  1. aminbaik says:

    Hello,
    I installed openvpn access server on centos
    when i tried to connect through sstp is work and when i tried to connect normally it’s not.
    when i tried to connect through private tunnel company it’s work normal without sstp.
    in this case the problem is with my server configuration.
    private tunnel company work under port tcp 443 and me two but i not that the they use a certifcate regarding the log.
    now there is the log when i am try to connect to my server:
    ====
    Tue Feb 21 15:51:21 2012 OpenVPNAS 2.1.8OAS Win32-MSVC++ [SSL] [LZO2] built on Aug 4 2011
    Tue Feb 21 15:51:21 2012 MANAGEMENT: Connected to management server at 127.0.0.1:36981
    Tue Feb 21 15:51:21 2012 MANAGEMENT: CMD ‘state on’
    Tue Feb 21 15:51:21 2012 MANAGEMENT: CMD ‘echo on’
    Tue Feb 21 15:51:21 2012 MANAGEMENT: CMD ‘bytecount 5?
    Tue Feb 21 15:51:21 2012 MANAGEMENT: CMD ‘hold off’
    Tue Feb 21 15:51:21 2012 MANAGEMENT: CMD ‘hold release’
    Tue Feb 21 15:51:21 2012 MANAGEMENT: CMD ‘username “Auth” “openvpn”‘
    Tue Feb 21 15:51:21 2012 MANAGEMENT: CMD ‘password […]‘
    Tue Feb 21 15:51:21 2012 MANAGEMENT: CMD ‘remote ACCEPT’
    Tue Feb 21 15:51:22 2012 NOTE: OpenVPNAS 2.1 requires ‘–script-security 2? or higher to call user-defined scripts or executables
    Tue Feb 21 15:51:23 2012 Control Channel Authentication: tls-auth using INLINE static key file
    Tue Feb 21 15:51:23 2012 Outgoing Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 15:51:23 2012 Incoming Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 15:51:23 2012 Socket Buffers: R=[8192->100000] S=[8192->100000]
    Tue Feb 21 15:51:23 2012 UDPv4 link local: [undef]
    Tue Feb 21 15:51:23 2012 UDPv4 link remote: 208.67.18.35:1194
    Tue Feb 21 15:51:23 2012 MANAGEMENT: >STATE:1329832283,WAIT,,,
    Tue Feb 21 15:51:23 2012 MANAGEMENT: >STATE:1329832283,AUTH,,,
    Tue Feb 21 15:51:23 2012 TLS: Initial packet from 208.67.18.35:1194, sid=f0dd7fe9 8dc9f0df
    Tue Feb 21 15:52:23 2012 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
    Tue Feb 21 15:52:23 2012 TLS Error: TLS handshake failed
    Tue Feb 21 15:52:23 2012 SIGUSR1[soft,tls-error] received, process restarting
    Tue Feb 21 15:52:23 2012 MANAGEMENT: >STATE:1329832343,RECONNECTING,tls-error,,
    Tue Feb 21 15:52:23 2012 Restart pause, 2 second(s)
    Tue Feb 21 15:52:25 2012 MANAGEMENT: CMD ‘username “Auth” “openvpn”‘
    Tue Feb 21 15:52:25 2012 MANAGEMENT: CMD ‘password […]‘
    Tue Feb 21 15:52:25 2012 MANAGEMENT: CMD ‘remote ACCEPT’
    Tue Feb 21 15:52:26 2012 NOTE: OpenVPNAS 2.1 requires ‘–script-security 2? or higher to call user-defined scripts or executables
    Tue Feb 21 15:52:26 2012 Control Channel Authentication: tls-auth using INLINE static key file
    Tue Feb 21 15:52:26 2012 Outgoing Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 15:52:26 2012 Incoming Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 15:52:26 2012 Socket Buffers: R=[8192->100000] S=[8192->100000]
    Tue Feb 21 15:52:26 2012 UDPv4 link local: [undef]
    Tue Feb 21 15:52:26 2012 UDPv4 link remote: 208.67.18.35:1194
    Tue Feb 21 15:52:26 2012 MANAGEMENT: >STATE:1329832346,WAIT,,,
    Tue Feb 21 15:52:26 2012 MANAGEMENT: >STATE:1329832346,AUTH,,,
    Tue Feb 21 15:52:26 2012 TLS: Initial packet from 208.67.18.35:1194, sid=38a690ba dc3e5627
    Tue Feb 21 15:53:26 2012 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
    Tue Feb 21 15:53:26 2012 TLS Error: TLS handshake failed
    Tue Feb 21 15:53:26 2012 SIGUSR1[soft,tls-error] received, process restarting
    Tue Feb 21 15:53:26 2012 MANAGEMENT: >STATE:1329832406,RECONNECTING,tls-error,,
    Tue Feb 21 15:53:26 2012 Restart pause, 2 second(s)
    Tue Feb 21 15:53:28 2012 MANAGEMENT: CMD ‘username “Auth” “openvpn”‘
    Tue Feb 21 15:53:28 2012 MANAGEMENT: CMD ‘password […]‘
    Tue Feb 21 15:53:28 2012 MANAGEMENT: CMD ‘remote ACCEPT’
    Tue Feb 21 15:53:29 2012 NOTE: OpenVPNAS 2.1 requires ‘–script-security 2? or higher to call user-defined scripts or executables
    Tue Feb 21 15:53:29 2012 Control Channel Authentication: tls-auth using INLINE static key file
    Tue Feb 21 15:53:29 2012 Outgoing Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 15:53:29 2012 Incoming Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 15:53:29 2012 Socket Buffers: R=[8192->100000] S=[8192->100000]
    Tue Feb 21 15:53:29 2012 Attempting to establish TCP connection with 208.67.18.35:443
    Tue Feb 21 15:53:29 2012 MANAGEMENT: >STATE:1329832409,TCP_CONNECT,,,
    Tue Feb 21 15:53:29 2012 TCP connection established with 208.67.18.35:443
    Tue Feb 21 15:53:29 2012 TCPv4_CLIENT link local: [undef]
    Tue Feb 21 15:53:29 2012 TCPv4_CLIENT link remote: 208.67.18.35:443
    Tue Feb 21 15:53:29 2012 MANAGEMENT: >STATE:1329832409,WAIT,,,
    Tue Feb 21 15:53:29 2012 MANAGEMENT: >STATE:1329832409,AUTH,,,
    Tue Feb 21 15:53:29 2012 TLS: Initial packet from 208.67.18.35:443, sid=a3f67d87 22e47db4
    Tue Feb 21 15:54:18 2012 read TCPv4_CLIENT: Connection timed out (WSAETIMEDOUT) (code=10060)
    Tue Feb 21 15:54:18 2012 Connection reset, restarting [-1]
    Tue Feb 21 15:54:18 2012 SIGUSR1[soft,connection-reset] received, process restarting
    Tue Feb 21 15:54:18 2012 MANAGEMENT: >STATE:1329832458,RECONNECTING,connection-reset,,
    Tue Feb 21 15:54:18 2012 Restart pause, 5 second(s)
    Tue Feb 21 15:54:23 2012 MANAGEMENT: CMD ‘username “Auth” “openvpn”‘
    Tue Feb 21 15:54:23 2012 MANAGEMENT: CMD ‘password […]‘
    Tue Feb 21 15:54:23 2012 MANAGEMENT: CMD ‘remote ACCEPT’
    Tue Feb 21 15:54:24 2012 NOTE: OpenVPNAS 2.1 requires ‘–script-security 2? or higher to call user-defined scripts or executables
    Tue Feb 21 15:54:24 2012 Control Channel Authentication: tls-auth using INLINE static key file
    Tue Feb 21 15:54:24 2012 Outgoing Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 15:54:24 2012 Incoming Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 15:54:24 2012 Socket Buffers: R=[8192->100000] S=[8192->100000]
    Tue Feb 21 15:54:24 2012 UDPv4 link local: [undef]
    Tue Feb 21 15:54:24 2012 UDPv4 link remote: 208.67.18.35:1194
    Tue Feb 21 15:54:24 2012 MANAGEMENT: >STATE:1329832464,WAIT,,,
    Tue Feb 21 15:54:25 2012 MANAGEMENT: >STATE:1329832465,AUTH,,,
    Tue Feb 21 15:54:25 2012 TLS: Initial packet from 208.67.18.35:1194, sid=5d7efec5 d86fdf83
    Tue Feb 21 15:55:24 2012 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
    Tue Feb 21 15:55:24 2012 TLS Error: TLS handshake failed
    Tue Feb 21 15:55:24 2012 SIGUSR1[soft,tls-error] received, process restarting
    Tue Feb 21 15:55:24 2012 MANAGEMENT: >STATE:1329832524,RECONNECTING,tls-error,,
    Tue Feb 21 15:55:24 2012 Restart pause, 2 second(s)
    Tue Feb 21 15:55:26 2012 MANAGEMENT: CMD ‘username “Auth” “openvpn”‘
    Tue Feb 21 15:55:26 2012 MANAGEMENT: CMD ‘password […]‘
    Tue Feb 21 15:55:26 2012 MANAGEMENT: CMD ‘remote ACCEPT’
    Tue Feb 21 15:55:27 2012 NOTE: OpenVPNAS 2.1 requires ‘–script-security 2? or higher to call user-defined scripts or executables
    Tue Feb 21 15:55:27 2012 Control Channel Authentication: tls-auth using INLINE static key file
    Tue Feb 21 15:55:27 2012 Outgoing Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 15:55:27 2012 Incoming Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 15:55:27 2012 Socket Buffers: R=[8192->100000] S=[8192->100000]
    Tue Feb 21 15:55:27 2012 UDPv4 link local: [undef]
    Tue Feb 21 15:55:27 2012 UDPv4 link remote: 208.67.18.35:1194
    Tue Feb 21 15:55:27 2012 MANAGEMENT: >STATE:1329832527,WAIT,,,
    Tue Feb 21 15:55:28 2012 MANAGEMENT: >STATE:1329832528,AUTH,,,
    Tue Feb 21 15:55:28 2012 TLS: Initial packet from 208.67.18.35:1194, sid=a27753c0 fb1c2706
    ====
    and this when i try to connect to private-tunnel server:
    =====
    Tue Feb 21 18:54:58 2012 OpenVPNAS 2.1.18OAS Win32-MSVC++ [SSL] [LZO2] built on Nov 12 2011
    Tue Feb 21 18:54:58 2012 MANAGEMENT: Connected to management server at 127.0.0.1:33050
    Tue Feb 21 18:54:58 2012 MANAGEMENT: CMD ‘state on’
    Tue Feb 21 18:54:58 2012 MANAGEMENT: CMD ‘echo on’
    Tue Feb 21 18:54:58 2012 MANAGEMENT: CMD ‘bytecount 1?
    Tue Feb 21 18:54:58 2012 MANAGEMENT: CMD ‘hold off’
    Tue Feb 21 18:54:58 2012 MANAGEMENT: CMD ‘hold release’
    Tue Feb 21 18:54:58 2012 MANAGEMENT: CMD ‘remote ACCEPT’
    Tue Feb 21 18:54:59 2012 NOTE: OpenVPNAS 2.1 requires ‘–script-security 2? or higher to call user-defined scripts or executables
    Tue Feb 21 18:54:59 2012 Control Channel Authentication: tls-auth using INLINE static key file
    Tue Feb 21 18:54:59 2012 Outgoing Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 18:54:59 2012 Incoming Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 18:54:59 2012 Socket Buffers: R=[8192->100000] S=[8192->100000]
    Tue Feb 21 18:54:59 2012 MANAGEMENT: >STATE:1329843299,RESOLVE,,,
    Tue Feb 21 18:54:59 2012 UDPv4 link local: [undef]
    Tue Feb 21 18:54:59 2012 UDPv4 link remote: 69.46.69.194:1194
    Tue Feb 21 18:54:59 2012 MANAGEMENT: >STATE:1329843299,WAIT,,,
    Tue Feb 21 18:55:00 2012 MANAGEMENT: >STATE:1329843300,AUTH,,,
    Tue Feb 21 18:55:00 2012 TLS: Initial packet from 69.46.69.194:1194, sid=5dfc45c7 256914a7
    Tue Feb 21 18:55:59 2012 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
    Tue Feb 21 18:55:59 2012 TLS Error: TLS handshake failed
    Tue Feb 21 18:55:59 2012 SIGUSR1[soft,tls-error] received, process restarting
    Tue Feb 21 18:55:59 2012 MANAGEMENT: >STATE:1329843359,RECONNECTING,tls-error,,
    Tue Feb 21 18:55:59 2012 Restart pause, 10 second(s)
    Tue Feb 21 18:56:09 2012 MANAGEMENT: CMD ‘remote ACCEPT’
    Tue Feb 21 18:56:10 2012 NOTE: OpenVPNAS 2.1 requires ‘–script-security 2? or higher to call user-defined scripts or executables
    Tue Feb 21 18:56:10 2012 Control Channel Authentication: tls-auth using INLINE static key file
    Tue Feb 21 18:56:10 2012 Outgoing Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 18:56:10 2012 Incoming Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 18:56:10 2012 Socket Buffers: R=[8192->100000] S=[8192->100000]
    Tue Feb 21 18:56:10 2012 MANAGEMENT: >STATE:1329843370,RESOLVE,,,
    Tue Feb 21 18:56:10 2012 UDPv4 link local: [undef]
    Tue Feb 21 18:56:10 2012 UDPv4 link remote: 69.46.69.194:1194
    Tue Feb 21 18:56:10 2012 MANAGEMENT: >STATE:1329843370,WAIT,,,
    Tue Feb 21 18:56:12 2012 MANAGEMENT: >STATE:1329843372,AUTH,,,
    Tue Feb 21 18:56:12 2012 TLS: Initial packet from 69.46.69.194:1194, sid=dbc6ba57 5a135245
    Tue Feb 21 18:57:10 2012 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
    Tue Feb 21 18:57:10 2012 TLS Error: TLS handshake failed
    Tue Feb 21 18:57:10 2012 SIGUSR1[soft,tls-error] received, process restarting
    Tue Feb 21 18:57:10 2012 MANAGEMENT: >STATE:1329843430,RECONNECTING,tls-error,,
    Tue Feb 21 18:57:10 2012 Restart pause, 10 second(s)
    Tue Feb 21 18:57:20 2012 MANAGEMENT: CMD ‘remote ACCEPT’
    Tue Feb 21 18:57:21 2012 NOTE: OpenVPNAS 2.1 requires ‘–script-security 2? or higher to call user-defined scripts or executables
    Tue Feb 21 18:57:21 2012 Control Channel Authentication: tls-auth using INLINE static key file
    Tue Feb 21 18:57:21 2012 Outgoing Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 18:57:21 2012 Incoming Control Channel Authentication: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 18:57:21 2012 Socket Buffers: R=[8192->100000] S=[8192->100000]
    Tue Feb 21 18:57:21 2012 MANAGEMENT: >STATE:1329843441,RESOLVE,,,
    Tue Feb 21 18:57:21 2012 Attempting to establish TCP connection with 69.46.69.194:443
    Tue Feb 21 18:57:21 2012 MANAGEMENT: >STATE:1329843441,TCP_CONNECT,,,
    Tue Feb 21 18:57:23 2012 TCP connection established with 69.46.69.194:443
    Tue Feb 21 18:57:23 2012 TCPv4_CLIENT link local: [undef]
    Tue Feb 21 18:57:23 2012 TCPv4_CLIENT link remote: 69.46.69.194:443
    Tue Feb 21 18:57:23 2012 MANAGEMENT: >STATE:1329843443,WAIT,,,
    Tue Feb 21 18:57:25 2012 MANAGEMENT: >STATE:1329843445,AUTH,,,
    Tue Feb 21 18:57:25 2012 TLS: Initial packet from 69.46.69.194:443, sid=6aa870f3 be15f13d
    Tue Feb 21 18:57:30 2012 VERIFY OK: depth=1, /CN=OpenVPN_CA
    Tue Feb 21 18:57:30 2012 VERIFY OK: nsCertType=SERVER
    Tue Feb 21 18:57:30 2012 VERIFY OK: depth=0, /CN=OpenVPN_Server
    Tue Feb 21 18:57:45 2012 Data Channel Encrypt: Cipher ‘BF-CBC’ initialized with 128 bit key
    Tue Feb 21 18:57:45 2012 Data Channel Encrypt: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 18:57:45 2012 Data Channel Decrypt: Cipher ‘BF-CBC’ initialized with 128 bit key
    Tue Feb 21 18:57:45 2012 Data Channel Decrypt: Using 160 bit message hash ‘SHA1? for HMAC authentication
    Tue Feb 21 18:57:45 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
    Tue Feb 21 18:57:45 2012 [OpenVPN_Server] Peer Connection Initiated with 69.46.69.194:443
    Tue Feb 21 18:57:46 2012 MANAGEMENT: >STATE:1329843466,GET_CONFIG,,,
    Tue Feb 21 18:57:47 2012 SENT CONTROL [OpenVPN_Server]: ‘PUSH_REQUEST’ (status=1)
    Tue Feb 21 18:57:51 2012 PUSH: Received control message: ‘PUSH_REPLY,explicit-exit-notify,topology subnet,route-delay 5 30,dhcp-pre-release,dhcp-renew,dhcp-release,route-metric 101,ping 5,ping-restart 40,socket-flags TCP_NODELAY,redirect-gateway def1,redirect-gateway bypass-dhcp,redirect-gateway autolocal,route-gateway 5.5.0.1,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,register-dns,comp-lzo yes,ifconfig 5.5.96.130 255.255.0.0?
    Tue Feb 21 18:57:51 2012 OPTIONS IMPORT: timers and/or timeouts modified
    Tue Feb 21 18:57:51 2012 OPTIONS IMPORT: –explicit-exit-notify can only be used with –proto udp
    Tue Feb 21 18:57:51 2012 OPTIONS IMPORT: LZO parms modified
    Tue Feb 21 18:57:51 2012 OPTIONS IMPORT: –socket-flags option modified
    Tue Feb 21 18:57:51 2012 Socket flags: TCP_NODELAY=1 succeeded
    Tue Feb 21 18:57:51 2012 OPTIONS IMPORT: –ifconfig/up options modified
    Tue Feb 21 18:57:51 2012 OPTIONS IMPORT: route options modified
    Tue Feb 21 18:57:51 2012 OPTIONS IMPORT: route-related options modified
    Tue Feb 21 18:57:51 2012 OPTIONS IMPORT: –ip-win32 and/or –dhcp-option options modified
    Tue Feb 21 18:57:51 2012 ROUTE_GATEWAY 192.168.1.1/255.255.255.0 I=14 HWADDR=48:5d:60:a7:d6:49
    Tue Feb 21 18:57:51 2012 MANAGEMENT: >STATE:1329843471,ASSIGN_IP,,5.5.96.130,
    Tue Feb 21 18:57:51 2012 TAP-WIN32 device [Local Area Connection 2] opened: \.Global{F338B583-02ED-42E3-BBBA-299FF986C83B}.tap
    Tue Feb 21 18:57:51 2012 TAP-Win32 Driver Version 9.7
    Tue Feb 21 18:57:51 2012 Set TAP-Win32 TUN subnet mode network/local/netmask = 5.5.0.0/5.5.96.130/255.255.0.0 [SUCCEEDED]
    Tue Feb 21 18:57:51 2012 Notified TAP-Win32 driver to set a DHCP IP/netmask of 5.5.96.130/255.255.0.0 on interface {F338B583-02ED-42E3-BBBA-299FF986C83B} [DHCP-serv: 5.5.0.1, lease-time: 31536000]
    Tue Feb 21 18:57:51 2012 Successful ARP Flush on interface [22] {F338B583-02ED-42E3-BBBA-299FF986C83B}
    Tue Feb 21 18:57:55 2012 TAP: DHCP address released
    Tue Feb 21 18:57:59 2012 TAP: DHCP address renewal succeeded
    Tue Feb 21 18:58:04 2012 TEST ROUTES: 1/1 succeeded len=0 ret=1 a=0 u/d=up
    Tue Feb 21 18:58:04 2012 ROUTE remote_host is NOT LOCAL
    Tue Feb 21 18:58:04 2012 C:Windowssystem32route.exe ADD 69.46.69.194 MASK 255.255.255.255 192.168.1.1
    Tue Feb 21 18:58:04 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=25 and dwForwardType=4
    Tue Feb 21 18:58:04 2012 Route addition via IPAPI succeeded [adaptive]
    Tue Feb 21 18:58:04 2012 C:Windowssystem32route.exe ADD 0.0.0.0 MASK 128.0.0.0 5.5.0.1
    Tue Feb 21 18:58:04 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
    Tue Feb 21 18:58:04 2012 Route addition via IPAPI succeeded [adaptive]
    Tue Feb 21 18:58:04 2012 C:Windowssystem32route.exe ADD 128.0.0.0 MASK 128.0.0.0 5.5.0.1
    Tue Feb 21 18:58:04 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
    Tue Feb 21 18:58:04 2012 Route addition via IPAPI succeeded [adaptive]
    Tue Feb 21 18:58:04 2012 Initialization Sequence Completed
    Tue Feb 21 18:58:04 2012 MANAGEMENT: >STATE:1329843484,CONNECTED,SUCCESS,5.5.96.130,69.46.69.194
    Tue Feb 21 18:58:04 2012 Start net commands…
    Tue Feb 21 18:58:04 2012 C:WINDOWSsystem32net.exe stop dnscache
    The DNS Client service is stopping.
    The DNS Client service could not be stopped.
    Tue Feb 21 18:58:07 2012 C:WINDOWSsystem32net.exe start dnscache
    The requested service has already been started.
    More help is available by typing NET HELPMSG 2182.
    Tue Feb 21 18:58:07 2012 ERROR: Windows ipconfig command failed: returned error code 2
    Tue Feb 21 18:58:07 2012 C:WINDOWSsystem32ipconfig.exe /flushdns
    Windows IP Configuration
    Successfully flushed the DNS Resolver Cache.
    Tue Feb 21 18:58:07 2012 C:WINDOWSsystem32ipconfig.exe /registerdns
    Windows IP Configuration
    Registration of the DNS resource records for all adapters of this computer has been initiated. Any errors will be reported in the Event Viewer in 15 minutes.
    Tue Feb 21 18:58:10 2012 End net commands…
    Tue Feb 21 19:04:25 2012 MANAGEMENT: CMD ‘exit’
    Tue Feb 21 19:04:25 2012 MANAGEMENT: Client disconnected
    Tue Feb 21 19:04:25 2012 MANAGEMENT: Triggering management exit
    Tue Feb 21 19:04:25 2012 C:Windowssystem32route.exe DELETE 69.46.69.194 MASK 255.255.255.255 192.168.1.1
    Tue Feb 21 19:04:25 2012 Route deletion via IPAPI succeeded [adaptive]
    Tue Feb 21 19:04:25 2012 C:Windowssystem32route.exe DELETE 0.0.0.0 MASK 128.0.0.0 5.5.0.1
    Tue Feb 21 19:04:25 2012 Route deletion via IPAPI succeeded [adaptive]
    Tue Feb 21 19:04:25 2012 C:Windowssystem32route.exe DELETE 128.0.0.0 MASK 128.0.0.0 5.5.0.1
    Tue Feb 21 19:04:25 2012 Route deletion via IPAPI succeeded [adaptive]
    Tue Feb 21 19:04:25 2012 Closing TUN/TAP interface
    Tue Feb 21 19:04:25 2012 TAP: DHCP address released
    Tue Feb 21 19:04:25 2012 SIGTERM[soft,management-exit] received, process exiting
    Tue Feb 21 19:04:25 2012 MANAGEMENT: >STATE:1329843865,EXITING,management-exit,,
    =====
    as you see that there is a deferent with a certificate issue. so what do u think?
    please not that the two servers are work under same ports.
    Thanks.

    Reply
  2. Smith says:

    Hey thanks for this. But I ended up with some errors. I tried fixing them but to no success. I Googled more and I found this: http://www.l337fx.com/openvpn-vz-vps-bash-script-centos.html

    Does that bash script would work ? Please help ! I really need the OpenVPN to be installed 🙁
    Oh and my OS is CentOS 6

    Reply
  3. Cisco says:

    I simply couldn’t depart your website before suggesting that I really enjoyed the standard information a person supply in your visitors? Is gonna be again ceaselessly to check up on new posts

    Reply
  4. Mckenzie says:

    I аm nο longer ρositive wherе уоu’re getting your information, however good topic. I needs to spend some time finding out much more or working out more. Thank you for fantastic info I was searching for this info for my mission.

    My blog post Mckenzie

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *