Skip to content

Instantly share code, notes, and snippets.

@kireal
Last active May 2, 2018 23:30
Show Gist options
  • Save kireal/6985ce684124e5c1f0ef to your computer and use it in GitHub Desktop.
Save kireal/6985ce684124e5c1f0ef to your computer and use it in GitHub Desktop.
Run docker vpn (based on jpetazzo/openvpn)
# Read more https://github.com/jpetazzo/dockvpn
# Read more http://p.umputun.com/p/2014/08/12/svoi-sobstviennyi-vpn-za-3-minuty/
CID=$(docker run -d --privileged -p 1194:1194/udp -p 443:443/tcp jpetazzo/openvpn)
docker run -t -i -p 8080:8080 --volumes-from $CID jpetazzo/openvpn serveconfig
#download configuration and run client
#echo '#!/bin/sh' > /etc/rc.local
#echo 'docker run -d --privileged -p 1194:1194/udp -p 443:443/tcp jpetazzo/openvpn' >> /etc/rc.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment