From b2e3f661e7b1c6a1ddccfce086e4e16409738fe3 Mon Sep 17 00:00:00 2001 From: Testeera <135306767+Testeera@users.noreply.github.com> Date: Tue, 1 Aug 2023 21:17:04 +0800 Subject: [PATCH] Fix QCA tproxy with Docker --- scripts/start.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/start.sh b/scripts/start.sh index c4a578a..94e7266 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1107,6 +1107,15 @@ EOF [ "$?" = 0 ] && rm -rf $TMPDIR/clash_pac || mv -f $TMPDIR/clash_pac $bindir/ui/pac } bfstart(){ + #小米7000/小米万兆tproxy + if [ -f /etc/init.d/qca-nss-ecm ];then + if [ cat /proc/sys/net/bridge/bridge-nf-call-iptables ];then + sysctl -w net.bridge.bridge-nf-call-iptables=0 + fi + if [ cat /proc/sys/net/bridge/bridge-nf-call-ip6tables ];then + sysctl -w net.bridge.bridge-nf-call-ip6tables=0 + fi + fi #读取配置文件 getconfig [ ! -d $bindir/ui ] && mkdir -p $bindir/ui