Skip to contentSkip to conversation

OpenVPN Connect on Android fails to connect

Openvpn-devel Peter Meiser 3 participants 5 messages Jul 6, 2013 – Jul 12, 2013 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

I run OpenVPN 2.3.2 with PolarSSL 1.2.8 on a MIPS embedded linux.

When trying to connect with OpenVPN Connect on Android (version 1.1.11), I see the following error message in the log:

21:35:11.463 -- Client exception in transport_recv_excode: PolarSSL: SSL read error : SSL - Verification of the message MAC failed

When OpenVPN is linked against OpenSSL, the smartphone connects successfully.

Could you help me finding out the issue?

Thanks in advance,
Peter

#4 lore raw
In reply to a message not in the archive

Yeah!

-82 is: POLARSSL_ERR_NET_WANT_READ

It means that somewhere in the code, OpenVPN calls a read() or a write() and seems to not handle the return value properly.

Paul

Quoted 6 lines

-----Original Message-----
From: Peter Meiser [mailto:[email protected]...]
Sent: maandag 8 juli 2013 14:43
To: [email protected]...
Subject: Re: [Openvpn-devel] OpenVPN Connect on Android fails to connect

Quoted 8 lines

Hi Paul,

I changed include/polarssl/config.h and defined POLARSSL_DEBUG_C. I see the following output in the OpenVPN debug output (configuring "verb 11" in the config).

Mon Jul 8 14:09:57 2013 us=442655 ::ffff:127.0.0.1 PolarSSL alert:
ssl_srv.c(0421): ssl_fetch_input() returned -82 (0xffffffae) Mon Jul 8

14:09:57

Quoted 1 line

2013 us=442796 ::ffff:127.0.0.1 PolarSSL alert: ssl_tls.c(3708):

ssl_handshake()

Quoted 68 lines

returned -82 (0xffffffae)

Does that help?

Best regards,
Peter

Am 08.07.2013 14:05, schrieb Peter Meiser:

Quoted 60 lines

Hi Paul,

could you give me some hints to enable debug output in PolarSSL?

Thanks in advance,
Peter

Am 08.07.2013 12:50, schrieb [email protected]...:

Quoted 52 lines

Hi Peter,

Are you able to enable the PolarSSL debug and send us some debug information?
That would help with determining possible angles.

Paul

Quoted 8 lines

-----Original Message-----
From: Peter Meiser [mailto:[email protected]...]
Sent: zaterdag 6 juli 2013 10:12
To: [email protected]
Subject: [Openvpn-devel] OpenVPN Connect on Android fails to connect

Hi,

Quoted 8 lines

I run OpenVPN 2.3.2 with PolarSSL 1.2.8 on a MIPS embedded linux.

When trying to connect with OpenVPN Connect on Android (version 1.1.11), I see the following error message in the log:

21:35:11.463 -- Client exception in transport_recv_excode: PolarSSL:
SSL

read

Quoted 13 lines

error : SSL - Verification of the message MAC failed

When OpenVPN is linked against OpenSSL, the smartphone connects successfully.

Could you help me finding out the issue?

Thanks in advance,
Peter

---------------------------------------------------------------------
-------
--

Quoted 9 lines

This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#5 lore raw
Quoted 6 lines · On 07/09/2013 11:09 AM, [email protected]... wrote:

Yeah!

-82 is: POLARSSL_ERR_NET_WANT_READ

It means that somewhere in the code, OpenVPN calls a read() or a write() and seems to not handle the return value properly.

I've peaked into the code, but in all cases where ssl_read() or ssl_write() is called, there is checked for a POLARSSL_ERR_NET_WANT_READ of POLARSSL_ERR_NET_WANT_WRITE return value. In those cases, no error is returned and a read or write will be retried later on, but the polarssl debugging output will still be printed. It could very well be that this is not the actual issue.

Peter, do you perhaps have full, possibly redacted, logs available?

-Steffan

#6 lore raw

Hi Steffan,

please find attached the logs, both for PolarSSL and OpenSSL (which works).

Best regards,
Peter

Am 09.07.2013 14:41, schrieb Steffan Karger:

Quoted 32 lines · On 07/09/2013 11:09 AM, [email protected]... wrote:
Quoted 6 lines

Yeah!

-82 is: POLARSSL_ERR_NET_WANT_READ

It means that somewhere in the code, OpenVPN calls a read() or a write() and seems to not handle the return value properly.

I've peaked into the code, but in all cases where ssl_read() or ssl_write() is called, there is checked for a POLARSSL_ERR_NET_WANT_READ of POLARSSL_ERR_NET_WANT_WRITE return value. In those cases, no error is returned and a read or write will be retried later on, but the polarssl debugging output will still be printed. It could very well be that this is not the actual issue.

Peter, do you perhaps have full, possibly redacted, logs available?

-Steffan

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#7 lore raw

Hi,

I just updated the Android app to "OpenVPN Connect 1.1.12 (build 45)" and it works flawlessly.

Thanks a lot!!!

Best regards,
Peter

Am 11.07.2013 10:48, schrieb Peter Meiser:

Quoted 41 lines

Hi Steffan,

please find attached the logs, both for PolarSSL and OpenSSL (which works).

Best regards,
Peter

Am 09.07.2013 14:41, schrieb Steffan Karger:

Quoted 32 lines · On 07/09/2013 11:09 AM, [email protected]... wrote:
Quoted 6 lines

Yeah!

-82 is: POLARSSL_ERR_NET_WANT_READ

It means that somewhere in the code, OpenVPN calls a read() or a write() and seems to not handle the return value properly.

I've peaked into the code, but in all cases where ssl_read() or ssl_write() is called, there is checked for a POLARSSL_ERR_NET_WANT_READ of POLARSSL_ERR_NET_WANT_WRITE return value. In those cases, no error is returned and a read or write will be retried later on, but the polarssl debugging output will still be printed. It could very well be that this is not the actual issue.

Peter, do you perhaps have full, possibly redacted, logs available?

-Steffan

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel