Docker can haz VPN nao!

This commit is contained in:
Jerome Petazzoni
2013-09-02 23:46:19 +00:00
commit 0f56065a90
3 changed files with 114 additions and 0 deletions

10
bin/serveconfig Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
cd /etc/openvpn
[ -f client.http ] || {
echo "Please run the OpenVPN container at least once in normal mode,"
echo "to generate the client configuration file. Thank you."
exit 1
}
socat TCP-LISTEN:8080,reuseaddr - < client.http >> http8080.log