#10518: Openvpn not parsing the configuration file correctly on r29341
-----------------------+-----------------------------------
Reporter: Weikai | Owner: developers
Type: defect | Status: reopened
Priority: normal | Milestone: Barrier Breaker 14.07
Component: packages | Version: Trunk
Resolution: | Keywords: Openvpn
-----------------------+-----------------------------------
Changes (by ISO):
* status: closed => reopened
* resolution: fixed =>
Comment:
'''DISTRIB_ID="OpenWrt"
DISTRIB_RELEASE="14.07"
DISTRIB_REVISION="r42625"
DISTRIB_CODENAME="barrier_breaker"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="OpenWrt Barrier Breaker 14.07"
DISTRIB_TAINTS=""'''
This issue i believe persist, '''SOME''' settings from /etc/config/openvpn
are '''NOT''' passed through to /var/etc/openvpn-*.cnf by
/etc/init.d/openvpn.
For example in /etc/config/openvpn i have:
{{{
option persist-key '1'
option persist-tun '1'
}}}
But i have an error in /tmp/openvpn.log:
{{{
WARNING: you are using user/group/chroot/setcon without persist-tun --
WARNING: you are using user/group/chroot/setcon without persist-key --
}}}
If i manually edit /var/etc/openvpn-*.cnf and manually add persist-tun and
persist-key, and i invoke directly the conf file in a shell like so:
{{{
$ openvpn /var/etc/openvpn-*.cnf
}}}
i will not see the WARNING messages in /tmp/openvpn.log. As soon as i redo
/etc/init.d/openvpn restart, persist-tun and persist-key dissappear.
{{{
OpenVPN 2.3.4 mips-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH]
[IPv6] built on Sep 20 2014
library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.08
Originally developed by James Yonan
Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <[email protected]>
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/10518#comment:10>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets