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.
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.
Re: OpenVPN: Run bridge scripts on boot & shutdown before and after OpenVPN service
Ok cool, I'll check it out. Thanks!