Close

Results 1 to 11 of 11
  1. #1
    DF PlaYa Gunnzie's Avatar
    Join Date
    Aug 2002
    Location
    UK
    Posts
    780
    Thanks
    18
    Thanked:        30
    Karma Level
    236

    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. #2
    DF PlaYa Nathz29's Avatar
    Join Date
    Feb 2008
    Location
    Manchester
    Posts
    774
    Thanks
    132
    Thanked:        90
    Karma Level
    166

    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.

    Thanks to Nathz29

    Gunnzie (20th July 2015) 


  3. #3
    DF PlaYa Gunnzie's Avatar
    Join Date
    Aug 2002
    Location
    UK
    Posts
    780
    Thanks
    18
    Thanked:        30
    Karma Level
    236

    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. #4
    DF VIP Member
    Lou_smorals's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    2,320
    Thanks
    743
    Thanked:        599
    Karma Level
    406

    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?
    https://www.bestvpnservice.eu/configure-your-raspberry-pi-module-to-be-used-with-an-openvpn-connection/

    thanks
    LS
    Dear Lord, please grant me the ability to punch people in the face over Standard TCP/IP

  5. #5
    DF PlaYa Gunnzie's Avatar
    Join Date
    Aug 2002
    Location
    UK
    Posts
    780
    Thanks
    18
    Thanked:        30
    Karma Level
    236

    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. #6
    DF VIP Member
    Lou_smorals's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    2,320
    Thanks
    743
    Thanked:        599
    Karma Level
    406

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

    Dear Lord, please grant me the ability to punch people in the face over Standard TCP/IP

    Thanks to Lou_smorals

    Gunnzie (20th July 2015) 


  7. #7
    DF PlaYa Gunnzie's Avatar
    Join Date
    Aug 2002
    Location
    UK
    Posts
    780
    Thanks
    18
    Thanked:        30
    Karma Level
    236

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

    That's excellent. Much appreciated.

  8. #8
    DF Jedi blacksheep's Avatar
    Join Date
    Jun 2006
    Location
    Manchester
    Posts
    3,877
    Thanks
    87
    Thanked:        265
    Karma Level
    489

    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. #9
    DF PlaYa Gunnzie's Avatar
    Join Date
    Aug 2002
    Location
    UK
    Posts
    780
    Thanks
    18
    Thanked:        30
    Karma Level
    236

    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. #10
    DF Jedi blacksheep's Avatar
    Join Date
    Jun 2006
    Location
    Manchester
    Posts
    3,877
    Thanks
    87
    Thanked:        265
    Karma Level
    489

    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. #11
    DF VIP Member
    Lou_smorals's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    2,320
    Thanks
    743
    Thanked:        599
    Karma Level
    406

    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!!!

    https://sharewareonsale.com/s/smart-d...-giveaway-sale

    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.

    https://www.smartdnsproxy.com/

    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

Similar Threads

  1. [HELP] Block internet access for a single program
    By Tim.Lad in forum Microsoft Windows XP & Vista
    Replies: 6
    Last Post: 30th December 2009, 09:16 PM
  2. do three block internet ports ?
    By maltloaf in forum Android Phones & Tablets
    Replies: 5
    Last Post: 21st July 2007, 08:27 AM
  3. Block Internet Explorer
    By arlo in forum Microsoft Windows XP & Vista
    Replies: 5
    Last Post: 5th August 2006, 09:25 PM
  4. Block Internet Access
    By Drogo in forum Microsoft Windows XP & Vista
    Replies: 1
    Last Post: 14th January 2006, 09:40 AM
  5. Internet child porn block calls
    By 4me2 in forum News & Current Affairs
    Replies: 11
    Last Post: 27th October 2005, 08:37 PM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •