1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-02-12 11:21:56 +00:00
openmptcprouter-vps/dsvpn-run
Ycarus (Yannick Chabanois) 868ea9de25 Fix DSVPN support
2020-02-26 10:38:43 +01:00

19 lines
228 B
Bash

#!/bin/sh
set -e
if [ ! -f "$1" ]; then
echo "usage: $(basename "$0") FILE"
exit 1
fi
. "$(readlink -f "$1")"
exec dsvpn \
${MODE} \
"$1".key \
auto \
${PORT} \
${DEV} \
${LOCALTUNIP} \
${REMOTETUNIP}