Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions openvpn/files/common_opts.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ cipher "{{ cipher }}"
{%- endfor %}
{%- endif %}

{%- if config.data_ciphers is defined %}
data-ciphers "{{ config.data_ciphers }}"
{%- endif %}

{%- if config.data_ciphers_fallback is defined %}
data-ciphers-fallback "{{ config.data_ciphers_fallback }}"
{%- endif %}

{%- if config.tls_cipher is defined %}
tls-cipher {{ config.tls_cipher }}
{%- endif %}
Expand Down
3 changes: 3 additions & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ openvpn:
# see https://bettercrypto.org/static/applied-crypto-hardening.pdf
ciphers:
- AES-256-CBC
# for version 2.5+ - https://community.openvpn.net/openvpn/wiki/CipherNegotiation
data_ciphers: "AES-256-GCM:AES-128-GCM"
data_ciphers_fallback: "AES-256-CBC"
auths:
- SHA384
# yamllint disable-line rule:line-length
Expand Down
Loading