Skip to content

Commit 7f54ddc

Browse files
committed
add ciphers configuration support for version 2.5+
data-ciphers data-ciphers-fallback
1 parent 1859248 commit 7f54ddc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

openvpn/files/common_opts.jinja

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,14 @@ cipher "{{ cipher }}"
205205
{%- endfor %}
206206
{%- endif %}
207207

208+
{%- if config.data_ciphers is defined %}
209+
data-ciphers "{{ config.data_ciphers }}"
210+
{%- endif %}
211+
212+
{%- if config.data_ciphers_fallback is defined %}
213+
data-ciphers-fallback "{{ config.data_ciphers_fallback }}"
214+
{%- endif %}
215+
208216
{%- if config.tls_cipher is defined %}
209217
tls-cipher {{ config.tls_cipher }}
210218
{%- endif %}

pillar.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ openvpn:
139139
# see https://bettercrypto.org/static/applied-crypto-hardening.pdf
140140
ciphers:
141141
- AES-256-CBC
142+
# for version 2.5+ - https://community.openvpn.net/openvpn/wiki/CipherNegotiation
143+
data_ciphers: "AES-256-GCM:AES-128-GCM"
144+
data_ciphers_fallback: "AES-256-CBC"
142145
auths:
143146
- SHA384
144147
# yamllint disable-line rule:line-length

0 commit comments

Comments
 (0)