MyGit
🚩收到GitHub仓库的更新通知

taamarin/ClashforMagisk

Fork: 46 Star: 677 (更新于 2024-05-08 15:45:44)

license: 暂无

Language: Shell .

Transparent proxy(Tproxy) for android (root)

最后发布版本: v3.5.1 ( 2023-02-08 16:30:22)

GitHub网址

✨免费申请网站SSL证书,支持多域名和泛域名,点击查看

Move to Box_For_Magisk https://github.com/taamarin/box_for_magisk

Clash for Magisk

Clash
Clash

Proxy Transparan for android.

ANDROID RELEASES TELEGRAM CHANNEL TELEGRAM MAGISK API

A fork of ClashForMagisk

This is a Clash module for Magisk, and includes binaries for arm, arm64, x86, x64.

Manager Apps CFM

Install

You can download the release installer zip file and install it via the Magisk Manager App.

Config

  • Clash config files /data/clash/*
  • config.yaml /data/clash/config.yaml
  • template /data/clash/template

temporary config

  • config.yaml and template will be merged /data/clash/run/config.yaml

Usage

Normal usage ( Default and Recommended )

Manage service start / stop
  • Clash service is auto-run after system boot up by default.
  • You can use Magisk Manager App to manage it. Be patient to wait it take effect (about 3 second).

Advanced usage

MODDIR= "/data/clash"

Change proxy mode
  • 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

Bypass transparent proxy when connected to Wi-Fi or open a hotspot

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+)

Select which packages to proxy
  • If you expect all Apps proxy by Clash with transparent proxy EXCEPT specific Apps, write down bypass at the first line then these Apps' packages separated as above in file /data/clash/packages.list

  • clash.config line 11-12

  • blacklist & whitelits, not working on fake-ip

    - dns:
        - enable: true
        - enhanced-mode: redir-host
    
Manage service start / stop
  • clash service script is ${MODDIR}/scripts/clash.service.

    • Start service :

    ${MODDIR}/scripts/clash.service -s

    • Stop service :

    ${MODDIR}/scripts/clash.service -k

Manage transparent proxy enable / disable
  • clash proxy script is ${MODDIR}/scripts/clash.iptables.

    • Start service :

    ${MODDIR}/scripts/clash.iptables -s

    • Stop service :

    ${MODDIR}/scripts/clash.iptables -k

subscription

you can use SubScription

  • open /data/clash/clash.config line 29-34
    • update_interval="interval contab"
    • Subcript_url="your_link"
    • auto_updateSubcript="true"

Running manual command

${MODDIR}/scripts/clash.tool -s
Config Online
  • clash.config line 36-37, If true,
  • use it to download the subscription configuration, when starting Clash , So no need to type ${MODDIR}/scripts/clash.tool -s anymore
Change Clash kernel

You can use Clash.Premium and Clash.Meta

  • Clash Meta
    • /data/clash/kernel/lib/Clash.Meta
  • Clash Premium
    • /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
GeoSite, GeoIP, and Mmdb
  • settings are in clash.config line 105-116
  • if true, will be updated every day at 00.00
  • you can change the URL

Uninstall

  • Uninstall the module via Magisk Manager App.
  • You can clean Clash data dir by running command
rm -rf /data/clash && rm -rf /data/adb/service.d/clash_service.sh

Tutorial Clash For Magisk

Tutorial Tap Here

Credits

This is a repo fork

最近版本更新:(数据更新于 2024-04-27 07:02:59)

2023-02-08 16:30:22 v3.5.1

2023-01-13 18:01:21 v3.0

2022-12-01 21:30:50 v2.5.1

2022-11-20 20:19:02 v2.5

2022-11-08 15:20:21 v2.3

2022-11-07 15:52:25 v2.2

2022-11-07 09:05:25 v2.1

2022-10-08 19:28:37 v1.14

2022-10-06 13:47:42 v1.13.9

2022-10-05 18:54:06 v1.13.8

主题(topics):

android, magisk-modules, shell-scripts

taamarin/ClashforMagisk同语言 Shell最近更新仓库

2024-05-14 14:38:06 RROrg/rr

2024-05-14 05:26:10 AuxXxilium/arc

2024-05-11 22:58:23 sakarie9/DoL-Lyra

2024-05-10 17:09:30 iranee/qnap-alist-webdav

2024-05-10 17:02:11 mack-a/v2ray-agent

2024-05-09 23:01:38 AuxXxilium/arc-patches