From 3ed6751ae7223b75bb3795e8b10a35436aa58df1 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Sat, 31 Oct 2020 09:19:35 +0100 Subject: [PATCH 1/2] Fix default bypass route --- mptcp/files/usr/share/omr/post-tracking.d/post-tracking | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mptcp/files/usr/share/omr/post-tracking.d/post-tracking b/mptcp/files/usr/share/omr/post-tracking.d/post-tracking index 6f0c07087..1a07d20c0 100755 --- a/mptcp/files/usr/share/omr/post-tracking.d/post-tracking +++ b/mptcp/files/usr/share/omr/post-tracking.d/post-tracking @@ -535,7 +535,7 @@ if [ "$multipath_config" = "master" ]; then } fi fi - if [ -n "$OMR_TRACKER_DEVICE_GATEWAY" ] && [ -n "$OMR_TRACKER_DEVICE" ] && [ "$(ip r show table 991337)" != "default via $OMR_TRACKER_DEVICE_GATEWAY dev $OMR_TRACKER_DEVICE" ]; then + if [ -n "$OMR_TRACKER_DEVICE_GATEWAY" ] && [ -n "$OMR_TRACKER_DEVICE" ] && [ "$(ip r show table 991337)" != "default via $OMR_TRACKER_DEVICE_GATEWAY dev $OMR_TRACKER_DEVICE " ]; then ip route replace default via $OMR_TRACKER_DEVICE_GATEWAY dev $OMR_TRACKER_DEVICE table 991337 fi if [ "$(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.lc)" = "" ] || [ $(($(date +"%s") + $((10 + RANDOM % 31)) - $(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.lc))) -gt 3600 ] || [ "$(uci -q show openmptcprouter | grep get_config=\'1\')" != "" ] || [ "$(uci -q show openmptcprouter | grep admin_error=\'1\')" != "" ]; then From f54d6d0164c0ab55c03c9b21650ebab622f8cc61 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Sat, 31 Oct 2020 09:19:54 +0100 Subject: [PATCH 2/2] Change default MLVPN reorder --- mlvpn/files/etc/config/mlvpn | 2 +- mlvpn/files/etc/init.d/mlvpn | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mlvpn/files/etc/config/mlvpn b/mlvpn/files/etc/config/mlvpn index 0f94c7894..53085dc48 100644 --- a/mlvpn/files/etc/config/mlvpn +++ b/mlvpn/files/etc/config/mlvpn @@ -2,7 +2,7 @@ config mlvpn 'general' option enable '0' option password '' option timeout '30' - option reorder_buffer_size '64' + option reorder_buffer_size '128' option loss_tolerence '50' option mode 'client' option host '128.128.128.128' diff --git a/mlvpn/files/etc/init.d/mlvpn b/mlvpn/files/etc/init.d/mlvpn index ef0ff6ec5..761694f6c 100755 --- a/mlvpn/files/etc/init.d/mlvpn +++ b/mlvpn/files/etc/init.d/mlvpn @@ -52,9 +52,9 @@ start() { mode = "${mode}" interface_name = "${interface_name}" timeout = ${timeout} - #reorder_buffer = yes + reorder_buffer = yes reorder_buffer_size = ${reorder_buffer_size} - #loss_tolerence = ${loss_tolerence} + loss_tolerence = ${loss_tolerence} password = "${password}" mtu = 1452 EOF