1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-02-12 11:21:56 +00:00
openmptcprouter-vps/glorytun-udp-run

19 lines
320 B
Text
Raw Permalink Normal View History

2018-05-04 06:28:28 +00:00
#!/bin/sh
set -e
if [ ! -f "$1" ]; then
echo "usage: $(basename "$0") FILE"
exit 1
fi
. "$(readlink -f "$1")"
2021-03-02 08:52:33 +00:00
DEV="gt-udp-$(basename "$1")"
2018-05-04 06:28:28 +00:00
exec glorytun \
2021-03-02 08:52:33 +00:00
bind to addr ${HOST:-::} port ${PORT:-5000} from addr $BIND port $BIND_PORT \
keyfile "$1".key \
2018-05-04 06:28:28 +00:00
${DEV:+dev "$DEV"} \
${OPTIONS:+$OPTIONS}