[Solved] Tear down client instance when many are running.

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Locked
thebowski
OpenVpn Newbie
Posts: 1
Joined: Tue Jan 28, 2014 5:13 pm

[Solved] Tear down client instance when many are running.

Post by thebowski » Tue Jan 28, 2014 5:26 pm

I'm working on a home project at the moment that requires me to have a machine be a client to many OpenVPN servers. I've got scripts set up and working for setting up the connections and routing traffic, but I'm having difficulty trying to tear down individual connections when they're no longer needed. Ideally, I would do this without use of the OpenVPN management interface. What would be the best way to do this? I've set each daemon to have to run with its own name, but when I check ouut the running services there's only one, named OpenVPN. How can I stop one OpenVPN connection, remove the interface, and fix all the routing rules while leaving other connections intact?
Last edited by debbie10t on Thu Feb 13, 2014 4:19 pm, edited 1 time in total.
Reason: [Solved / closed]

Locked