VPN Kill Switch

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
elcangri
Posts: 6
Joined: Mon May 30, 2022 8:06 am

VPN Kill Switch

Post by elcangri » Sun Jul 31, 2022 5:57 am

Hi, all!

Since there is no built-in Kill Switch (as of today) option in the SoftEther, I have been desperately looking all over the internet to find a working solution. No results so far.

Then I noticed, once you connect and disable the DNS configuration, make it a static 0.0.0.0, once you disconnect or drop from SoftEther, you simply cannot connect to the web. If you reconnect back the SoftEther Server you can again browse the web.

Am I mistaken or is this the same as what cedar meant, when he wrote: "Simply, you should remove the default gateway for ISP." in connection to the same topic:
cedar wrote:
Fri Apr 13, 2018 7:57 am
Simply, you should remove the default gateway for ISP.

Than you.

solo
Posts: 417
Joined: Sun Feb 14, 2021 10:31 am

Re: VPN Kill Switch

Post by solo » Mon Aug 08, 2022 1:08 pm

Yes, the same. Use these commands in your script to enable/disable VPN kill switch:

set /p dg=Enter default gateway: || set dg=192.168.x.x
route delete 0.0.0.0 %dg%
route add 0.0.0.0 mask 0.0.0.0 %dg%

Post Reply