diff --git a/.dockerfunc b/.dockerfunc index 9c32e55..eb2014a 100644 --- a/.dockerfunc +++ b/.dockerfunc @@ -122,7 +122,7 @@ latex() { fschl/latex "$@" } -libreoffice(){ +libreoffice() { del_stopped libreoffice docker run -d \ @@ -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