Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
Test OpenVPN in LXC + build TUN
## Run all these commands in container
sudo apt-get install curl wget openvpn uml-utilities
# creates a tun device in the container
sudo mkdir /dev/net
sudo mknod /dev/net/tun c 10 200
sudo chmod 666 /dev/net/tun
# downloads a set of free vpn configs
# connect to vpn with a given config file, wait to load
# login credentials here:
sudo openvpn --config vpnbook-us1-tcp80.ovpn
# test that we have new IP (this should be different from your host)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment