1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-02-12 19:31:54 +00:00
openmptcprouter-vps/dsvpn-run
Ycarus (Yannick Chabanois) 4b47717168 Add missing files
2020-02-21 17:17:51 +01:00

19 lines
279 B
Bash

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