diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-29 18:47:42 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-07-29 18:48:10 +0200 |
commit | 65765fe95a34d81ad4a3aedb035936bbaf6a3f0e (patch) | |
tree | b8780d35c1dddb706ec60b299dd74603deae3690 /data/templates/ipsec | |
parent | 417b46fb11061615205038745695e84d48055979 (diff) | |
download | vyos-1x-65765fe95a34d81ad4a3aedb035936bbaf6a3f0e.tar.gz vyos-1x-65765fe95a34d81ad4a3aedb035936bbaf6a3f0e.zip |
ipsec: T1210: add op-mode command to print Windows connection profile
Diffstat (limited to 'data/templates/ipsec')
-rw-r--r-- | data/templates/ipsec/windows_profile.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/ipsec/windows_profile.tmpl b/data/templates/ipsec/windows_profile.tmpl new file mode 100644 index 000000000..8c26944be --- /dev/null +++ b/data/templates/ipsec/windows_profile.tmpl @@ -0,0 +1,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 None -DHGroup "Group{{ ike_encryption.dh_group }}" -PassThru -Force |