Versions Compared

Key

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

Оглавление

Table of Contents
excludeОглавление

Требования

  • Компьютер или ноутбук с установленной операционной системой Windows 8, 10, 11
  • Интернет

...

4. Скопировать и вставить в это окно Команды:

Дополнительные блоки команд для Лахты, Никольского, итд в конце статьи

Code Block
languagepowershell
themeEmacs
Get-Vpnconnection | where {($_.name -like "Smart VPN")} | Remove-VpnConnection -Force
Add-VpnConnection -Name "Smart VPN" -ServerAddress "msk1.smart-group.ru" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.192.81.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "192.168.200.111/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "192.168.71.245/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "192.168.0.240/28" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.220.10.0/25" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.192.0.0/22" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "smart.net" -DnsIPAddress "10.192.3.251", "10.192.3.252", "192.168.71.245", "192.168.0.250", "192.168.200.111" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "loc" -DnsIPAddress "10.192.3.251", "10.192.3.252", "192.168.71.245", "192.168.0.250", "192.168.200.111" -PassThru
#


...

Альтернативные команды для ввода

Основной VPN (повтор из блока 4)VPN 

Code Block
languagepowershell
themeEmacs
# Основной VPN
Get-Vpnconnection | where {($_.name -like "*smart*")} | Remove-VpnConnection -Force
Add-VpnConnection -Name "Smart VPN" -ServerAddress "smcgrmsk1.org" -smart-group.ru" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.192.168.25481.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10192.220168.10200.0111/2332" -PassThru
Add-VpnConnectionTriggerDnsConfigurationVpnConnectionRoute -NameConnectionName "Smart VPN" -DestinationPrefix "192.168.71.245/32" -PassThru
Add-VpnConnectionRoute -DnsSuffixConnectionName "locSmart VPN" -DnsIPAddressDestinationPrefix "192.168.254.10.240/28" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.220.10.0/25" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.192.0.0/22" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "smart.net" -DnsIPAddress "10.192.3.251", "10.192.3.252", "192.168.71.245", "192.168.0.250", "192.168.200.111" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "loc" -DnsIPAddress "10.192.3.251", "10.192.3.252", "192.168.71.245", "192.168.0.250", "192.168.200.111" -PassThru
#



Резервный VPN:

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

...