added openvpn

This commit is contained in:
Frieder Schlesier 2015-12-16 13:28:20 +01:00
parent b15ac2bc00
commit 654ded0f10
1 changed files with 16 additions and 1 deletions

View File

@ -136,6 +136,21 @@ libreoffice(){
fschl/libreoffice
}
# start from a directory which contains a openvpn config file named 'config.ovpn'
# cert and key files should be in the same directory or relatively referencable
# from the config file
openvpn() {
del_stopped openvpn
docker run -it --rm \
--net host \
--device /dev/net/tun:/dev/net/tun \
--cap-add NET_ADMIN \
-v "$PWD":/etc/openvpn \
fschl/openvpn:latest config.ovpn
}
pulseaudio() {
del_stopped pulseaudio