From b5a7d9037c2f89a83bfff5b1490a41682a4d8d3a Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 4 Sep 2019 21:19:21 +0200 Subject: OpenVPN: explain how to pass quotes to openvpn-option --- docs/vpn/openvpn.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'docs/vpn/openvpn.rst') diff --git a/docs/vpn/openvpn.rst b/docs/vpn/openvpn.rst index 7e468c7b..d0bc279b 100644 --- a/docs/vpn/openvpn.rst +++ b/docs/vpn/openvpn.rst @@ -424,6 +424,16 @@ options to OpenVPN. set interfaces openvpn vtun10 openvpn-option 'persistent-key' -Will add `persistent-key` at the end of the generated OpenVPN configuration. +Will add ``persistent-key`` at the end of the generated OpenVPN configuration. Please use this only as last resort - things might break and OpenVPN won't start if you pass invalid options/syntax. + +Sometimes option lines in the generated OpenVPN configurarion require quotes. +This is done through a hack on our config generator. You can pass Quotes using +the ``"`` statement. + +.. code-block:: sh + + set interfaces openvpn vtun10 openvpn-option 'push "keepalive 1 10"' + +Will add ``push "keepalive 1 10"`` to the generated OpenVPN config file. -- cgit v1.2.3