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


Groups > alt.os.linux > #49321

Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today

From Bob J Jones <bobjjones@startMail.com>
Newsgroups alt.os.linux
Subject Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today
Date 2018-05-29 00:25 +0000
Organization A patient noiseless Spider
Message-ID <pei6m1$1442$1@gioia.aioe.org> (permalink)
References <ped5e9$oke$1@gioia.aioe.org> <peffai$dvn$1@gioia.aioe.org> <fn1244Faf91U1@mid.individual.net> <slrnpgnjbe.3q1.dan@xps-linux.djph.net>

Show all headers | View raw


In <news:slrnpgnjbe.3q1.dan@xps-linux.djph.net>, Dan Purgert <dan@djph.net> wrote:

> SOME applications aren't merely clients (skype, teamviewer come to
> mind), and due to the way they bind to addresses, will not update the
> remote end until a disconnect / reconnect event.
> 
> Other applications (e.g. firefox, thunderbird) are somewhat more sane
> but it's considerably easier just throwing everything into the "kill it
> off" bucket to be sure.

While Marek's scripts killed apps when it noticed the network going down,
and they popped up a visual warning (we never could get the generic bell 
to work for everyone), I think the logic of this generic script is better 
for when you just want the network to go down.
https://www.liquidvpn.com/vpn-kill-switches/

All that script does is remove or add back the router gateway 
(commonly set to a default of 192.168.0.1 or 192.168.1.1) manually, 
when you want it to be set.

So, for example, if you're installing a program or running a program 
that you don't want to phone home, you just press 
(1) in that script which removes the router gateway from the routing table.

If you're connected to a VPN, you do the same, but in the case of VPN, 
you connect to the VPN first, and then remove the router gateway from 
the routing table.

This seems to be an elegant solution where, once the VPN drops, 
there's nowhere for the packets to go. So while it'a manual, 
it's instantaneous and, one can probably script it to start with the VPN. 

Here's a snippet of the elegant solution located in this file:
FILE: LiquidVPN-Kill-Switch.bat
LOCATION: https://www.liquidvpn.com/billing/dl.php?type=d&id=49

LOGIC:
Press (1) to disable the gateway,
Press (2) to re-enable the gateway, or 
Press (3) to set the gateway.

Here is a snippet of that code.
   set defgw=192.168.0.1
   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

Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Bob J Jones <bobjjones@startMail.com> - 2018-05-27 02:33 +0000
  Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Snit <usenet@gallopinginsanity.com> - 2018-05-26 20:00 -0700
    Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today G B <gb@gb.com> - 2018-05-26 23:15 -0400
      Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Snit <usenet@gallopinginsanity.com> - 2018-05-26 20:24 -0700
        Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Melzzzzz <Melzzzzz@zzzzz.com> - 2018-05-27 03:41 +0000
          Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Snit <usenet@gallopinginsanity.com> - 2018-05-26 20:56 -0700
            Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Melzzzzz <Melzzzzz@zzzzz.com> - 2018-05-27 04:23 +0000
              Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Snit <usenet@gallopinginsanity.com> - 2018-05-27 09:12 -0700
  Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Aragorn <thorongil@telenet.be> - 2018-05-27 13:34 +0200
    Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today "Carlos E.R." <robin_listas@es.invalid> - 2018-05-27 13:43 +0200
    Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Steve Carroll <frelwizzen@gmail.com> - 2018-05-27 04:44 -0700
    Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Snit <usenet@gallopinginsanity.com> - 2018-05-27 06:56 -0700
      Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Jamson Yang <JamsonYang@invoice.com> - 2018-05-27 16:41 +0000
        Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today G B <gb@gb.com> - 2018-05-27 12:59 -0400
        Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Aragorn <thorongil@telenet.be> - 2018-05-27 19:05 +0200
          Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today William Poaster <wp@dev.null> - 2018-05-28 11:22 +0100
    Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Bob J Jones <bobjjones@startMail.com> - 2018-05-27 16:34 +0000
      Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Steve Carroll <frelwizzen@gmail.com> - 2018-05-27 10:13 -0700
    Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Dan C <youmustbejoking@lan.invalid> - 2018-05-27 16:54 +0000
  Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Bob J Jones <bobjjones@startMail.com> - 2018-05-27 23:34 +0000
    Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Snit <usenet@gallopinginsanity.com> - 2018-05-27 17:51 -0700
      Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Dan Purgert <dan@djph.net> - 2018-05-28 09:35 +0000
        Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Steve Carroll <frelwizzen@gmail.com> - 2018-05-28 03:33 -0700
        Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Steve Carroll <frelwizzen@gmail.com> - 2018-05-28 07:13 -0700
        Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Snit <usenet@gallopinginsanity.com> - 2018-05-28 09:31 -0700
          Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Fuck You Snit <frelwizzen@gmail.com> - 2018-05-30 18:46 -0700
            Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Fuck You Snit <frelwizzen@gmail.com> - 2018-05-31 06:46 -0700
          Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Fuck You Snit <frelwizzen@gmail.com> - 2018-05-30 21:55 -0700
        Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Bob J Jones <bobjjones@startMail.com> - 2018-05-29 00:25 +0000
          Re: Marek Novotny scripts for VPN drop protection discussion on the Windows 10 newsgroup today Fuck You Snit <frelwizzen@gmail.com> - 2018-05-31 05:28 -0700

csiph-web