Tuesday, 21 May 2019

How can I prohibit the creation of a route in Windows XP upon connection to Cisco VPN?


Problem


I have several routes that are created when I connect to my company's VPN using Cisco VPN client. (It appears to be a bug in our VPN client that we're subjected to this in the first place: Allow Local LAN Access is ON but the client is ignoring the option.)


I have a virtual machine running on my system that I want to connect to while I'm on the VPN. I can do this reliably by deleting the route to the network of my VPN's Host-Only adapter created by the vpn client but I have to delete the route every time I connect to my VPN.


Question


How do I reliably prohibit either the deletion of these routes either at the time of connection, prohibit some of them from being created, or work around them?



Answer



Because I am using the Host-Only VM adapter with set IP addresses on both the host and guest I created a work around as follows:


Add a persistent route from the host to the VM using the following command:


route -p add 255.255.255.255


Because this is a more specific route than the 255.255.255.0 route that the VPN software creates, this route is used even when connected to the VPN.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...