diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-04 21:19:21 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-11-07 21:54:53 +0100 |
commit | b5a7d9037c2f89a83bfff5b1490a41682a4d8d3a (patch) | |
tree | eb2ce597f9cf2edf6496a5746b421804ec902377 /docs | |
parent | 653a6eed8d12dd6054f19ccacfeb35a0817e0b97 (diff) | |
download | vyos-documentation-b5a7d9037c2f89a83bfff5b1490a41682a4d8d3a.tar.gz vyos-documentation-b5a7d9037c2f89a83bfff5b1490a41682a4d8d3a.zip |
OpenVPN: explain how to pass quotes to openvpn-option
Diffstat (limited to 'docs')
-rw-r--r-- | docs/vpn/openvpn.rst | 12 |
1 files changed, 11 insertions, 1 deletions
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. |