Page 1 of 1

Embedded up script

Posted: Wed Jan 07, 2015 1:15 pm
by glaucioklipel
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?

Re: Embedded up script

Posted: Fri Jan 09, 2015 12:09 am
by glaucioklipel
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?