1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00

Fixes for glorytun

This commit is contained in:
Ycarus 2018-02-07 20:00:50 +01:00
parent f3f3d49fab
commit d37db6fa15
3 changed files with 13 additions and 9 deletions

View file

@ -59,14 +59,15 @@ start_instance() {
keyfile /tmp/${PROG_NAME}-${1}.key \ keyfile /tmp/${PROG_NAME}-${1}.key \
${port:+port "$port"} \ ${port:+port "$port"} \
${host:+host "$host"} \ ${host:+host "$host"} \
${bind:+bind} \
${bindport:+bind-port}
${dev:+dev "$dev"} \ ${dev:+dev "$dev"} \
${mtu:+mtu "$mtu"} \ ${mtu:+mtu "$mtu"} \
${mtuauto:+mtu-auto} \ ${bind:+bind "$bind"} \
${chacha20:+chacha20} \ ${bindport:+bind-port "$port"} \
v4only v4only
[ "${mtuauto}" = "1" ] && procd_append_param command mtu-auto
[ "${chacha20}" = "1" ] && procd_append_param command chacha20
procd_set_param respawn 0 30 0 procd_set_param respawn 0 30 0
procd_set_param file /tmp/${PROG_NAME}-${1}.key procd_set_param file /tmp/${PROG_NAME}-${1}.key

View file

@ -56,10 +56,13 @@ start_instance() {
keyfile /tmp/${PROG_NAME}-${1}.key \ keyfile /tmp/${PROG_NAME}-${1}.key \
${port:+port "$port"} \ ${port:+port "$port"} \
${host:+host "$host"} \ ${host:+host "$host"} \
${listener:+listener} \ ${dev:+dev "$dev"}
${mptcp:+mptcp} \
${chacha20:+chacha20} \ [ "${listener}" = "1" ] && procd_append_param command listener
${dev:+dev "$dev"} \ [ "${mptcp}" = "1" ] && procd_append_param command mptcp
[ "${chacha20}" = "1" ] && procd_append_param command chacha20
proc_append_param command \
retry count -1 const 5000000 \ retry count -1 const 5000000 \
timeout 5000 \ timeout 5000 \
keepalive count 3 idle 10 interval 1 keepalive count 3 idle 10 interval 1

View file

@ -27,7 +27,7 @@ config glorytun_recipe serverudp
option _role "server" option _role "server"
option dev "tun0" option dev "tun0"
option bindport "65003" option bindport "65003"
option bindt "192.168.99.1" option bind "192.168.99.1"
option key "secretkey" option key "secretkey"
option localip "192.168.99.1" option localip "192.168.99.1"
option remoteip "192.168.99.2" option remoteip "192.168.99.2"