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

Re: [Openvpn-users] Problem automating tap0/dhcp on client Suse 9.1


  • Subject: Re: [Openvpn-users] Problem automating tap0/dhcp on client Suse 9.1
  • From: Michael Hieb <michael.hieb@xxxxxxxxxx>
  • Date: Mon, 11 Jul 2005 08:02:19 -0400

James Yonan wrote:
On Sun, 10 Jul 2005, Michael Hieb wrote:

  
Hi All,

I've long had OpenVPN 1.6 running between two Suse 9.1 boxes using 
static keys. I have recently upgraded to Open VPN 2.0 using certificates 
and tls-auth. On the server side I am using bridge-ethernet with the 
goal that clients that connect will interact with the system DHCP server.

I have the following odd problem. If I connect from Suse 9.1 laptop with 
the options shown at the end, the connection is smooth, but ifconfig 
does not show a tap0 device and dhcp has not run. If I manually run 
'ifconfig tap0' and 'dhcpcd -G -R -n -h laptop tap0' then the device 
tap0 is brought up and dhcp configures just fine. The problem is how to 
automate this? If I add to the client configuration for laptop 'up 
client.up' and put these two commands in client.up, then I do not 
connect properly. I've have poured through the documentation and tried 
every permutation I can think of. Apologies in adavnce if I have missed 
something obvious, but I need a clue.
    

Remember that OpenVPN calls the up script synchronously and waits until it
has exited before starting the tunnel.  Because of this, if the up script
needs to do something which will cause tunnel communication, it should
invoke a secondary script in the background with the "&" postfix.
  
Thanks, and yes, thats it. Tested and working. I really didn't understand the sequence and feared I had something fundamentally wrong. BTW: I find it isn't necessary to have the secondary script, just need to background the dhcpcd invocation. Lastly, and most importantly, thank you for the fine software.
James

  


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-07/msg00080.html on line 222

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-07/msg00080.html on line 222