summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/windows_profile.j2
blob: b5042f98757537d8c0cd23fdceec0256b44f4437 (plain)
1
2
3
4
Remove-VpnConnection -Name "{{ vpn_name }}" -Force -PassThru

Add-VpnConnection -Name "{{ vpn_name }}" -ServerAddress "{{ remote }}" -TunnelType "Ikev2"
Set-VpnConnectionIPsecConfiguration -ConnectionName "{{ vpn_name }}" -AuthenticationTransformConstants {{ ike_encryption.encryption }} -CipherTransformConstants {{ ike_encryption.encryption }} -EncryptionMethod {{ esp_encryption.encryption }} -IntegrityCheckMethod {{ esp_encryption.hash }} -PfsGroup {{ esp_encryption.pfs }} -DHGroup {{ ike_encryption.dh_group }} -PassThru -Force