Replies: 3 comments 7 replies
-
A custom service account like
Moving logs to
This is the most important function of the service and needs to be retained -- in fact we used to have too many complaints for the old legacy service as that one was unreliable on this front. The service has to remain a watchdog, not something that starts OpenVPN and then forgets about it. |
Beta Was this translation helpful? Give feedback.
-
Can't we just make the service a management client, like the GUI, and have it log to %APPDATA%, or is that only available after login? |
Beta Was this translation helpful? Give feedback.
-
|
Interactive service change to allow service account use all options: https://gerrit.openvpn.net/c/openvpn/+/906 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As discussed during the last hackathon, we're moving to use interactive service for privileged operations, which will enable us to run openvpn process under limited privileges. Basically instead of starting openvpn process directly, we connect to interactive service as a pipe client and send startup info, same way as gui does.
There are few points to discuss:
LocalServicewhich is more limited compared toLocalSystem, but we are not the only ones who use it. Maybe the better way would be to createOpenVPNUserwithout interactive logon rights.OpenVPNAdministratorsgroup, because persistent connections often contain "unsafe" options.HKLM\SOFTWARE\OpenVPN\log_dir. SinceC:\Program Files\OpenVPN\log(default value, set by installer) is not writable for unprivileged user, we should change it in installer to something likeC:\ProgramData\OpenVPN\log\. Maybe for consistency we should also migrateconfig-autothere?Would be nice to hear your opinions @selvanair @cron2 @d12fk
Beta Was this translation helpful? Give feedback.
All reactions