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

20 lines
237 B
Text
Raw Permalink Normal View History

2020-02-21 16:17:51 +00:00
#!/bin/sh
set -e
if [ ! -f "$1" ]; then
echo "usage: $(basename "$0") FILE"
exit 1
fi
. "$(readlink -f "$1")"
exec dsvpn \
2020-02-26 09:38:43 +00:00
${MODE} \
2020-02-21 16:17:51 +00:00
"$1".key \
2021-03-02 08:52:33 +00:00
${HOST:-auto} \
2020-02-26 09:38:43 +00:00
${PORT} \
${DEV} \
${LOCALTUNIP} \
${REMOTETUNIP}