ch
Feedback
𝐄𝟓 𝟖𝟔 𝟗𝟓

𝐄𝟓 𝟖𝟔 𝟗𝟓

前往频道在 Telegram
3 183
订阅者
+324 小时
+97
+10830
帖子存档
模块已写完,后续应该也没有更新的必要。 https://github.com/CHIZI-0618/ColorOS-Google-Firewall-Fixer 清理 ColorOS 16 系统中拦截 Google Play 商店和 Google Play 服务联网的 iptables 规则,恢复 Google 服务的正常访问。 开机后等待一分钟再执行清理 支持纪录清理规则详情日志 支持 action.sh 手动执行清理 支持 IPv6 规则的清理

这样比较精细,也可以粗暴一点,直接执行下面的命令清空相应链的规则 iptables -t filter -F fw_INPUT iptables -t filter -F fw_OUTPUT 应该也没啥副作用

OnePlus 手机更新到 ColorOS16 系统后出现谷歌系列软件(主要是 Google Play 商店、Google Play 服务)在数据网络甚至无线网络下禁止联网的问题,据部分网友反馈,因为同时满足以下条件: 1:手机内双卡均为中国大陆运营商或没插卡 2:无法连接至谷歌连通性检测204地址 3:系统代理未开启 但是当我们使用透明代理模块而不是VPN 软件时(或者 Tun 方案),仍然无法使用上述谷歌服务。 下面提供一个解决方案(仅仅需要Root 且不改动系统文件): 终端执行 iptables -t filter -nvL fw_INPUT --line-numbers 和 iptables -t filter -nvL fw_OUTPUT --line-numbers 命令,检查带有 rmnet+ 和 wlan+ 关键字规则的行号,然后使用 iptables -t filter -D fw_INPUT 相应行号 和 iptables -t filter -D fw_OUTPUT 相应行号 命令来删除规则,即可重新放行上述服务的连接 后续我会考虑做成 Magisk 模块。 编辑:更新列出 iptables 规则的命令

编译环境: GitHub Action Android NDK r27d API 35 文件信息: Android ipset arm64 static source: https://git.netfilter.org/ipset.git sha256:94cf5054e7690aebcfc63125d5abede5c658d513aafcbee4845dee59004ceb04

编译环境: GitHub Action Android NDK r27d API 35 文件信息: Android libcap arm64 static source: https://kernel.googlesource.com/pub/scm/linux/kernel/git/morgan/libcap sha256:69822b5feac4ab9049a1bc94cf6b2f10f94989dfc901be6646f29cf6f1980e2d

Repost from N/a
对于非流式的归档任务,几乎没有理由使用tar打包压缩,tar.gz tar.xz tar.zst 等格式不仅不支持随机读,甚至也不像未压缩的tar一样支持追加。使用这个给上世纪的磁带机设计的格式完全没有任何好处。当然,使用 zip 7z rar也不行
对于非流式的归档任务,几乎没有理由使用tar打包压缩,tar.gz tar.xz tar.zst 等格式不仅不支持随机读,甚至也不像未压缩的tar一样支持追加。使用这个给上世纪的磁带机设计的格式完全没有任何好处。当然,使用 zip 7z rar也不行,因为这些格式不能完整保留文件系统的元数据,也不支持硬链接,不能用于系统备份、归档。 我个人比较推荐的做法是使用 squashfs。例如,创建最高压缩率的zstd归档算法的squashfs:
mksquashfs /etc etc.squashfs -xattrs -comp zstd -Xcompression-level 22 -b 1M
-xattrs 参数在 mksquashfs 中用于保留扩展属性,包括ACL(Access Control Lists)和SELinux 上下文(security.selinux)以及其他命名空间下的扩展属性。至于软链接、硬链接和权限属性,默认就完整保留,不需要额外参数。因此也可以简化到 mksquashfs /etc etc.squashfs 表示使用 zlib 压缩算法,默认压缩率,保留上述特殊扩展属性以外的全部元数据。-b 1M 指定块大小1M,这是squashfs的最大值。 显然,squashfs格式天生就是为挂载而生的,要读取 etc.squashfs 的文件,只需挂载它到某个目录:
sudo mount -t squashfs -o loop etc.squashfs /mnt/etc
只列出文件(等效于 tar -tf 或 zcat | tar -t):
unsquashfs -l etc.squashfs
unsquashfs -l etc.squashfs /profile.d # 列出 profile.d 文件夹
解压特定文件(等效于 tar -x 某文件):
unsquashfs -f -d extracted etc.squashfs passwd
解压整个 squashfs(不挂载):
unsquashfs etc.squashfs
对于Windows,可以使用 7zip NanaZip 等软件打开squashfs包,也可以直接在WSL2内用上述命令挂载。 EroFS就不推荐了,mkfs.erofs 目前坑比较多,用起来很复杂,不像 squashfs 安装轻松简单。 #Linux

编译环境: GitHub Action Android NDK r26 API 33 文件信息: Android libcap arm64 static source: https://kernel.googlesource.com/pub/scm/linux/kernel/git/morgan/libcap sha256:5ba5020f23a71d251a533bd17a5859e456d3b39685183953f0f591da47e1d154

未签名 Action 链接:https://github.com/CHIZI-0618/sing-box/actions/runs/13745430379 v1.12.0-alpha.13 with provider 核心为 yelnoo/sing-box Outbound Provider 接口由 qjebbs 提供,转换器由 PuerNya/sing-box 提供

现在可以尝鲜使用 v1.12.0-alpha.13 with provider 版本 地址为 https://github.com/yelnoo/sing-box/tree/dev

不清楚为何分支删除,可参考使用 https://github.com/CHIZI-0618/sing-box/tree/main-next

一个补充: 如果您的设备没有 Magisk 等 root 所提供的 service.d 环境,可以考虑使用 Termux:Boot 来达到开机自启动的功能。 具体请参考 Termux:Boot WiKi

鉴于 PuerNya/sing-box 停更半年 群友自己动手,丰衣足食 项目地址:yelnoo/sing-box 简单说,Outbound Provider 接口由 qjebbs 提供,转换器由 PuerNya/sing-box 提供 作者提供的简单配置示例
{
  "providers": [
    {
      "tag": "provider",
      "type": "local",
      "path": "provider.txt"
    }
  ]
}
{
  "providers": [
    {
      "tag": "provider",
      "type": "remote",
      "url": "https://url.to/provider.txt",
      "update_interval": "24h",
      "exclude": "",
      "include": "",
      "download_detour": "",
      "path": "provider.txt"
    }
  ]
}
{
  "type": "selector",
  "tag": "select",

  "outbounds": [
    "proxy-a",
    "proxy-b",
    "proxy-c"
  ],
  "providers": [
    "provider-a",
    "provider-b",
  ],
  "use_all_providers": false,
  "exclude": "",
  "include": "",
  "default": "proxy-c",
  "interrupt_exist_connections": false
}

推荐 A Dashboard Using Clash API https://github.com/Zephyruso/zashboard 很漂亮

https://gist.github.com/CHIZI-0618/a799df41155b3702e1d2b37d655bc91f sing-box v1.11 简单配置示例已更新 参考 https://t.me/zhetengsha/1071
https://gist.github.com/CHIZI-0618/a799df41155b3702e1d2b37d655bc91f sing-box v1.11 简单配置示例已更新 参考 https://t.me/zhetengsha/1071 使用 Sub-Store 的文件功能,可以生成 sing-box 配置,注意附件图中远程文件地址为 raw 地址(gist 文件更新后 raw 地址会发生变化,请不要照抄图中地址),搭配本模板的脚本操作为 https://raw.githubusercontent.com/xream/scripts/main/surge/modules/sub-store-scripts/sing-box/template.js#&name=机场&outbound=Proxy 意为名称为 "机场" 的 组合订阅 中的节点插入至 Proxy 出站。

在安卓利用 Termux 搭建 Sub-Store 的步骤(不需要 root) 1. 下载 Termux,推荐 GitHub 版本,打开 Termux,执行以下命令安装必须依赖 pkg up -y && pkg i nodejs-lts wget unzip -y 2. 创建基本的 Sub-Store 环境,依次执行命令 mkdir -p substore && cd substore wget https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store.bundle.js wget https://github.com/sub-store-org/Sub-Store-Front-End/releases/latest/download/dist.zip && unzip dist.zip && rm dist.zip && mv dist frontend 3. 不出意外的话,在 substore 目录中执行 node sub-store.bundle.js & 即可成功运行 Sub-Store,此时打开 https://sub-store.vercel.app/subs,右下角设置,后端设置,添加后端地址,名称随意,地址填入 http://127.0.0.1:3000(或者直接打开 https://sub-store.vercel.app/subs?api=http://127.0.0.1:3000),打开首页,就可以愉快地使用 Sub-Store 啦 最后,隐私敏感人士希望利用第 2 步下载的本地前端,请启动时添加环境变量 SUB_STORE_FRONTEND_PATH="$HOME/substore/frontend",可以参考 substore.sh 附件; 如果您当前有 root 环境,可在 1, 2 步完成后,将附件脚本置于 /data/adb/service.d 目录并给执行权限,可以实现 Magisk 等环境的开机自启动 Sub-Store。

龙舞辞旧岁,蛇跃迎新年

Summary of the year for the channel "𝐄𝟓 𝟖𝟔 𝟗𝟓" from @TGStat
Summary of the year for the channel "𝐄𝟓 𝟖𝟔 𝟗𝟓" from @TGStat

Box4Magisk/KernelSU/APatch_v5.1 更新日志 - 改进本机 IP 防回环规则插入方式 - 更新 sing-box 核心示例配置 - 默认透明代理 USB 网络共享 - 默认 mihomo 使用与 clash 相同的 DNS 劫持 - 其他修复与改进 注意: 从 v4.9 版本后,mihomo(Clash.Meta) 作为独立于 clash 的核心,请用户做好迁移工作,自 v5.1 版本始,mihomo 仍提供与以前 clash 相同的 DNS REDIRECT 支持 来源:https://github.com/CHIZI-0618/box4magisk 求 Star⭐⭐ 此处版本预置了 mihomo Alpha 与 sing-box-PuerNya 非完全体核心,并提供了配置示例 安装后请仔细阅读 https://github.com/CHIZI-0618/box4magisk/#readme 完整更新日志见 https://github.com/CHIZI-0618/box4magisk/blob/main/changelog.mdhttps://github.com/CHIZI-0618/box4magisk/commits/main