CHIZI-0618 / box4magisk

Use sing-box, clash, v2ray, xray tunnel proxy on Android devices.
GNU General Public License v3.0
1.19k stars 123 forks source link

tproxy每次开机都会自动启用 #33

Closed shuntou closed 1 year ago

shuntou commented 1 year ago

每次开机都要输一遍/data/adb/box/scripts/box.tproxy disable,怎么彻底禁用tproxy。

Moecg commented 1 year ago

@shuntou 代理方式用core,配置一下tun,应该就不会使用tp了吧(大概

shuntou commented 1 year ago
port: 7890
socks-port: 7891
allow-lan: true
mode: rule
geodata-mode: true
unified-delay: true
log-level: info
ipv6: false
external-controller: 127.0.0.1:9090
external-ui: dashboard
secret: ""
enable-process: true
find-process-mode: strict
#tcp-concurrent: true
global-client-fingerprint: chrome

geox-url:
  geoip: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat"
  geosite: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
  mmdb: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb"

profile:
  store-selected: true
  store-fake-ip: true

sniffer:
  enable: true
  sniff:
    TLS:
      ports: [443, 8443]
    HTTP:
      ports: [80, 8080-8880]
      override-destination: true

tun:
  enable: true
  device: tun3
  stack: system
  inet6-address: 
  dns-hijack:
    - 'any:53'
  auto-route: true
  auto-detect-interface: true

dns:
  enable: true
  listen: 0.0.0.0:1053
  ipv6: true
  enhanced-mode: fake-ip
  fake-ip-range: 28.0.0.1/8
  fake-ip-filter:
    - '*'
    - '+.lan'
    - 'connect.rom.miui.com'
  default-nameserver:
    - 'https://223.5.5.5/dns-query'
  nameserver:
    - 'https://8.8.8.8/dns-query#dns'
    - 'https://1.1.1.1/dns-query#dns'
  proxy-server-nameserver:
    - https://doh.pub/dns-query
  nameserver-policy:
    "geosite:cn,private":
      - https://doh.pub/dns-query
      - https://dns.alidns.com/dns-query

以上是我的config文件,请问还有什么要修改的吗?

CHIZI-0618 commented 1 year ago

看起来你启用了 Clash.Meta 的 tun,请禁止透明代理,修改 box.config 文件 proxy_mode 的值为 core

rianjskis commented 4 months ago

看起来你启用了 Clash.Meta 的 tun,请禁止透明代理,修改 box.config 文件 proxy_mode 的值为 core

老哥请教一下,我使用的singbox,如果把proxy_mode的值修改为core, singbox配置入站使用的tproxy不是tun,这样可以吗,