Skip to content

OtherOfIce/VPN-Jail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

VPN-Jail

Isolate an application to just VPN access and prevent data leaks especially when the VPN is down.

This script creates a network namespace to run the VPN. The namespace has IP Table rules that block all traffic apart from to the VPN provider & local locations. This ensures that if the VPN ever goes down no unencrypted data will be sent out over the internet. It's very simple to use all you need is to have a OPENVPN client & an application you need to run (rtorrent, firefox or popcorn-time)

Usage

sudo python3 ./vpnJail.py vpn.ovpn firefox 
sudo python3 ./vpnJail.py config_path process 

Installation

Requires OPENVPN

sudo apt-get install openvpn
git clone [email protected]:OtherOfIce/VPN-Jail.git 

Thanks to Schnouki: For his brilliant post (https://schnouki.net/posts/2014/12/12/openvpn-for-a-single-application-on-linux/)

Releases

No releases published

Packages

No packages published

Languages