openconnect / openconnect-gui

MOVED TO https://gitlab.com/openconnect/openconnect-gui
https://gitlab.com/openconnect/openconnect-gui
GNU General Public License v2.0
1.3k stars 241 forks source link

Failed to write to TAP device The data area passed to a system call is too small #147

Closed shanecode closed 7 years ago

shanecode commented 7 years ago

Description of the Issue

When i connected the server use the openconnect-gui,I get this log: "Failed to write to TAP device The data area passed to a system call is too small".

I think it is my ocserver server's problem, Because it is only happen in special server. But I dont know how to make the server work.

I can give you the server ip , you can use openconnect-gui reduce the error.

Specifications

Version: openconnect-gui 1.4.1; ocserv server 0.11.3; TAP 9.21.2 Platform: windows 10 x64

shanecode commented 7 years ago

# ocserv server log:

Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 suggesting DPD of 90 secs Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 configured link MTU is 1500 Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 peer's data MTU is 1406 / link is 1500 Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 reducing MTU due to TCP MSS to 1387 (from 1500) Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 sending IPv4 192.168.8.75 Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 adding DNS 114.114.114.114 Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 Include route 10.10.10.0/255.255.255.0 Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 Include route 192.168.0.0/255.255.0.0 Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 Exclude route 192.168.5.0/255.255.255.0 Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 DTLS ciphersuite: OC-DTLS1_2-AES128-GCM Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 DTLS data MTU 1321 Nov 22 16:33:47 centos65-64-151230 ocserv[4011]: worker[huson]: 101.229.117.38 Link MTU is 1387 bytes

shanecode commented 7 years ago

@horar could you help me please

horar commented 7 years ago

hi @shanecode , let's try:

  1. a command line openconnect.exe (an optional part of openconnect.gui installer package, GUI is only wrapper over openconnect library)
  2. you can try use never version of command line openconnect (or you can wait few weeks for next openconnect-gui release) - here
shanecode commented 7 years ago

@horar The never version for opennconnect not work and cisco anyconnect work fine ...

horar commented 7 years ago

hi @shanecode Your logs indicate the MTU was changed, this should be implemented in openconnect v7.08 .., this is not yet implemented in GUI, but will come into GUI in v1.6.x.

Could you please try v7.08 from above link and prove it solve your problem? Thanks.

shanecode commented 7 years ago

@horar Thanks horar I will try v7.08 and report

shanecode commented 7 years ago

@horar 7.08 not work also ”Failed to write to TAP device The data area passed to a system call is too small”

horar commented 7 years ago

@shanecode thanx for update. I'm sorry, no idea what's wrong. You should ask openconnect team directly. it's upstream project for this GUI.

itviewer commented 7 years ago

I compiled the new code,but the problem still exists,why?

horar commented 7 years ago

@itviewer if it is not working, then problem is probably in upstream openconnect project and not in GUI; this project is just a gui on top of openconnect library.

itviewer commented 7 years ago

@horar ok , I test with the openconnect command tool, same problem, seems it indeed cause by upstream