Bridge-Start Script Sequense Before OPENVPN on boot

Posted on 2008-11-09
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:

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...
Question by:mubama0n

    Author Comment

    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) ...

    LVL 87

    Accepted Solution

    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.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    Let’s list some of the technologies that enable smooth teleworking. 
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    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…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now