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

Change some default MPTCP parameters, reload network if VPN seems to be down

This commit is contained in:
Ycarus (Yannick Chabanois) 2018-06-18 17:27:41 +00:00
parent 49481ceaa9
commit 650638da69
3 changed files with 12 additions and 6 deletions

View file

@ -31,6 +31,7 @@ _ping() {
while true; do
source /etc/shorewall/params.vpn
local iface
currentaddr=$(ip addr show omr-6in4 | grep link/sit | awk '{print $2}' | tr -d "\n")
currentpeer=$(ip addr show omr-6in4 | grep link/sit | awk '{print $4}' | tr -d "\n")
if [ -n "$currentpeer" ]; then
@ -60,6 +61,7 @@ $allip_mlvpn"
break
fi
done < <(printf '%s\n' "$allip")
[ -z "$iface" ] && systemctl -q restart systemd-networkd
fi
fi
sleep 5