longzuyuan / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
0 stars 0 forks source link

Rwwrite to TUN/TAP : Invalid argument (code=22) #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect to Windows based OpenVPN server with TLS,ca.crt and user/password
2. After connection success log produce Rwwrite to TUN/TAP : Invalid argument 
(code=22) every 0.1 seconds.

Reproduce on Galaxy TAB 2, Motorola MAXX and Nexus

Original issue reported on code.google.com by shadwork...@gmail.com on 27 Dec 2012 at 12:41

GoogleCodeExporter commented 9 years ago
Please send me a log and the generated configuration

Original comment by arne@rfc2549.org on 27 Dec 2012 at 1:12

GoogleCodeExporter commented 9 years ago
Connection log

Original comment by shadwork...@gmail.com on 27 Dec 2012 at 2:34

Attachments:

GoogleCodeExporter commented 9 years ago
I think this happens because OpenVPN tries to write Ethernet frames to the tun 
device. See the warning in the log:

'dev-type' is used inconsistently, local='dev-type tun', remote='dev-type tap'

Tap is not supported see the FAQ for more details.

Original comment by arne@rfc2549.org on 27 Dec 2012 at 2:37

GoogleCodeExporter commented 9 years ago
Config file

Original comment by shadwork...@gmail.com on 27 Dec 2012 at 2:40

Attachments:

GoogleCodeExporter commented 9 years ago
Only TUN avalaible and no link to tun in config file

Original comment by shadwork...@gmail.com on 27 Dec 2012 at 2:42

GoogleCodeExporter commented 9 years ago
Sorry. May be i attached old log.

Original comment by shadwork...@gmail.com on 27 Dec 2012 at 2:47

Attachments:

GoogleCodeExporter commented 9 years ago
The new log still states: 'dev-type' is used inconsistently, local='dev-type 
tun', remote='dev-type tap'

You can the tap only on the server side (or your adminstrator)

Original comment by arne@rfc2549.org on 27 Dec 2012 at 2:58

GoogleCodeExporter commented 9 years ago
Thank you. I need reconfigure server.

Original comment by shadwork...@gmail.com on 27 Dec 2012 at 3:00