OpenVPN Radiusplugin的useauthcontrolfile选项

Radiusplugin作者说 这个选项能提高性能(Link1 Link2)姑且听之

Can you set "useauthcontrolfile=true" in your plugin config (if you use
OpenVPN 2.1), it will increase the performance and also change the way users
are handled. The auth control files are written by default to the OpenVPN
configuration directory, the OpenVPN option "tmp-dir" changes the default
directory, the plugin needs write permissions to this directory.

启用useauthcontrolfile有两个条件

1.OpenVPN (>= 2.1 rc8)
2.tmp-dir对OpenVPN用户有写入权限(默认是openvpn的配置文件目录)

条件2如果不满足 会直接认证失败 具体可以看看日志就知道了。

我一开始启动不起来 就是因为nobody用户对openvpn的配置文件目录没写权限 重新定义tmp-dir就好了
需要注意到是 tmp-dir也会影响client-connect scripts to dynamically generate client-specific configuration files.

Author Info :
  • From:OpenVPN Radiusplugin的useauthcontrolfile选项
  • URL:https://blog.ihipop.com/2011/05/2434.html
  • Please Reserve This Link,Thanks!
  • 《OpenVPN Radiusplugin的useauthcontrolfile选项》上有4条评论

    发表回复

    您的电子邮箱地址不会被公开。 必填项已用 * 标注