[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: James Yonan <jim@xxxxxxxxx>
  • Date: Sun, 10 Jul 2005 20:23:53 -0600 (MDT)

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.

James


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