aboutsummaryrefslogtreecommitdiff
path: root/net/openvpn/files/openvpn.config
diff options
context:
space:
mode:
authorMichal Hrusecky <michal.hrusecky@turris.com>2020-11-16 14:34:19 +0100
committerMichal Hrusecky <michal.hrusecky@turris.com>2020-12-11 17:07:53 +0100
commit0830dfa41c490252b6630f8e7627d634a2e6ed00 (patch)
tree11f173f39904f0f6ab92e486502ece1418cd8211 /net/openvpn/files/openvpn.config
parent3292d24cfe1d5c3afcd1c0e0eb86f6f8d2dddfe4 (diff)
openvpn: Support username and password options
Some VPN providers require username and password for client to connect. This commit adds an option to specify username, password and cert_password directly in uci config which then gets expanded during start of openpvn client. Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com>
Diffstat (limited to 'net/openvpn/files/openvpn.config')
-rw-r--r--net/openvpn/files/openvpn.config7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/openvpn/files/openvpn.config b/net/openvpn/files/openvpn.config
index 09d504da2..57fb385d7 100644
--- a/net/openvpn/files/openvpn.config
+++ b/net/openvpn/files/openvpn.config
@@ -9,6 +9,13 @@ config openvpn custom_config
# Set to 1 to enable this instance:
option enabled 0
+ # Credentials to login
+ #option username 'login'
+ #option password 'password'
+
+ # Password for client certificate
+ #option cert_password 'cert_password'
+
# Include OpenVPN configuration
option config /etc/openvpn/my-vpn.conf