Post
by ray5450 » Mon Apr 17, 2023 11:40 pm
Additional observations, and conclusions:
After deleting the default gateway with batch command (route delete 0.0.0.0 %dg%), I have verified that it really is deleted from the route table, as expected. However, I have found that after some hours of VPN connection, at some unknown point/time, that original default entry is somehow re-added. This is why it results in the "object already exists" error when I add it back--see above post.
I have verified that the route table, before making any changes or starting VPN, is exactly identical to the route table after disconnecting and deleting the VPN server (default gateway already there, somehow)....but yet, after trying to reconnect without VPN, there is no internet connection.
I have found there there is still no internet connection if I change the MAC address to one that I have used before. In order to connect, I must create a new MAC address each time.
Does Windows keep previous MAC addresses in some storage that I can clear, and why would I need to change this, anyway?--it is not mentioned in any suggestions in this thread. Otherwise, I would conclude that this "Kill switch" does not work at all.
I am requesting help with this.
(I have saved a copy of the route table at each step, if it would help.)
Edit: After thinking about this some more, I strongly suspect that this mysteriously re-added default gateway is the problem. Is there a way to stop this from happening? If so, I would try it.