container-openvpn/bin/serveconfig
2013-09-02 23:46:19 +00:00

11 lines
269 B
Bash
Executable File

#!/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