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?
Embedded up script
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 3
- Joined: Wed Jan 07, 2015 1:09 pm
Re: Embedded up script
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?
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?