^^^ The way you just said that makes me think you might actually be taking this clown seriously...
Here's a free lesson...
This is the code i added or changed:
Code:
echo -Press "1" to manually set VPN IP
echo -Press "2" to Enable Kill Switch (IP "%defgw%")
echo -Press "3" to Disable Kill Switch (IP "%defgw%")
Code:
:option1
echo
set /p vpn=enter your server IP:
echo.
echo VPN IP configured
timeout 4
goto start
Code:
:option2
route delete 0.0.0.0 %defgw%
route add %vpn% MASK 255.255.255.255 %defgw%
echo Default gateway "%defgw%" removed
timeout 4
goto start
Code:
:option3
route delete %vpn%
route add 0.0.0.0 mask 0.0.0.0 %defgw%
echo Defaulte gateway "%defgw%" restored
timeout 4
goto start
default gateway (router) = 192.168.0.1
ip address to the entire internet = 0.0.0.0
ip address to Google DNS = 8.8.8.8
%dfgw% = what ever default gateway IP the code that LiquidVPN wrote finds
%vpn% = what ever you type in for a VPN IP from the code I added.
The
Code:
set /p vpn=enter your server IP:
I added makes
= what ever you type in for the IP address of the server.
The
Code:
route delete 0.0.0.0 %defgw%
LiquidVPN wrote deletes the default route... your home network to the entire internet... that was the only original code to delete/add routing... but it wouldn't work if the VPN server or your router was set up to push DNS through the DHCP request.. And would have made it impossible to reconnect to the VPN if it dropped...
If the VPN server or your router was set up to push DNS... It would change the defalut route from
Code:
0.0.0.0 --- 192.168.0.1
to
Code:
8.8.8.8 --- 192.168.0.1
leaving no default gateway 0.0.0.0 --- 192.168.0.1 to delete.. It did NOTHING.... And if you were to delete it before connecting to the VPN. You wouldn't be able to reach the internet to connect the VPN server.
I added a static route to the VPN server.
Code:
route add %vpn% MASK 255.255.255.255 %defgw%
That way you are able to delete the original default route 0.0.0.0 --- 192.168.0.1
Code:
route delete 0.0.0.0 %defgw%
(the route between your default gateway, and the entire internet). BEFORE the VPN server connects and changes it... Which is why you have to (press "2") before connecting to the VPN or it will not work...
The VPN is still able to connect through the static route I set from the default gateway to the VPN server...
Code:
route add %vpn% MASK 255.255.255.255 %defgw%
As a matter of fact, its the only place it can go... Which is why its called a VPN Kill Switch... Since it kills the route to the entire internet except for the route to the VPN server...
I dont know WTF LiquidVPN was thinking only deleting the default route.. What they put together was the equivalent of fixing something with Duct Tape
I just got rid of one hater = Empirestate
and I pick up a new one
all your doing is giving me more opportunity to flex on you...