...
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 |
...
Связанные страницы
Content by Label | ||||
---|---|---|---|---|
|