1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00

Add 6in4 support

This commit is contained in:
Ycarus (Yannick Chabanois) 2018-05-04 06:28:28 +00:00
parent a4b8cebbd1
commit dcf20947f2
13 changed files with 142 additions and 17 deletions

18
glorytun-udp-run Normal file
View file

@ -0,0 +1,18 @@
#!/bin/sh
set -e
if [ ! -f "$1" ]; then
echo "usage: $(basename "$0") FILE"
exit 1
fi
. "$(readlink -f "$1")"
DEV="gt${HOST:+c}-udp-$(basename "$1")"
exec glorytun \
bin $BIND $BIND_PORT
${DEV:+dev "$DEV"} \
${HOST:+to "$HOST" "$PORT"} \
${OPTIONS:+$OPTIONS}