?
Solved

Bridge-Start Script Sequense Before OPENVPN on boot

Posted on 2008-11-09
2
Medium Priority
?
1,636 Views
Last Modified: 2012-05-05
Simple all you need to a .conf file in /etc/openvpn and the daemon will startup when booting. However when running a bridged vpn one is required to start the bridge first: http://openvpn.net/index.php/documentation/miscellaneous/ethernet-bridging.html

The OpenVPN bridge can now be started and stopped using this sequence::
* run bridge-start
* run openvpn
* stop openvpn
* run bridge-stop

The question is how can I have the bridge-start script run before the daemon starts openvpn when then server boots ?

Is it advisable or safe to edit the script /etc/init.d/openvpn ?

Always appreciative...
0
Comment
Question by:mubama0n
2 Comments
 

Author Comment

by:mubama0n
ID: 22919624
Just I would like to Add that I have the following message After Starting my Openvpn on the (Client):

Cannot ioctl TUNSETIFF tap0: Device or resource busy (errno=16)

Cannot open TUN/TAP dev /dev/tap0: No such file or directory (errno=2) ...

Regards
0
 
LVL 88

Accepted Solution

by:
rindi earned 1500 total points
ID: 22926549
The startup scripts are usually inside /etc/init.d and then there are symlinks for those scripts inisde the runlevels, /etc/rc1.d..../etc/rc6.d. The Symlinks to start a script use SxxScriptname in their filenames, where S stands for start, xx is a number between 00 and 99. The lower number starts before the higher number, so if your symlinks are S10bridge-start, S12OpenVPN, then the bridge script will start before the VPN because of the numbers S10 and S12. If the Symlinks were named S12bridge-start and S10OpenVPN, then the OpenVPN script would start before the Bridge Script.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Suggested Courses
Course of the Month13 days, 22 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question