Results 1 to 3 of 3

Thread: OpenVPN: Run bridge scripts on boot & shutdown before and after OpenVPN service

  1. #1
    Join Date
    Jan 2012
    Beans
    3

    OpenVPN: Run bridge scripts on boot & shutdown before and after OpenVPN service

    I've got OpenVPN working properly on my server, using bridge-start and bridge-stop scripts to create and remove network bridge, respectively. How do I set these scripts up to run bridge-start at boot before starting OpenVPN, and bridge-stop at shutdown after stopping OpenVPN? I've tried adding 'up "/path/to/bridge-start"' and 'down "/path/to/bridge-stop"' to server.conf but the bridge interface doesn't get created. It appears these scripts absolutely have to be run separate from OpenVPN's own startup/shutdown.

  2. #2
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,554
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: OpenVPN: Run bridge scripts on boot & shutdown before and after OpenVPN service

    I'm just going to throw out an idea since it's been awhile since I played around with what you want to do however I believe you would have to create your own udev script and add your networking scripts to be called from the preup and postdown sections. Writing a udev script is really easy to do so don't be intimidated.

  3. #3
    Join Date
    Jan 2012
    Beans
    3

    Re: OpenVPN: Run bridge scripts on boot & shutdown before and after OpenVPN service

    Ok cool, I'll check it out. Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •