mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-14 11:31:51 +00:00
Fixes for glorytun
This commit is contained in:
parent
f3f3d49fab
commit
d37db6fa15
3 changed files with 13 additions and 9 deletions
|
@ -59,14 +59,15 @@ start_instance() {
|
|||
keyfile /tmp/${PROG_NAME}-${1}.key \
|
||||
${port:+port "$port"} \
|
||||
${host:+host "$host"} \
|
||||
${bind:+bind} \
|
||||
${bindport:+bind-port}
|
||||
${dev:+dev "$dev"} \
|
||||
${mtu:+mtu "$mtu"} \
|
||||
${mtuauto:+mtu-auto} \
|
||||
${chacha20:+chacha20} \
|
||||
${bind:+bind "$bind"} \
|
||||
${bindport:+bind-port "$port"} \
|
||||
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 file /tmp/${PROG_NAME}-${1}.key
|
||||
|
||||
|
|
|
@ -56,10 +56,13 @@ start_instance() {
|
|||
keyfile /tmp/${PROG_NAME}-${1}.key \
|
||||
${port:+port "$port"} \
|
||||
${host:+host "$host"} \
|
||||
${listener:+listener} \
|
||||
${mptcp:+mptcp} \
|
||||
${chacha20:+chacha20} \
|
||||
${dev:+dev "$dev"} \
|
||||
${dev:+dev "$dev"}
|
||||
|
||||
[ "${listener}" = "1" ] && procd_append_param command listener
|
||||
[ "${mptcp}" = "1" ] && procd_append_param command mptcp
|
||||
[ "${chacha20}" = "1" ] && procd_append_param command chacha20
|
||||
|
||||
proc_append_param command \
|
||||
retry count -1 const 5000000 \
|
||||
timeout 5000 \
|
||||
keepalive count 3 idle 10 interval 1
|
||||
|
|
|
@ -27,7 +27,7 @@ config glorytun_recipe serverudp
|
|||
option _role "server"
|
||||
option dev "tun0"
|
||||
option bindport "65003"
|
||||
option bindt "192.168.99.1"
|
||||
option bind "192.168.99.1"
|
||||
option key "secretkey"
|
||||
option localip "192.168.99.1"
|
||||
option remoteip "192.168.99.2"
|
||||
|
|
Loading…
Reference in a new issue