Embedded up script

How to customize and extend your OpenVPN installation.

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

Post Reply
glaucioklipel
OpenVpn Newbie
Posts: 3
Joined: Wed Jan 07, 2015 1:09 pm

Embedded up script

Post by glaucioklipel » Wed Jan 07, 2015 1:15 pm

Hi all!

I'm just wondering where can I set up script onto the OpenVPN code and compile it? In fact, I want to write a single line shell command on this variable and make it internal, not calling external script.

Well, it is possible and 'legal' to do that?

glaucioklipel
OpenVpn Newbie
Posts: 3
Joined: Wed Jan 07, 2015 1:09 pm

Re: Embedded up script

Post by glaucioklipel » Fri Jan 09, 2015 12:09 am

I think maybe I not made me clear after reading my lines again some times, sorry.

OpenVPN has a parameter --up 'SHELL SCRIPT' or simply add up 'SHELL SCRIPT' on .conf. What I want is to write a single line command directly on OVPN source code and compile it.

Like:

option.up_script = "echo 'testing stdout'"

Instead writing it as a parameter, I want to set it directly on OVPN with no need to call it from .conf.

Is it possible?

Post Reply