...
4. Скопировать и вставить в это окно Команды(Альтернативные команды для Лахты и Никольского в конце статьи):
Code Block
language powershell theme Emacs # Основной VPN Add-VpnConnection -Name "Smart VPN pptp" -ServerAddress "smcgr.org" -TunnelType "L2tpPptp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123"RememberCredential -Force -RememberCredential -PassThru PassThru Add-VpnConnectionRoute -ConnectionName "Smart VPN pptp" -DestinationPrefix "192.168.254.1/32" -PassThru Add-VpnConnectionRoute -ConnectionName "Smart VPN pptp" -DestinationPrefix "10.220.10.0/23" -PassThru Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN pptp" -DnsSuffix "loc" -DnsIPAddress 192.168.254.1
...
Альтернативные команды для ввода
Основной VPN
Code Block | ||||
---|---|---|---|---|
| ||||
# Основной VPN
Add-VpnConnection -Name "Smart VPN" -ServerAddress "smcgr.org" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "192.168.254.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.220.10.0/23" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "loc" -DnsIPAddress 192.168.254.1 |
Резервный VPN:
Code Block | ||||
---|---|---|---|---|
| ||||
Add-VpnConnection -Name "Smart VPN reserve" -ServerAddress "spb1.smcgr.org" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "192.168.253.1/32" -PassThru Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "10.220.10.0/23" -PassThru Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN reserve" -DnsSuffix "loc" -DnsIPAddress 192.168.253.1 |
...