How To Block Internet Traffic If VPN Fails On Raspbian?

Thread: How To Block Internet Traffic If VPN Fails On Raspbian?

  1. Gunnzie's Avatar

    Gunnzie said:

    Question How To Block Internet Traffic If VPN Fails On Raspbian?

    I am considering using a Raspberry Pi 2 as a dedicated Torrent device. I want to use this with a VPN perhaps with OpenVPN but I don't much about Linux so I'm not sure just yet how you set this up. Is there a way of setting up Raspbian so the network connection only works while the VPN is active? i.e. if the VPN connection fails, the network/internet connection is disabled.
     
  2. Nathz29's Avatar

    Nathz29 said:

    Default Re: How To Block Internet Traffic If VPN Fails On Raspbian?

    Look at private internet access the program used to provide the VPN connection has a kill wan option if the VPN is not active, I use it on a Linux box used for downloading works well.
     
  3. Gunnzie's Avatar

    Gunnzie said:

    Default Re: How To Block Internet Traffic If VPN Fails On Raspbian?

    Thanks mate. I thought with PIA it was only the Windows and Mac applications that had built in kill switch. What is the name of the Linux application you are using?
     
  4. Lou_smorals's Avatar

    Lou_smorals said:

    Default Re: How To Block Internet Traffic If VPN Fails On Raspbian?

    Hi
    I use IPvanish and I cannot fault them tbh I they have apps for most O/S and it doesnt effect anything else on my network.
    maybe this will help?
    [Only registered and activated users can see links. ]
    Dear Lord, please grant me the ability to punch people in the face over Standard TCP/IP
     
  5. Gunnzie's Avatar

    Gunnzie said:

    Default Re: How To Block Internet Traffic If VPN Fails On Raspbian?

    Thanks. I don't see anything in the link about installing a kill switch though.
     
  6. Lou_smorals's Avatar

    Lou_smorals said:

    Default Re: How To Block Internet Traffic If VPN Fails On Raspbian?

    Hi
    ooopsie
    [Only registered and activated users can see links. ]
    Dear Lord, please grant me the ability to punch people in the face over Standard TCP/IP
     
  7. Gunnzie's Avatar

    Gunnzie said:

    Default Re: How To Block Internet Traffic If VPN Fails On Raspbian?

    That's excellent. Much appreciated.
     
  8. blacksheep's Avatar

    blacksheep said:

    Default Re: How To Block Internet Traffic If VPN Fails On Raspbian?

    Unless I'm missing something surely if you configure the VPN as your only network access method then if it fails you won't connect?
     
  9. Gunnzie's Avatar

    Gunnzie said:

    Default Re: How To Block Internet Traffic If VPN Fails On Raspbian?

    On my windows machine I run an app whenever I want to use the VPN. When I disconnect it goes back to using my ip.

    I know very little about Linux but assumed it works the same way. If there is a way of setting it up so the network adapter only ever uses the VPN then I'd love to know how to do it as it would save me a lot of hassle. I get my pi today so can start looking into this myself.
     
  10. blacksheep's Avatar

    blacksheep said:

    Default Re: How To Block Internet Traffic If VPN Fails On Raspbian?

    Not 100% off the top of my head but iptables should do this - any outbound traffic not going to the VPN gets rejected.
     
  11. Lou_smorals's Avatar

    Lou_smorals said:

    Default Re: How To Block Internet Traffic If VPN Fails On Raspbian?

    Hi m8
    maybe this help as free for six months
    How to get it all streaming nicely, with protection and anonymity, access to it all - GRATIS for 6 months and the cheaply!!!! Tested!!!

    [Only registered and activated users can see links. ]

    Smart DNS Proxy is a secure DNS proxy to unblock websites, including audio and video streaming services. Unblock websites like Netflix, Hulu, Facebook, Twitter, YouTube, Crackle, BBC iPlayer, Pandora, Spotify, and more when you use Smart DNS Proxy — easily and quickly.

    With Snart DNS Proxy, you can visit any blocked website and access any streaming service.

    With Smart DNS Proxy you don’t have to install any software or app, you don’t have to connect or disconnect like a VPN, it’s much faster than VPNs, and it works with any and all of your devices (PC, Mac, iPhone, iPad, Android, Smart TV, Xbox, PS4, etc.)… simultaneously!

    The best part? With today’s offer, you also get SmartVPN and access to dozens of VPN servers around the world (including US, UK, Germany, Canada, Australia, France, Sweden, and more).

    SmartVPN is the VPN companion to Smart DNS Proxy, and you can use both of them together or just one of them — the choice is yours.

    SmartVPN gives you unlimited bandwidth, unlimited speed, encrypted connection, and can be used on up to five devices simultaneously.

    [Only registered and activated users can see links. ]

    Terms and Conditions

    This is an unlimited-device 6-month license, for noncommercial use.

    Please note this is intended for new users of Smart DNS Proxy + SmartVPN only. If you are an existing user,
    you will need to register a new account to avail of this promo.

    You get free upgrades for six months.

    You must activate your account before this giveaway period is over.

    Supports Windows XP, Vista, 7, 8/8.1, and 10 (32-bit and 64-bit), Mac OS X, Android, iOS, Windows Phone, BlackBerry, and Linux.
    Dear Lord, please grant me the ability to punch people in the face over Standard TCP/IP