...
Code Block |
---|
language | powershell |
---|
theme | Emacs |
---|
|
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 |
MSK1VPN (для доменных пк):
Code Block |
---|
language | powershell |
---|
theme | Emacs |
---|
|
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.80.1/32" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.192.0.0/24" -PassThru
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.192.3.0/24" -PassThr
Add-VpnConnectionRoute -ConnectionName "Smart VPN" -DestinationPrefix "10.220.10.0/23" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "loc" -DnsIPAddress "10.192.0.251", "10.192.0.252" -PassThru
Add-VpnConnectionTriggerDnsConfiguration -Name "Smart VPN" -DnsSuffix "smart.net" -DnsIPAddress "10.192.0.251", "10.192.0.252" -PassThru |
...
Связанные страницы
Content by Label |
---|
excludeCurrent | true |
---|
cql | label = "windows" |
---|
|