OpenVPN tries to start before WiFi up, so no IP available

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
AMG
OpenVpn Newbie
Posts: 5
Joined: Fri Aug 27, 2010 3:53 pm

OpenVPN tries to start before WiFi up, so no IP available

Post by AMG » Wed Sep 08, 2010 2:28 am

Ubuntu 10.04, OpenVPN 2.1.0.

I installed this via the HowTo I found online. It was very straight forward and works fine. It looks like the startup scripts are S16openvpn, so not starting at the end (S99). My problem though is that Ubuntu starts up and attempts to start OpenVPN. OpenVPN complains that the IP is not there, so it cannot bind. This is absolutely true. Ubuntu then auto logs in. When that occurs my keyring is loaded and WiFi comes up, connects to my net, then the IP is available.

I really wish that WiFi would load independant of the user having to login. I wish it would come online during start up and any user who logs in would have the network already up. But I guess that isnt how Ubuntu works. So how can I fix this? Is there some trick that everyone has come up with? Do I need to put a long 'sleep' in the openvpn script, would that even work? Whats the best solution? Thanks!!

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: OpenVPN tries to start before WiFi up, so no IP availabl

Post by krzee » Mon Sep 13, 2010 4:12 am

Personally, I would look for another way to start it. This is an ubuntu question, not an OpenVPN question.

Post Reply