Page 1 of 1

Problem connecting to OpenVpn useing username/password

Posted: Thu Dec 15, 2011 11:56 am
by sameoldmadness
Hello.

I'm trying to connect to OpenVpn server usen given username/password pair and ca file:

Code: Select all

openvpn --remote 192.168.0.1 --dev tun --pull --auth-user-pass --ns-cert-type server --tls-client --ca ca.pem
After entering username and password i get the following output:

Code: Select all

Thu Dec 15 17:40:00 2011 us=668632 OpenVPN 2.1.0 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Jul 12 2010
Thu Dec 15 17:40:07 2011 us=732289 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.
Thu Dec 15 17:40:07 2011 us=732483 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Dec 15 17:40:07 2011 us=733781 Control Channel MTU parms [ L:1541 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Dec 15 17:40:07 2011 us=734055 Data Channel MTU parms [ L:1541 D:1450 EF:41 EB:4 ET:0 EL:0 ]
Thu Dec 15 17:40:07 2011 us=734234 Local Options String: 'V4,dev-type tun,link-mtu 1541,tun-mtu 1500,proto UDPv4,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Thu Dec 15 17:40:07 2011 us=734655 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1541,tun-mtu 1500,proto UDPv4,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Thu Dec 15 17:40:07 2011 us=734825 Local Options hash (VER=V4): '3514370b'
Thu Dec 15 17:40:07 2011 us=734950 Expected Remote Options hash (VER=V4): '239669a8'
Thu Dec 15 17:40:07 2011 us=735086 Socket Buffers: R=[114688->131072] S=[114688->131072]
Thu Dec 15 17:40:07 2011 us=735202 UDPv4 link local (bound): [undef]
Thu Dec 15 17:40:07 2011 us=735317 UDPv4 link remote: [AF_INET]192.168.0.1:1194
Thu Dec 15 17:40:08 2011 us=537259 TLS Error: Unroutable control packet received from [AF_INET]192.168.0.1:1194 (si=3 op=P_CONTROL_V1)
...
Thu Dec 15 17:40:08 2011 us=537489 TLS Error: Unroutable control packet received from [AF_INET]192.168.0.1:1194 (si=3 op=P_CONTROL_V1)
Thu Dec 15 17:40:00 2011 us=668632 OpenVPN 2.1.0 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Jul 12 2010
...
Am i missing something?

Re: Problem connecting to OpenVpn useing username/password

Posted: Thu Dec 15, 2011 12:08 pm
by maikcat
can you post config/log from server?

Michael.

Re: Problem connecting to OpenVpn useing username/password

Posted: Thu Dec 15, 2011 12:34 pm
by sameoldmadness
maikcat wrote:can you post config/log from server?
No, I have no access to server. All I know is IP address.

Re: Problem connecting to OpenVpn useing username/password

Posted: Thu Dec 15, 2011 1:11 pm
by maikcat
i have one silly question though..

the server has 192.168.0.1 ip?

Michael.

Re: Problem connecting to OpenVpn useing username/password

Posted: Thu Dec 15, 2011 1:24 pm
by sameoldmadness
maikcat wrote:the server has 192.168.0.1 ip?
No, I've just replaced it before posting here. Sorry, i should have mentioned this.

Re: Problem connecting to OpenVpn useing username/password

Posted: Thu Dec 15, 2011 2:11 pm
by maikcat
are there any other things you have changed before posting?

tls errors usually involves some type of filtering happening between
you and the server...

can you connect from another location to the same server with the
same settings?

Michael.