How i can automatically creating bridge before start openvpn service?

How to customize and extend your OpenVPN installation.
Post Reply
vmalahov90
OpenVpn Newbie
Posts: 1
Joined: Tue Oct 26, 2021 7:30 am

How i can automatically creating bridge before start openvpn service?

Post by vmalahov90 » Tue Oct 26, 2021 8:21 am

I create 2 scripts: bridge-start and bridge-stop, they up bridge before start openvpn daemon and down it when it stop. I put it into /etc/openvpn/, near my conf file.
I try to start it any ways:

firstly: i just put it in /etc/openvpn.
secondary: i put in my config file this strings "up bridge-start" "down bridge-stop".
at least: i try to edit openvpn@.servise

Can you tell me, where i need to put record who start this script when openvpn starting up and shutting down.

If i start this script manually all work's good, but i cant start it into automatically mode.
Best regards, Vladimir.


Post Reply