Skip to content

Commit

Permalink
New ciphers implementing #247
Browse files Browse the repository at this point in the history
  • Loading branch information
jackivanov committed Apr 5, 2017
1 parent 3df33c0 commit c85a63a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
11 changes: 11 additions & 0 deletions roles/vpn/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ strongswan_enabled_plugins:
- socket-default
- stroke
- x509

ciphers:
old:
ike: aes128gcm16-sha2_256-prfsha256-ecp256!
esp: aes128gcm16-sha2_256-ecp256!
defaults:
ike: aes192gcm16-prfsha512-ecp521!
esp: aes192gcm16-ecp521!
windows:
ike: aes128gcm16-sha2_256-prfsha256-ecp256,aes256-sha2_256-prfsha256-modp2048!
esp: aes128gcm16-sha2_256-ecp256,aes256-sha2_256-modp2048!
8 changes: 4 additions & 4 deletions roles/vpn/templates/client_ipsec.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ conn ikev2-{{ IP_subject_alt_name }}
dpddelay=35s

{% if Win10_Enabled is defined and Win10_Enabled == "Y" %}
ike=aes128gcm16-sha2_256-prfsha256-ecp256,aes256-sha2_256-prfsha256-modp2048!
esp=aes128gcm16-sha2_256-ecp256,aes256-sha1-modp1024!
ike={{ ciphers.windows.ike }}
esp={{ ciphers.windows.esp }}
{% else %}
ike=aes128gcm16-sha2_256-prfsha256-ecp256
esp=aes128gcm16-sha2_256-ecp256
ike={{ ciphers.defaults.ike }}
esp={{ ciphers.defaults.esp }}
{% endif %}

right={{ IP_subject_alt_name }}
Expand Down
8 changes: 4 additions & 4 deletions roles/vpn/templates/ipsec.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ conn %default
dpddelay=35s

{% if Win10_Enabled is defined and Win10_Enabled == "Y" %}
ike=aes128gcm16-sha2_256-prfsha256-ecp256,aes256-sha2_256-prfsha256-modp2048!
esp=aes128gcm16-sha2_256-ecp256,aes256-sha2_256-modp2048!
ike={{ ciphers.windows.ike }}
esp={{ ciphers.windows.esp }}
{% else %}
ike=aes128gcm16-sha2_256-prfsha256-ecp256!
esp=aes128gcm16-sha2_256-ecp256!
ike={{ ciphers.defaults.ike }}
esp={{ ciphers.defaults.esp }}
{% endif %}

left=%any
Expand Down

0 comments on commit c85a63a

Please sign in to comment.