Summary: | net-misc/openvpn-2.2.2: cannot open ifconfig-pool-persist file on startup | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Orlitzky <mjo> |
Component: | Current packages | Assignee: | Dirkjan Ochtman (RETIRED) <djc> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | cedk |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Michael Orlitzky
2013-01-12 21:26:46 UTC
For what it's worth, this also happens on a fresh install so it should be easy to reproduce. This isn't a problem with OpenVPN within Gentoo but how you're using it. The use of the --ifconfig-pool-persist file is *not* at default, and not something Gentoo is adding in the initscript. The only use the initscript provided by Gentoo has with /var/run/ is to store the PID, and that's stored at /var/run/ (not an openvpn subdirectory.) Thus /var/run/openvpn/ is *not* expected to exist on a "stock" install. You are the one that has specified the path argument to this file, and it is thus your responsibility to insure that the directory exists where you want this file to reside. And finally, while this isn't on topic with your original bug, you're better off not even using the --ifconfig-pool-persist directive anyway; it won't give clients static addresses since the client -> IP mappings are used as suggestions only by openvpn. If you want proper static IPs with openvpn, use a smaller --ifconfig-pool range and use --ifconfig-push directives in a ccd or --client-connect script. Since this is not a bug with OpenVPN or Gentoo, I suggest it be closed out. Sounds good. Josh, thanks for the analysis. |