Skip to content

Commit 19e6f76

Browse files
committed
Correcting VPN Connection Route to include entire public VIP range
1 parent e27dd7a commit 19e6f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Connect/AzureStack.Connect.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Add-AzsVpnConnection {
3737
$connection = Add-VpnConnection -Name $ConnectionName -ServerAddress $ServerAddress -TunnelType L2tp -EncryptionLevel Required -AuthenticationMethod MSChapv2 -L2tpPsk $PlainPassword -Force -RememberCredential -PassThru -SplitTunneling
3838

3939
Write-Verbose "Adding routes to Azure Stack VPN connection named $ConnectionName" -Verbose
40-
Add-VpnConnectionRoute -ConnectionName $ConnectionName -DestinationPrefix 192.168.102.0/27 -RouteMetric 2 -PassThru | Out-Null
40+
Add-VpnConnectionRoute -ConnectionName $ConnectionName -DestinationPrefix 192.168.102.0/24 -RouteMetric 2 -PassThru | Out-Null
4141
Add-VpnConnectionRoute -ConnectionName $ConnectionName -DestinationPrefix 192.168.105.0/27 -RouteMetric 2 -PassThru | Out-Null
4242

4343
return $connection

0 commit comments

Comments
 (0)