Loss of default Route when turning on VPN
When I use my FortiClient VPN to connect remotely, Windows loses my local internet connection.
I have used an elevated Command Prompt to try and adjust the default route to remedy.
Any advice ?
Here is the process I am using:
Open a cmd window with administrator privileges. You need them to add/delete routes later on.
before you connect the vpn execute a “route print” in there and look for the Target “0.0.0.0” – this is your default route. Note down the ip in the column “gateway” there.
Connect the vpn and then execute “route print” in the cmd again. You should notice that the gateway (and interface) for the default route has changed. Als note down that gateway ip.
Then do a “route delete 0.0.0.0” (I think “route delete default” might do as well but not sure).
Then do a “route add 0.0.0.0 MASK 0.0.0.0 <gateway ip you noted down before connecting vpn>”
At this point you should regain internet connectivity again.
To still be able to reach to your company servers you might have to analogously add a static route to the company subnet with correct subnet mask and the gateway you noted after connecting the vpn.
You don’t need to enter interface or metric here.
When I use my FortiClient VPN to connect remotely, Windows loses my local internet connection.I have used an elevated Command Prompt to try and adjust the default route to remedy.Any advice ? Here is the process I am using:Open a cmd window with administrator privileges. You need them to add/delete routes later on.before you connect the vpn execute a “route print” in there and look for the Target “0.0.0.0” – this is your default route. Note down the ip in the column “gateway” there.Connect the vpn and then execute “route print” in the cmd again. You should notice that the gateway (and interface) for the default route has changed. Als note down that gateway ip.Then do a “route delete 0.0.0.0” (I think “route delete default” might do as well but not sure).Then do a “route add 0.0.0.0 MASK 0.0.0.0 <gateway ip you noted down before connecting vpn>”At this point you should regain internet connectivity again.To still be able to reach to your company servers you might have to analogously add a static route to the company subnet with correct subnet mask and the gateway you noted after connecting the vpn.You don’t need to enter interface or metric here. Read More