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

Re: [Openvpn-users] Re: Bridge VPN Via Tap: Is Slow Startups Normal?


  • Subject: Re: [Openvpn-users] Re: Bridge VPN Via Tap: Is Slow Startups Normal?
  • From: Jeff Pitman <symbiont@xxxxxxxxxx>
  • Date: Thu, 12 May 2005 18:01:34 +0800

On Tuesday 10 May 2005 00:50, Charles Duffy wrote:
| Have you looked into what the OpenVPN process is doing during this
| time (via high verbosity levels, or strace/ltrace)? It'd be
| interesting to know if it's blocking somewhere.

The problem is OpenVPN waits for the Up script to finish prior to 
continuing with packet handling.  However, if the Up script executes 
dhclient, it waits until packets are sent/recv before exiting.  The 
solution would be to document this fact in the FAQ and tell users to 
use "&" inside of the scripts when processes block on the tap interface 
looking for packets.  Another possibility is that some future version 
of OpenVPN could fork to execute the up script while continuing on to 
process packets on the tap interface.  Not sure what other race 
conditions are introduced doing so...

Anyway, "&" on dhclient fixed it and now it runs pretty fast.

take care,
-- 
-jeff

____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users