Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepowershell
themeEmacs
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

...