Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #194515

Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files

From Maria Sophia <mariasophia@comprehension.com>
Newsgroups alt.comp.os.windows-10, alt.comp.os.windows-11, alt.comp.microsoft.windows
Subject Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files
Date 2026-07-16 20:01 -0400
Organization BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID <113brcb$fc1$1@nnrp.usenet.blueworldhosting.com> (permalink)
References <113bpm4$1s4r$1@nnrp.usenet.blueworldhosting.com> <113bqj6$1q6g$1@nnrp.usenet.blueworldhosting.com> <113bqui$1s6n$1@nnrp.usenet.blueworldhosting.com> <113br54$7je$1@nnrp.usenet.blueworldhosting.com>

Cross-posted to 3 groups.

Show all headers | View raw


For reference, here is the LiquidVPN killswitch that started this endeavor.                                                                                                                                  Regards,                                                                                                   bill

  @echo off
  :: LiquidVPN-Kill-Switch.bat 20210209
  :: GetAdmin
  :-------------------------------------
  :: Verify permissions
  >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
  
  :: On Error No Admin
  if '%errorlevel%' NEQ '0' (
      echo Getting administrative privileges...
      goto DoUAC
  ) else ( goto getAdmin )
  
  :DoUAC
      echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
      set params = %*:"=""
      echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
  
      "%temp%\getadmin.vbs"
      del "%temp%\getadmin.vbs"
      exit /B
  
  :getAdmin
      pushd "%CD%"
      CD /D "%~dp0"
  :--------------------------------------
  
  
  @echo off
  :: CHANGE DEFAULT GW IP BELOW
  set defgw=192.168.1.1
  
  
  @For /f "tokens=3" %%1 in (
     'route.exe print 0.0.0.0 ^|findstr "\<0.0.0.0.*0.0.0.0\>"') Do set defgw=%%1
  cls
  :start
  cls
  echo.
  color 0C
  echo LiquidVPN's Simple VPN Kill Switch, ver. 0.1 - by LiquidVPN
  
  echo.
  echo.
  echo Your routers gateway is probably "%defgw%"
  echo -if nothing appears or its incorrect, add it manually (Press '3')
  echo.
  echo USAGE: 
  echo.
  echo -Press "1" to Enable Kill Switch (IP "%defgw%")
  echo -Press "2" to Disable Kill Switch (IP "%defgw%")
  echo -Press "3" to manually set default gateway if its not detected above.
  echo -Press "h" for Kill Switch Help
  echo -Press "x" to exit Kill Switch.
  echo.
  set /p option=Your option: 
  if '%option%'=='1' goto :option1
  if '%option%'=='2' goto :option2
  if '%option%'=='3' goto :option3
  if '%option%'=='x' goto :exit
  if '%option%'=='h' goto :help
  echo Insert 1, 2, x or h
  timeout 3
  goto start
  :option1
  route delete 0.0.0.0 %defgw%
  echo Default gateway "%defgw%" removed
  timeout 3
  goto start
  :option2
  route add 0.0.0.0 mask 0.0.0.0 %defgw%
  echo Defaulte gateway "%defgw%" restored
  timeout 3
  goto start
  :option3
  echo
  set /p defgw=your gw IP (e.g. 192.168.0.1): 
  goto start
  :help
  cls
  echo.
  echo. 
  echo ======================
  echo This simple kill switch removes your default gateway
  echo and blocks traffic from reaching the internet when
  echo your VPN gets disconnected.
  echo. 
  echo Here is how you use it.
  echo.
  echo Step 1: Connect to LiquidVPN
  echo Step 2: Enable LiquidVPN's Kill Switch (option "1")
  echo.
  echo Now Any internet traffic will pass through LiquidVPN only.
  echo. 
  echo - If your VPN gets disconnected so will your internet.
  echo - Disable the Kill Switch and reconnect.
  echo.
  echo.
  echo When you disconnect from LiquidVPN follow these steps
  echo to reconnect or to browse the internet normally.
  echo.
  echo Step 1: Close any software that may leak your real IP
  echo Step 2: Disable the LiquidVPN kill switch (Option "2")
  echo Step 3: Reconnect to LiquidVPN and enable the kill switch (Option "1")
  echo.
  timeout /T -1
  goto start
  :exit
  exit
  :: end of LiquidVPN-Kill-Switch.bat 20210209

-- 
Just one person on Usenet paying it forward so all benefit daily.

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-16 19:32 -0400
  Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-17 07:35 +0800
    Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-17 01:05 -0400
    Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files "Carlos E. R." <robin_listas@es.invalid> - 2026-07-17 14:43 +0200
      Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-17 10:35 -0400
  Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-16 19:47 -0400
    Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-16 19:53 -0400
      Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-16 19:57 -0400
        Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-16 20:01 -0400
        Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Andy Burns <usenet@andyburns.uk> - 2026-07-17 08:23 +0100
          Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-17 10:36 -0400
  Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Killer Punch <invalid@invalid.invalid> - 2026-07-17 01:16 +0100
    Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-17 01:34 -0400
  Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-17 14:17 -0400
    Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-17 14:23 -0400
  Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-18 13:08 -0400
    Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-18 17:10 -0400
      Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files croy <croy@spam.invalid.net> - 2026-07-19 06:39 -0700
        Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Paul <nospam@needed.invalid> - 2026-07-19 10:42 -0400
          Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-19 22:29 -0400
            Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Hank Rogers <Hank@nospam.invalid> - 2026-07-19 21:41 -0500
              Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-24 10:59 -0700
            Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Paul <nospam@needed.invalid> - 2026-07-19 22:49 -0400
              Re: PSA: Simple Wi-Fi gateway killswitch that works with OpenVPN config files Maria Sophia <mariasophia@comprehension.com> - 2026-07-20 00:28 -0400

csiph-web