From 996c5469f3b7b309c6194f6eb06a21a6708e80e3 Mon Sep 17 00:00:00 2001 From: LMS235 Date: Mon, 24 Dec 2018 15:49:44 +0100 Subject: [PATCH] Telekom Hybrid Check Small check whether Telekom Hybrid will be used to give helpful tips. --- scripts/pivpnDebug.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/pivpnDebug.sh b/scripts/pivpnDebug.sh index a5d4f77..b850032 100644 --- a/scripts/pivpnDebug.sh +++ b/scripts/pivpnDebug.sh @@ -20,4 +20,16 @@ if [[ ${noUFW} -eq 1 ]]; then printf ":::\t\t\t\t\t:::\n::\tOutput of iptables\t\t ::\n:::\t\t\t\t\t:::\n" iptables -t nat -L -n -v fi +# Telekom Hybrid Check +wget -O /tmp/hybcheck http://speedport.ip &>/dev/null +if grep -Fq "Speedport Pro" /tmp/hybcheck || grep -Fq "Speedport Hybrid" /tmp/hybcheck +then + printf ":::\t\t\t\t\t:::\n::\tTelekom Hybrid Check\t\t ::\n:::\t\t\t\t\t:::\n" + echo "Are you using Telekom Hybrid (found a hybrid compatible router)?" + echo "If yes and you have problems with the connections you can test the following:" + echo "Add 'tun-mtu 1316' in /etc/openvpn/easy-rsa/pki/Default.txt to set a hybrid compatible MTU size (new .ovpn files)." + echo "For already existing .ovpn files 'tun-mtu 1316' can also be inserted there manually." + echo "With Telekom hybrid connections, you may have to experiment a little with MTU (tun-mtu, link-mtu and mssfix)." +fi +rm /tmp/hybcheck printf ":::\t\t\t\t\t:::\n::\tDebug Output Complete\t\t ::\n:::\t\t\t\t\t:::\n"