Page 1 of 1

[Win32] openvpn.exe - configuration via STDIN?

Posted: Wed Mar 28, 2012 9:24 am
by gridrun
Hi all,

Is it possible to have openvpn.exe read its configuration from STDIN instead of a file?

Re: [Win32] openvpn.exe - configuration via STDIN?

Posted: Wed Mar 28, 2012 10:04 am
by janjust
nope, but you can specify everything using command line parameters. Each config file statement can be prepended by '--' and used on the commandline, e.g.

Code: Select all

openvpn --dev tun --remote IP --port 1194 --ca ....

Re: [Win32] openvpn.exe - configuration via STDIN?

Posted: Wed Mar 28, 2012 12:51 pm
by gridrun
Hi Jan,

That's what I was afraid of.

Would have been nice if that worked, as there is a limit to the overall length of command line arguments in Wintendo and writing out config to the HD just so openVPN can read it again seems like nothing more but a necessary evil and additional error source (disk may be full, access denied, etc etc).

I don't think the length limit will actually be a problem. Writing a new Win32 service for openVPN, you see. I'm not happy at all with the existing service wrapper.