Browse Source

Enable AES on machines with AES in hardware.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 years ago
parent
commit
f923b0c50a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      fastd/fastd.conf

+ 3 - 3
fastd/fastd.conf

@@ -6,10 +6,10 @@ log to syslog level info;
 
 interface "{{ site }}_{{ network }}";
 
-{%- if 'aes' in grains['cpu_flags'] %}
-method "aes128-ctr+umac";
+{%- if 'aes' in grains.cpu_flags and grains.oscodename not in [ "stretch" ] %}
+method "aes128-gcm";
 {%- else %}
-#method "aes128-ctr+umac";	# Not supported by CPU on this machine
+#method "aes128-gcm";	# - Not supported by CPU on this machine 
 {%- endif %}
 method "salsa2012+umac";