openvpn/run.sh
Knut Ahlers 20846c97fc
Initial version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-09-10 15:23:29 +02:00

9 lines
224 B
Bash
Executable file

#!/usr/bin/dumb-init /bin/bash
set -euxo pipefail
mkdir -p /dev/net
[ -c /dev/net/tun ] || mknod /dev/net/tun c 10 200
[ -f /etc/openvpn/dh2048.pem ] || openssl dhparam -out /etc/openvpn/dh2048.pem 2048
exec openvpn "$@"