...
Code Block | ||||
---|---|---|---|---|
| ||||
Add-VpnConnection -Name "Smart VPN" -ServerAddress "nik.smcgr.org" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "192.168.252.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.220.10.0/23" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix " 10.230.50.0/24" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "loc" -DnsIPAddress 192.168.252.1 |
...