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 "smcgr.orgmsk1.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.1

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

Image Removed

...

71.249/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. После вставки команд, вывод должен быть похожий на скрин ниже

Image Added

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

Image Added


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


Image Added


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

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

WIndows OS

Mac OS


 

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

Основной VPN 

Code Block
languagepowershell
themeEmacs
# Основной VPN
Get-Vpnconnection | where {($_.name -like "*smart*")} | 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:

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


Лахта VPN:

Code Block
languagepowershell
themeEmacs
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 (Никольское):

...

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

...

Code Block
languagepowershell
themeEmacs
# Основной 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 "drom`$123" -Force -RememberCredentialVPN" -DestinationPrefix "192.168.252.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "19210.168220.25410.10/3223" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.220230.1050.0/2324" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "loc" -DnsIPAddress 192.168.254252.1

...


PPTP (Москва):

Code Block
languagepowershell
themeEmacs
Add-VpnConnection -Name "Smart VPN reservepptp" -ServerAddress "spb1.smcgr.org" -TunnelType "L2tpPptp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThruPassThru 
Add-VpnConnectionRoute -ConnectionName "Smart VPN reservepptp" -DestinationPrefix "192.168.253254.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN reservepptp" -DestinationPrefix "10.220.10.0/23" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN reservepptp" -DnsSuffix "loc" -DnsIPAddress 192.168.253254.1

...


Основной VPN (для доменных пк):

Code Block
languagepowershell
themeEmacs
Add-VpnConnection -Name "Smart VPN Lakhta" -ServerAddress "spb1.smcgr.org" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru -UseWinlogonCredential
Add-VpnConnectionRoute -ConnectionName "Smart VPN Lakhta" -DestinationPrefix "192.168.253254.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN Lakhta" -DestinationPrefix "192.168.200.111/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "192.168.71.0245/2432" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN Lakhta" -DestinationPrefix "10192.220168.100.0240/2328" -PassThru
Add-VpnConnectionTriggerDnsConfigurationVpnConnectionRoute -NameConnectionName "Smart VPN Lakhta" -DnsSuffixDestinationPrefix "loc10.192.3.251/32" -DnsIPAddress 192.168.253.1PassThru
Add-VpnConnectionTriggerDnsConfigurationVpnConnectionRoute -NameConnectionName "Smart VPN Lakhta" -DnsSuffix "smart.net" -DnsIPAddressDestinationPrefix "10.220192.10.5

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

Code Block
languagepowershell
themeEmacs
Add-VpnConnection -Name3.252/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -ServerAddressDestinationPrefix "nik10.220.smcgr.org" -TunnelType "L2tp10.0/25" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -EncryptionLevelDestinationPrefix "Required10.192.0.0/22" -AuthenticationMethod MSChapv2 -SplitTunnelingPassThru
Add-VpnConnectionTriggerDnsConfiguration -L2tpPskName "drom`$123Smart VPN" -Force -RememberCredential   -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefixDnsSuffix "smart.net" -DnsIPAddress "10.192.3.251", "10.192.3.252", "192.168.25271.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.220.10.0/23245", "192.168.0.250", "192.168.200.111" -PassThru
Add-VpnConnectionRouteVpnConnectionTriggerDnsConfiguration -ConnectionNameName "Smart VPN" -DestinationPrefixDnsSuffix "loc" -DnsIPAddress "10.230192.503.0/24251" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "loc" -DnsIPAddress , "10.192.3.252", "192.168.71.245", "192.168.0.250", "192.168.252.1

...

200.111" -PassThru


Резервный VPN (для доменных пк):

Code Block
languagepowershell
themeEmacs
Add-VpnConnection -Name "Smart VPN pptpreserve" -ServerAddress "spb1.smcgr.org" -TunnelType "PptpL2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredentialRememberCredential -PassThru -PassThru UseWinlogonCredential
Add-VpnConnectionRoute -ConnectionName "Smart VPN pptpreserve" -DestinationPrefix "192.168.254253.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN pptpreserve" -DestinationPrefix "10192.220168.10200.0111/2332" -PassThru
Add-VpnConnectionTriggerDnsConfigurationVpnConnectionRoute -NameConnectionName "Smart VPN pptpreserve" -DnsSuffixDestinationPrefix "loc" -DnsIPAddress 192.168.254.1

Основной VPN (для доменных пк):

Code Block
languagepowershell
themeEmacs
Add-VpnConnection -Name71.245/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -ServerAddressDestinationPrefix "smcgr.org" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru -UseWinlogonCredential192.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 "19210.168220.25410.10/3225" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "10.192.1680.200.1110/3222" -PassThru
Add-VpnConnectionRouteVpnConnectionTriggerDnsConfiguration -ConnectionNameName "Smart VPN reserve" -DnsSuffix "smart.net" -DestinationPrefixDnsIPAddress "10.192.168.71.245/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix.3.251", "10.192.3.252", "192.168.71.245", "192.168.0.250/32", "192.168.200.111" -PassThru
Add-VpnConnectionRouteVpnConnectionTriggerDnsConfiguration -ConnectionNameName "Smart VPN reserve" -DnsSuffix "loc" -DestinationPrefixDnsIPAddress "10.192.3.251/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix", "10.192.3.252", "192.168.71.245", "192.168.0.250", "192.168.200.111" -PassThru


MSK1 VPN:

Code Block
languagepowershell
themeEmacs
Add-VpnConnection/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" -DnsSuffixServerAddress "smart.net" -DnsIPAddress "10.192.3.251", "10.192.3.252", "192.168.71.245", "192.168.0.250", "192.168.200.111"msk1.smart-group.ru" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru
Add-VpnConnectionTriggerDnsConfigurationVpnConnectionRoute -NameConnectionName "Smart VPN" -DnsSuffix "loc" -DnsIPAddressDestinationPrefix "10.192.381.2511/32", "10.192.3.252", "192.168.71.245", "192.168.0.250", -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "192.168.200.111/32" -PassThru

Резервный VPN (для доменных пк):

Code Block
languagepowershell
themeEmacs

Add-VpnConnectionVpnConnectionRoute -NameConnectionName "Smart VPN" -ServerAddressDestinationPrefix "smcgr.org" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru -UseWinlogonCredential192.168.71.245/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "192.168.0.240/28" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "19210.168220.25410.10/3225" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.192.168.2000.1110/3222" -PassThru
Add-VpnConnectionRouteVpnConnectionTriggerDnsConfiguration -ConnectionNameName "Smart VPN" -DnsSuffix "smart.net" -DestinationPrefixDnsIPAddress "10.192.168.71.245/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix.3.251", "10.192.3.252", "192.168.71.245", "192.168.0.250", "192.168.0200.250/32111" -PassThru
Add-VpnConnectionRouteVpnConnectionTriggerDnsConfiguration -ConnectionNameName "Smart VPN" -DnsSuffix "loc" -DestinationPrefixDnsIPAddress "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" ", "192.168.71.245", "192.168.0.250", "192.168.200.111" -PassThru
 


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

Code Block
languagepowershell
themeEmacs
Add-VpnConnection-DestinationPrefix "10.192.0.0/22" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffixServerAddress "msk1.smart-group.net" -DnsIPAddress 192.168.0.250
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "loc" -DnsIPAddress 192.168.254.1 -PassThru

...

Code Block
languagepowershell
themeEmacs
Add-VpnConnection -Nameru" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential -PassThru -UseWinlogonCredential
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -ServerAddressDestinationPrefix "msk1.smart-group.ru" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -Force -RememberCredential10.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 "10192.192168.800.1240/3228" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.192220.010.0/2425" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.192.20.0/2422" -PassThru
Add-VpnConnectionRouteVpnConnectionTriggerDnsConfiguration -ConnectionNameName "Smart VPN VPN" -DnsSuffix "smart.net" -DestinationPrefixDnsIPAddress "10.192.3.0/24251" -PassThr
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.220.10.0/23, "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" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "smart.net" -DnsIPAddress "10.192.3.251, "192.168.71.245", "192.168.0.250", "10192.192168.3200.252111" -PassThru

...

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

Content by Label
excludeCurrenttrue
cqllabel = "windows"