[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] OpenVPN over PCMCIA


  • Subject: Re: [Openvpn-users] OpenVPN over PCMCIA
  • From: "James Yonan" <jim@xxxxxxxxx>
  • Date: Mon, 2 Feb 2004 15:08:15 -0000

Henri,

The reason why OpenVPN is taking a lot of CPU is that it is in a loop where a
huge amount of data is coming in on the tun/tap interface and OpenVPN is
trying to encrypt this data and send it out the UDP port, only the kernel is
rejecting the UDP send because of insufficient buffer space.

The huge amount of data coming in on the tun/tap interface is not normal and
probably indicates some kind of routing loop.

Does this configuration always produce this behavior, or does it sometimes
work correctly?

James

Henri Wahl <henri.wahl@xxxxxx> said:

> Hi,
> I run openvpn with --verb 9 and got a lot ouf output, which I dont understand 
> - only see between all the masses of messages the on which always appears on 
> the console when unplugging the pcmcia card:
> 
> write UDPv4 []: No buffer space available (code=105)
> 
> A little piece of the output with --verb 9 is:
> 
> Sun Feb  1 19:53:32 2004 us=865367 2450[0]: UDPv4 write returned -1
> Sun Feb  1 19:53:32 2004 us=865454 2451[0]: write UDPv4 []: No buffer space 
> available (code=105)
> Sun Feb  1 19:53:32 2004 us=865519 2452[0]: SELECT TR|tw|SR|sw 3/0
> Sun Feb  1 19:53:32 2004 us=865580 2453[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=865641 2454[0]:  read from TUN/TAP returned 88
> Sun Feb  1 19:53:32 2004 us=865908 2455[0]: TUN READ [88]: 45000058 030d409a 
> 4011399a c0a80102 c0a87b01 bfe3bfcd 5f56e739 6b77126[more...] md5=2f36e605 
> 679f0111 a66878c3 1634bdf4
> Sun Feb  1 19:53:32 2004 us=865986 2456[0]: ENCRYPT IV: 3b715fd9 e738437a
> Sun Feb  1 19:53:32 2004 us=866228 2457[0]: ENCRYPT FROM: 000000d2 401d4b29 
> 45000058 030d409a 4011399a c0a80102 c0a87b01 bfe3bfc[more...]
> Sun Feb  1 19:53:32 2004 us=866661 2458[0]: ENCRYPT TO: 3b715fd9 e738437a 
> d2f399d1 005e51e9 a3f320e4 926746f0 a450e0b4 7dd4cc8[more...]
> Sun Feb  1 19:53:32 2004 us=866762 2459[0]: SELECT tr|tw|SR|SW 31536000/0
> Sun Feb  1 19:53:32 2004 us=866824 2460[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=867156 2461[0]: UDPv4 WRITE [132] to 
> 192.168.123.1:5000:  DATA 1ea2c432 46d94453 d4a7f33d 727b87a1 a998eb1d 
> 3b715fd9 e738437a d2f399d[more...]
> Sun Feb  1 19:53:32 2004 us=867230 2462[0]: UDPv4 write returned 132
> Sun Feb  1 19:53:32 2004 us=867293 2463[0]: SELECT TR|tw|SR|sw 3/0
> Sun Feb  1 19:53:32 2004 us=867352 2464[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=867422 2465[0]:  read from TUN/TAP returned 1252
> Sun Feb  1 19:53:32 2004 us=870764 2466[0]: TUN READ [1252]: 450004e4 030d6000 
> 401115a8 c0a80102 c0a87b01 13881388 051461b2 61c79fc[more...] md5=52a868b6 
> 7c97f7e6 329e2559 bb9874d0
> Sun Feb  1 19:53:32 2004 us=870893 2467[0]: ENCRYPT IV: 90c0d311 1971cdbd
> Sun Feb  1 19:53:32 2004 us=873465 2468[0]: ENCRYPT FROM: 000000d3 401d4b29 
> 450004e4 030d6000 401115a8 c0a80102 c0a87b01 1388138[more...]
> Sun Feb  1 19:53:32 2004 us=876152 2469[0]: ENCRYPT TO: 90c0d311 1971cdbd 
> 5d376412 27d95e2f b343c3d3 8f0e399e f51301c9 f69f2d2[more...]
> Sun Feb  1 19:53:32 2004 us=876285 2470[0]: SELECT tr|tw|SR|SW 31536000/0
> Sun Feb  1 19:53:32 2004 us=876349 2471[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=879068 2472[0]: UDPv4 WRITE [1292] to 
> 192.168.123.1:5000:  DATA b72f0966 1274ecb2 49644877 43d2b14c f1c70ec5 
> 90c0d311 1971cdbd 5d37641[more...]
> Sun Feb  1 19:53:32 2004 us=879167 2473[0]: UDPv4 write returned 1292
> Sun Feb  1 19:53:32 2004 us=879232 2474[0]: SELECT TR|tw|SR|sw 3/0
> Sun Feb  1 19:53:32 2004 us=879294 2475[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=879359 2476[0]:  read from TUN/TAP returned 80
> Sun Feb  1 19:53:32 2004 us=879609 2477[0]: TUN READ [80]: 45000050 030e409a 
> 401139a1 c0a80102 c0a87b01 7c2b20f0 1c96c1fb acf69a3[more...] md5=66cac96c 
> ffa7783b 94c2c72a 2a52caaa
> Sun Feb  1 19:53:32 2004 us=879687 2478[0]: ENCRYPT IV: 391ca464 afabd092
> Sun Feb  1 19:53:32 2004 us=879968 2479[0]: ENCRYPT FROM: 000000d4 401d4b29 
> 45000050 030e409a 401139a1 c0a80102 c0a87b01 7c2b20f[more...]
> Sun Feb  1 19:53:32 2004 us=880246 2480[0]: ENCRYPT TO: 391ca464 afabd092 
> 6574652b 34f10093 b3a931eb cb294ec8 9dbd30f2 1d0a37d[more...]
> Sun Feb  1 19:53:32 2004 us=880337 2481[0]: SELECT tr|tw|SR|SW 31536000/0
> Sun Feb  1 19:53:32 2004 us=880398 2482[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=880717 2483[0]: UDPv4 WRITE [124] to 
> 192.168.123.1:5000:  DATA e62649c4 e0c6ebbf 21655974 40d2d9f5 602e0996 
> 391ca464 afabd092 6574652[more...]
> Sun Feb  1 19:53:32 2004 us=880792 2484[0]: UDPv4 write returned -1
> Sun Feb  1 19:53:32 2004 us=880878 2485[0]: write UDPv4 []: No buffer space 
> available (code=105)
> Sun Feb  1 19:53:32 2004 us=880943 2486[0]: SELECT TR|tw|SR|sw 3/0
> Sun Feb  1 19:53:32 2004 us=881005 2487[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=881074 2488[0]:  read from TUN/TAP returned 1252
> Sun Feb  1 19:53:32 2004 us=883679 2489[0]: TUN READ [1252]: 450004e4 030e6000 
> 401115a7 c0a80102 c0a87b01 13881388 050c98d4 a866a3e[more...] md5=edfd0828 
> c3f9cf1f 966d0e45 2c9d6a69
> Sun Feb  1 19:53:32 2004 us=883758 2490[0]: ENCRYPT IV: 9b86fc51 5d352872
> Sun Feb  1 19:53:32 2004 us=886464 2491[0]: ENCRYPT FROM: 000000d5 401d4b29 
> 450004e4 030e6000 401115a7 c0a80102 c0a87b01 1388138[more...]
> Sun Feb  1 19:53:32 2004 us=889841 2492[0]: ENCRYPT TO: 9b86fc51 5d352872 
> d8f6866c 9a3f6271 661cc43a 4bd47bd1 df47fa5c 92a153c[more...]
> Sun Feb  1 19:53:32 2004 us=890027 2493[0]: SELECT tr|tw|SR|SW 31536000/0
> Sun Feb  1 19:53:32 2004 us=890091 2494[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=892751 2495[0]: UDPv4 WRITE [1292] to 
> 192.168.123.1:5000:  DATA b7be7176 54bca409 db3ac4d6 0818533b 35b60a57 
> 9b86fc51 5d352872 d8f6866[more...]
> Sun Feb  1 19:53:32 2004 us=892847 2496[0]: UDPv4 write returned 1292
> Sun Feb  1 19:53:32 2004 us=892912 2497[0]: SELECT TR|tw|SR|sw 3/0
> Sun Feb  1 19:53:32 2004 us=892972 2498[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=893043 2499[0]:  read from TUN/TAP returned 1168
> Sun Feb  1 19:53:32 2004 us=895490 2500[0]: TUN READ [1168]: 45000490 00004000 
> 40113909 c0a80102 c0a87b01 13881388 047ccc31 801cbc9[more...] md5=47e5fe87 
> c45761a6 f31acc90 5aedc143
> Sun Feb  1 19:53:32 2004 us=895571 2501[0]: ENCRYPT IV: ab7fbbd4 0d388438
> Sun Feb  1 19:53:32 2004 us=897972 2502[0]: ENCRYPT FROM: 000000d6 401d4b29 
> 45000490 00004000 40113909 c0a80102 c0a87b01 1388138[more...]
> Sun Feb  1 19:53:32 2004 us=900690 2503[0]: ENCRYPT TO: ab7fbbd4 0d388438 
> 6d8a49c9 2912d292 aa3e9981 77618b05 719eff62 5b2f1bf[more...]
> Sun Feb  1 19:53:32 2004 us=900819 2504[0]: SELECT tr|tw|SR|SW 31536000/0
> Sun Feb  1 19:53:32 2004 us=900880 2505[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=903370 2506[0]: UDPv4 WRITE [1212] to 
> 192.168.123.1:5000:  DATA eefe6cbf 5fd0de56 89a7a2a5 92d65f9e 4b86ffcb 
> ab7fbbd4 0d388438 6d8a49c[more...]
> Sun Feb  1 19:53:32 2004 us=903448 2507[0]: UDPv4 write returned -1
> Sun Feb  1 19:53:32 2004 us=903534 2508[0]: write UDPv4 []: No buffer space 
> available (code=105)
> Sun Feb  1 19:53:32 2004 us=903599 2509[0]: SELECT TR|tw|SR|sw 3/0
> Sun Feb  1 19:53:32 2004 us=903660 2510[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=903729 2511[0]:  read from TUN/TAP returned 1096
> Sun Feb  1 19:53:32 2004 us=906028 2512[0]: TUN READ [1096]: 45000448 00004000 
> 40113951 c0a80102 c0a87b01 13881388 0434b17d 5c4bbf3[more...] md5=26655944 
> e917e47d a3ed0418 651a9bb7
> Sun Feb  1 19:53:32 2004 us=906107 2513[0]: ENCRYPT IV: 9de55e6c 69f1489e
> Sun Feb  1 19:53:32 2004 us=908368 2514[0]: ENCRYPT FROM: 000000d7 401d4b29 
> 45000448 00004000 40113951 c0a80102 c0a87b01 1388138[more...]
> Sun Feb  1 19:53:32 2004 us=910919 2515[0]: ENCRYPT TO: 9de55e6c 69f1489e 
> 61ee4528 6cdcc7bf ff33fa0d b4786334 3ca37bda e2059b9[more...]
> Sun Feb  1 19:53:32 2004 us=911046 2516[0]: SELECT tr|tw|SR|SW 31536000/0
> Sun Feb  1 19:53:32 2004 us=911108 2517[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=913460 2518[0]: UDPv4 WRITE [1140] to 
> 192.168.123.1:5000:  DATA 6f28bcb9 3a8728ff f3655a40 4248c6fc 4e494c9b 
> 9de55e6c 69f1489e 61ee452[more...]
> Sun Feb  1 19:53:32 2004 us=913594 2519[0]: UDPv4 write returned 1140
> Sun Feb  1 19:53:32 2004 us=913658 2520[0]: SELECT TR|tw|SR|sw 3/0
> Sun Feb  1 19:53:32 2004 us=913719 2521[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=913789 2522[0]:  read from TUN/TAP returned 1024
> Sun Feb  1 19:53:32 2004 us=915944 2523[0]: TUN READ [1024]: 45000400 00004000 
> 40113999 c0a80102 c0a87b01 13881388 03ecd907 8fefaae[more...] md5=ea7bf730 
> 8662653a df7ae5cf 15440db2
> Sun Feb  1 19:53:32 2004 us=916024 2524[0]: ENCRYPT IV: 7ed6f794 9693aa0e
> Sun Feb  1 19:53:32 2004 us=918141 2525[0]: ENCRYPT FROM: 000000d8 401d4b29 
> 45000400 00004000 40113999 c0a80102 c0a87b01 1388138[more...]
> Sun Feb  1 19:53:32 2004 us=921398 2526[0]: ENCRYPT TO: 7ed6f794 9693aa0e 
> 6c7a51ed 331fe625 bba74b2c addaea9d fbb2b83b 69a8273[more...]
> Sun Feb  1 19:53:32 2004 us=921585 2527[0]: SELECT tr|tw|SR|SW 31536000/0
> Sun Feb  1 19:53:32 2004 us=921649 2528[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=923858 2529[0]: UDPv4 WRITE [1068] to 
> 192.168.123.1:5000:  DATA d8db99c5 1deee22f 75769307 489d997a 7bd54955 
> 7ed6f794 9693aa0e 6c7a51e[more...]
> Sun Feb  1 19:53:32 2004 us=923949 2530[0]: UDPv4 write returned 1068
> Sun Feb  1 19:53:32 2004 us=924013 2531[0]: SELECT TR|tw|SR|sw 3/0
> Sun Feb  1 19:53:32 2004 us=924073 2532[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=924143 2533[0]:  read from TUN/TAP returned 952
> Sun Feb  1 19:53:32 2004 us=926300 2534[0]: TUN READ [952]: 450003b8 00004000 
> 401139e1 c0a80102 c0a87b01 13881388 03a463a9 92ae580[more...] md5=381e0b22 
> db20647a 5df957bc 5e757cca
> Sun Feb  1 19:53:32 2004 us=926387 2535[0]: ENCRYPT IV: 781259d8 795b4fb0
> Sun Feb  1 19:53:32 2004 us=929479 2536[0]: ENCRYPT FROM: 000000d9 401d4b29 
> 450003b8 00004000 401139e1 c0a80102 c0a87b01 1388138[more...]
> Sun Feb  1 19:53:32 2004 us=931608 2537[0]: ENCRYPT TO: 781259d8 795b4fb0 
> c0d48a8d 09923f6a befb7029 c171aac5 1a4a0c0b 815089b[more...]
> Sun Feb  1 19:53:32 2004 us=931752 2538[0]: SELECT tr|tw|SR|SW 31536000/0
> Sun Feb  1 19:53:32 2004 us=931817 2539[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=933885 2540[0]: UDPv4 WRITE [996] to 
> 192.168.123.1:5000:  DATA 31fb898d 44ce4752 b719fd44 a1b2022b f77d7498 
> 781259d8 795b4fb0 c0d48a8[more...]
> Sun Feb  1 19:53:32 2004 us=933977 2541[0]: UDPv4 write returned 996
> Sun Feb  1 19:53:32 2004 us=934041 2542[0]: SELECT TR|tw|SR|sw 3/0
> Sun Feb  1 19:53:32 2004 us=934101 2543[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=934171 2544[0]:  read from TUN/TAP returned 880
> Sun Feb  1 19:53:32 2004 us=936037 2545[0]: TUN READ [880]: 45000370 00004000 
> 40113a29 c0a80102 c0a87b01 13881388 035cbb2a 8a2c66c[more...] md5=b549f2bf 
> a047dd50 78a5be6c 5c280bfe
> Sun Feb  1 19:53:32 2004 us=936116 2546[0]: ENCRYPT IV: c5fc1e55 d44f46ed
> Sun Feb  1 19:53:32 2004 us=937941 2547[0]: ENCRYPT FROM: 000000da 401d4b29 
> 45000370 00004000 40113a29 c0a80102 c0a87b01 1388138[more...]
> Sun Feb  1 19:53:32 2004 us=939997 2548[0]: ENCRYPT TO: c5fc1e55 d44f46ed 
> e15cc7e3 82a92753 7320005c 947e913f 95261aea 9222055[more...]
> Sun Feb  1 19:53:32 2004 us=940115 2549[0]: SELECT tr|tw|SR|SW 31536000/0
> Sun Feb  1 19:53:32 2004 us=940176 2550[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=942092 2551[0]: UDPv4 WRITE [924] to 
> 192.168.123.1:5000:  DATA 25f3569b e3dcc132 88b7e8a5 3c6e23c8 71e36ea2 
> c5fc1e55 d44f46ed e15cc7e[more...]
> Sun Feb  1 19:53:32 2004 us=942166 2552[0]: UDPv4 write returned 924
> Sun Feb  1 19:53:32 2004 us=942229 2553[0]: SELECT TR|tw|SR|sw 3/0
> Sun Feb  1 19:53:32 2004 us=942289 2554[0]:  select returned 1
> Sun Feb  1 19:53:32 2004 us=942354 2555[0]:  read from TUN/TAP returned 808
> Sun Feb  1 19:53:32 2004 us=944072 2556[0]: TUN READ [808]: 45000328 00004000 
> 40113a71 c0a80102 c0a87b01 13881388 03140752 605ab0d[more...] md5=8e546162 
> f67b778b 3d0780c6 f3581b30
> Sun Feb  1 19:53:32 2004 us=944149 2557[0]: ENCRYPT IV: 49e1d4f9 eb8184ce
> Sun Feb  1 19:53:32 2004 us=945833 2558[0]: ENCRYPT FROM: 000000db 401d4b29 
> 45000328 00004000 40113a71 c0a80102 c0a87b01 1388138[more...]
> Sun Feb  1 19:53:32 2004 us=947600 2559[0]: ENCRYPT TO: 49e1d4f9 eb8184ce 
> b34d346f c66e8af2 1f994c37 19d46973 e27b644c 793b229[more...]
> 
> Meanwhile openvpn tries to get any bit of cpu power it can get. What does it 
> all mean?
> 
> Henri
> 
> 
> Am Samstag, 31. Januar 2004 21:51 schrieb James Yonan:
> > Henri,
> >
> > Trying running at higher verbosity (like --verb 9) and see if it's looping
> > over some kind of error message when it starts sucking CPU.
> >
> > James
> >
> > Henri Wahl <henri.wahl@xxxxxx> said:
> > > Hi World,
> > > I am a very happy OpenVPN user - I have just one problem:
> > > My setup is using OpenVPN to secure a WLAN, so it runs over connection
> > > created with a PCMCIA card. Device tun0 points to eth0, which is in fact
> > > the PCMCIA card. When the card is plugged everything works fine, but if I
> > > pull it out and keep openvpn running in the background (too lazy to stop
> > > it, so it is actually securing a non-existent connection), it soon tries
> > > to get all CPU power it can get. This seems strange to me because right
> > > now there is just NOTHING to do for it...
> > > Is this a bug or a feature? How to fix this?
> > >
> > > Cheers - Henri
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > The SF.Net email is sponsored by EclipseCon 2004
> > > Premiere Conference on Open Tools Development and Integration
> > > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> > > http://www.eclipsecon.org/osdn
> > > _______________________________________________
> > > Openvpn-users mailing list
> > > Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
> > > https://lists.sourceforge.net/lists/listinfo/openvpn-users
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Openvpn-users mailing list
> Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/openvpn-users
> 



-- 





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users