...
1. Нажать сочетание клавиш Win + R
2. В появившемся окне ввести ввести powershell и нажать ОК
3. Появится окно с синим фоном
4. Скопировать и вставить в это окно Команды(Альтернативные команды :
Дополнительные блоки команд для Лахты и , Никольского, итд в конце статьи):
Code Block
language powershell theme Emacs Add-VpnConnection -Name "Smart VPN pptp" -ServerAddress "smcgr.org" -TunnelType "PptpL2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -SplitTunneling -L2tpPsk "drom`$123" -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 (повтор из блока 4)
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 |
...
Code Block | ||||
---|---|---|---|---|
| ||||
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 (alterдля доменных пк):
Code Block | ||||
---|---|---|---|---|
| ||||
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 "10.220.10.0/23" -PassThru Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "192.168.0.250/32" -PassThru Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "smart.net" -DnsIPAddress 192.168.0.250 Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "loc" -DnsIPAddress 192.168.254.1 -PassThru |
Резервный VPN (alterдля доменных пк):
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 -UseWinlogonCredential Add-VpnConnectionRoute -ConnectionName "Smart VPN reserve" -DestinationPrefix "192.168.200.111/32" -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 "smart.net" -DnsIPAddress 192.168.200.111 Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN reserve" -DnsSuffix "loc" -DnsIPAddress 192.168.253.1 -PassThru |
...