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:
parent
a4b8cebbd1
commit
dcf20947f2
13 changed files with 142 additions and 17 deletions
18
glorytun-udp-run
Normal file
18
glorytun-udp-run
Normal 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}
|
Loading…
Add table
Add a link
Reference in a new issue