Remote Access VPN Hardening Guide

Since a while and especially CVE-2026-50751 we need to harden our environments for Remote Access VPN’s. Below an overview of steps you can take to harden your Remote Access VPN environments

References

Use the latest Endpoint Security (VPN) Client

Check the version of your Endpoint Security Client. Stay up-to-date. Since version E89.30 IKEv2 is enabled by default. For older versions you can follow sk166415 to enable IKEv2 on Windows and macOS devices.

IKEv2 instead of IKEv1

One of the main goals the get rid of the older and vulnerable IKEv1 is to use IKEv2. You can configure this as described in sk185033

For Security Gateways and Central Managed Spark Firewalls before R82.20

  1. In SmartConsole open Global Properties
  2. Go to Remote Access > VPN Authentication
  3. Set Encryption method on ‘IKEv2 only’
  4. Close the windows by clicking ‘OK’
  5. Publish your changes and Install policy

For Security Gateways and Central Managed Spark Firewalls from R82.20

  1. Open the VPN Community ‘Remote Access’
  2. Go to Encryption
  3. Set Encryption method on ‘IKEv2 only’
  4. Close the window by clicking ‘OK’
  5. Publish your changes and Install policy

For locally managed Spark Firewall R82.00.X and R81.10.X

Using WEBUI

  1. In the Spark WebUI go to Device > Advanced Settings
  2. Search for the option ‘Remote Access VPN – Encryption Method’ and select ‘IKEv2’

Using CLI

In the Spark CLI run the following command:

set vpn remote-access advanced-settings enc-method "ike-v2"

Use strong encryption algorithms

By default old and insecure encryption algorithms are configure to support legacy applications. As mentioned above always use supported endpoints to connection to your network. Recommendations are base on RFC6379, R82.20 Remote Access VPN Administration Guide – Best Practices

PhaseDefault R82.10 and lowerDefault R82.20 and higherRecommended
IKE Phase 1
Encryption algorithms
DES, 3DES, AES-256
Use encryption algorithm: AES-256
AES-256
Use encryption algorithm: AES-256
AES-256
Preferred: AES-256
IKE Phase 1
Data Integrity
MD5, SHA1
Use Data Integrity: SHA1
SHA256, SHA384
Use Data Integrity: SHA384
SHA384, SHA512
Preferred: SHA384
IKE Phase 1
Diffie-Hellman Groups
Group 2 (1024 bit)
Use Diffie-Hellman Group: Group 2 (1024 bit)
Group 14 (2048 bit), Group 15 (3072 bit)
Use DH-Group: Group 15 (3072 bit)
Group-14, Group-15, Group-16, Group-17, Group-18, Group-19, Group-20, Group-21
Preferred: Group-21
IPSEC Phase 2
Encryption alogirithms
Use encryption algorithm: 3DESAES-256
Use encryption algorithm: AES-256
AES-256, AES-256-GCM1
Preferred: AES-256-GCM
IPSEC Phase 2
Data Integrity
Use Data Integrity: SHA1SHA256, SHA384
Use Data Integrity: SHA384
SHA256, SHA384
Preferred: SHA384
  1. AES-256-GCM requires gateways running R82.20 ↩︎

Configuration of encryption algorithms

For Security Gateways and Central Managed Spark Firewalls before R82.20

  1. In SmartConsole open Global Properties
  2. Go to Remote Access > VPN Authentication
  3. Click on ‘Edit’ in the ‘Encryption Algorithm’ section
  4. Select the correct options as described in the table above
  5. Close the windows by clicking ‘OK’
  6. Publish your changes and Install policy

For Security Gateways and Central Managed Spark Firewalls from R82.20

  1. In SmartConsole open the VPN Community ‘Remote Access’
  2. Go to Encryption
  3. Select the correct options as described in the table above
  4. Close the window by clicking ‘OK’
  5. Publish your changes and Install policy

For locally managed Spark Firewall R82.00.X

Options for the locally managed Spark Firewalls are limited. Changing the encryption and data integrity options for Phase 1 is of the moment of writing not possible. Use the options as follows:

PhaseDefault R82.00.XRecommended
IKE Phase 1
Encryption algorithms
IKE Phase 1
Data Integrity
IKE Phase 1
Diffie-Hellman Groups
Group 2 (1024 bit)Group 20 (384-bit ECP) (Force)
IPSEC Phase 2
Encryption alogirithms
AES-256AES-256
IPSEC Phase 2
Data Integrity
SHA1SHA512

Using WEBUI

  1. In the Spark WebUI go to Device > Advanced Settings
  2. Search for the option ‘Remote Access VPN – Authentication algorithm used for Phase 2’ and select ‘SHA512’
  3. Search for the option ‘Remote Access VPN – DH Group used for Phase 1’ and select ‘Group 20 (384-bit ECP)’ and select the option ‘Force selected DH Group for Phase 1’
  4. Search for the option ‘Remote Access VPN – Encryption algorithm used for Phase 2’ and select ‘AES-256’

Using CLI

In the Spark CLI run the following command:

set vpn remote-access advanced-settings about-config-force-dhgroup dhgroup-used-for-phase1 group-20
set vpn remote-access advanced-settings about-config-force-dhgroup force-dhgroup-for-phase1 true
set vpn remote-access advanced-settings encryption-algorithm-used-for-phase2 aes-256
set vpn remote-access advanced-settings authentication-algorithm-used-for-phase2 sha512

You may also like...