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.