-
Notifications
You must be signed in to change notification settings - Fork 0
/
tokyo.ps1
45 lines (41 loc) · 2.87 KB
/
tokyo.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
$server="52.198.186.250"
$name="AWS-LS-Tokyo"
certutil -f -importpfx ".\cert.p12" NoExport
# Create VPN connection (replace server address with your own value)
powershell -command "Add-VpnConnection -ServerAddress 52.198.186.250 -Name AWS-LS-Tokyo -TunnelType IKEv2 -AuthenticationMethod MachineCertificate -EncryptionLevel Required -PassThru"
# Set IPsec configuration
powershell -command "Set-VpnConnectionIPsecConfiguration -ConnectionName AWS-LS-Tokyo -AuthenticationTransformConstants GCMAES128 -CipherTransformConstants GCMAES128 -EncryptionMethod AES256 -IntegrityCheckMethod SHA256 -PfsGroup None -DHGroup Group14 -PassThru -Force"
# REG ADD HKLM\SYSTEM\CurrentControlSet\Services\RasMan\Parameters /v NegotiateDH2048_AES256 /t REG_DWORD /d 0x1 /f
# SIG # Begin signature block
# MIIFxwYJKoZIhvcNAQcCoIIFuDCCBbQCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUOhx5GfTtPI6r5uOLwkkhp7SF
# YsmgggNEMIIDQDCCAiigAwIBAgIQZ3l3Hc49SZpLpqlhZJtuYzANBgkqhkiG9w0B
# AQsFADA4MQ4wDAYDVQQDDAVTdHVmZjEmMCQGCSqGSIb3DQEJARYXc2lnbmVkQHNz
# c3BhY2UuZGRucy5uZXQwHhcNMjEwODEwMTMwNjM1WhcNMzMxMjMxMTUwMDAwWjA4
# MQ4wDAYDVQQDDAVTdHVmZjEmMCQGCSqGSIb3DQEJARYXc2lnbmVkQHNzc3BhY2Uu
# ZGRucy5uZXQwgg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