You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 27 Next »

Оглавление

Требования

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

Инструкция

1. Нажать сочетание клавиш   Win   +   R


2. В появившемся окне ввести  powershell   и нажать   ОК

3. Появится окно с синим фоном

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

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

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
#

5. После вставки команд, вывод должен быть похожий на скрин ниже

6. Можете закрыть окно. Возле часов нажмите на иконку сети. Она может быть в виде «компьютера» или в виде значка вайфая.
У Вас появится новое подключение   Smart   VPN . Нажмите подключиться.


7. Появится окно, куда нужно ввести ваш логин и пароль от удалёнки .
если ваш логин   smart \ username , то вводить нужно   username
После успешного ввода ВПН подключится, а введенные данные запомнятся




После настройки и подключения к VPN вы можете подключаться к серверам.

Инструкции по подключению к удаленным рабочим столам:

WIndows OS

Mac OS


 

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

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

# Основной 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:

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

Лахта VPN:

Add-VpnConnection -Name "Smart VPN Lakhta" -ServerAddress "spb1.smcgr.org" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN Lakhta" -DestinationPrefix "192.168.253.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN Lakhta" -DestinationPrefix "192.168.71.0/24" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN Lakhta" -DestinationPrefix "10.220.10.0/23" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN Lakhta" -DnsSuffix "loc" -DnsIPAddress 192.168.253.1
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN Lakhta" -DnsSuffix "smart.net" -DnsIPAddress 10.220.10.5


NIK VPN (Никольское):

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


PPTP (Москва):

Add-VpnConnection -Name "Smart VPN pptp" -ServerAddress "smcgr.org" -TunnelType "Pptp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -RememberCredential -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 (для доменных пк):

Add-VpnConnection -Name "Smart VPN" -ServerAddress "smcgr.org" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru -UseWinlogonCredential
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "192.168.254.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.192.3.251/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.192.3.252/32" -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 (для доменных пк):

Add-VpnConnection -Name "Smart VPN reserve" -ServerAddress "spb1.smcgr.org" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru -UseWinlogonCredential
Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "192.168.253.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "192.168.200.111/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "192.168.71.245/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "192.168.0.240/28" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "10.192.3.251/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "10.192.3.252/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "10.220.10.0/25" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "10.192.0.0/22" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN reserve" -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 reserve" -DnsSuffix "loc" -DnsIPAddress "10.192.3.251", "10.192.3.252", "192.168.71.245", "192.168.0.250", "192.168.200.111" -PassThru

MSK1 VPN:

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
 

MSK1 VPN (для доменных пк):

Add-VpnConnection -Name "Smart VPN" -ServerAddress "msk1.smart-group.ru" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru -UseWinlogonCredential
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


Связанные страницы

  • No labels