Browse Source

install_easy: keenetic warning

pull/178/head
bol-van 1 year ago
parent
commit
cac587b271
  1. 2
      common/base.sh
  2. 1
      common/installer.sh
  3. 10
      install_easy.sh

2
common/base.sh

@ -146,6 +146,8 @@ linux_get_subsys()
INIT=$(basename "$INIT") INIT=$(basename "$INIT")
if [ -f "/etc/openwrt_release" ] && [ "$INIT" = "procd" ] ; then if [ -f "/etc/openwrt_release" ] && [ "$INIT" = "procd" ] ; then
SUBSYS=openwrt SUBSYS=openwrt
elif [ -x "/bin/ndm" ] ; then
SUBSYS=keenetic
else else
# generic linux # generic linux
SUBSYS= SUBSYS=

1
common/installer.sh

@ -125,6 +125,7 @@ check_system()
echo easy installer only supports Linux and MacOS. check readme.txt for supported systems and manual setup info. echo easy installer only supports Linux and MacOS. check readme.txt for supported systems and manual setup info.
exitp 5 exitp 5
fi fi
linux_get_subsys
echo system is based on $SYSTEM echo system is based on $SYSTEM
[ -n "$info" ] && echo $info [ -n "$info" ] && echo $info
} }

10
install_easy.sh

@ -163,6 +163,16 @@ select_mode_https()
} }
select_mode_quic() select_mode_quic()
{ {
[ "$SUBSYS" = "keenetic" ] && {
echo
echo "WARNING ! Keenetic is not officially supported by zapret."
echo "WARNING ! This firmware requires additional manual iptables setup to support udp desync properly."
echo "WARNING ! Keenetic uses proprietary ndmmark to limit MASQUERADE."
echo "WARNING ! Desynced packets may go outside without MASQUERADE with LAN source ip."
echo "WARNING ! To fix this you need to add additional MASQUERADE rule to iptables nat table."
echo "WARNING ! Installer WILL NOT fix it for you automatically."
echo "WARNING ! If you cannot understand what it is all about - do not enable QUIC."
}
[ "$MODE" != "filter" ] && [ "$MODE" != "tpws-socks" ] && [ "$MODE" != "tpws" ] && { [ "$MODE" != "filter" ] && [ "$MODE" != "tpws-socks" ] && [ "$MODE" != "tpws" ] && {
echo echo
ask_yes_no_var MODE_QUIC "enable quic support" ask_yes_no_var MODE_QUIC "enable quic support"

Loading…
Cancel
Save