#!/bin/sh echo "# OpenVPN 2.1 Config" if [ "$OPENVPN_LOCAL" ];then echo "local $OPENVPN_LOCAL" fi if [ "$OPENVPN_PROTO" == "tcp" ]; then echo "proto tcp-$OPENVPN_MODE" else echo "proto udp" fi echo "port $OPENVPN_PORT" if [ "$OPENVPN_TYPE" == "tap" ]; then echo "dev tap" else echo "dev tun" fi if [ "$OPENVPN_AUTH_TYPE" == "certs" ]; then cat <