A fork of ClashForMagisk
This is a Clash module for Magisk, and includes binaries for arm, arm64, x86, x64.
You can download the release installer zip file and install it via the Magisk Manager App.
/data/clash/*
/data/clash/config.yaml
/data/clash/template
/data/clash/run/config.yaml
MODDIR= "/data/clash"
Clash uses TPROXY
transparent proxy TCP + UDP
by default, if it detects that the device does not support TPROXY
, it will automatically use REDIRECT
to proxy only TCP
Open ${MODDIR}/scripts/clash.config
file line 14-15, modify the value of network_mode
to TCP
or MIXED
to use REDIRECT
to proxy TCP
, and UDP
will not be proxied when TUN
is not enabled in the Clash kernel
Clash default transparent proxy local and hotspot, line 17-21
Open the ${MODDIR}/scripts/clash.config
file, modify the ignore_out_list
array and add the wlan+
element, the transparent proxy will bypass
the WLAN
, and the hotspot will not be affected
Open the ${MODDIR}/scripts/clash.config
file, modify the ap_list array and delete the wlan+
element to opaque proxy WLAN
and hotspot (the MediaTek
model may be ap+
instead of wlan+
)
/data/clash/packages.list
blacklist
& whitelits
, not working on fake-ip
clash service script is ${MODDIR}/scripts/clash.service.
Start service :
${MODDIR}/scripts/clash.service -s
Stop service :
${MODDIR}/scripts/clash.service -k
clash proxy script is ${MODDIR}/scripts/clash.iptables.
Start service :
${MODDIR}/scripts/clash.iptables -s
Stop service :
${MODDIR}/scripts/clash.iptables -k
you can use SubScription
/data/clash/clash.config
line 29-34
Running manual command
${MODDIR}/scripts/clash.tool -s
${MODDIR}/scripts/clash.tool -s
anymoreYou can use Clash.Premium and Clash.Meta
/data/clash/kernel/lib/Clash.Meta
/data/clash/kernel/lib/Clash.Premium
you can download the Kernel automatically, for the settings in the clash.config line 79-103
${MODDIR}/scripts/clash.tool -k
rm -rf /data/clash && rm -rf /data/adb/service.d/clash_service.sh
Tutorial Tap Here
This is a repo fork