Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于tun_device & fswatch: watcher removed #79

Open
Moecg opened this issue Sep 29, 2024 · 3 comments
Open

关于tun_device & fswatch: watcher removed #79

Moecg opened this issue Sep 29, 2024 · 3 comments

Comments

@Moecg
Copy link

Moecg commented Sep 29, 2024

一直有一个问题,使用mihomo核心后,开启tun并且在mihomo的config.yaml中修改device为xxx,需要同步更改scripts/box.configline 12中的tun_device="tun0"tun_device="xxx"


另外在日志中看到fswatch: watcher removed: /data/system/packages.xml是配置有什么问题吗(不影响使用,可以不管)

time="2024-09-28T00:50:32.19553288+08:00" level=info msg="Start initial configuration in progress"
time="2024-09-28T00:50:32.196632932+08:00" level=info msg="Geodata Loader mode: memconservative"
time="2024-09-28T00:50:32.196647776+08:00" level=info msg="Geosite Matcher implementation: succinct"
time="2024-09-28T00:50:32.196949807+08:00" level=info msg="Initial configuration complete, total time: 1ms"
time="2024-09-28T00:50:32.262483713+08:00" level=warning msg="[TUN] default interface changed by monitor,  => wlan0"
time="2024-09-28T00:51:06.077756825+08:00" level=error msg="fswatch: watcher removed: /data/system/packages.xml"
mixed-port: 7890
tproxy-port: 1536
ipv6: false
allow-lan: false
mode: rule
log-level: warning

unified-delay: false
tcp-concurrent: true
external-controller: 127.0.0.1:9090
external-ui: ui/metacubexd
external-ui-url: "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"

find-process-mode: always
#global-client-fingerprint: chrome

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

sniffer:
  enable: false
  sniff:
    HTTP:
      ports: [80, 8080-8880]
      override-destination: true
    TLS:
      ports: [443, 8443]
    QUIC:
      ports: [443, 8443]
  skip-domain:
    - "Mijia Cloud"
    - "+.push.apple.com"

tun:
  enable: true
  stack: system
  device: wlan2
  dns-hijack:
    - "any:53"
    - "tcp://any:53"
  auto-route: true
  auto-redirect: false
  auto-detect-interface: true
  strict-route: true

dns:
  enable: true
  listen: 0.0.0.0:1053
  ipv6: false
  respect-rules: true
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.0/15
  fake-ip-filter:
    - "*"
    - "+.lan"
    - "+.local"
    - "+.market.xiaomi.com"
    - "rule-set:fakeip-filter"
  fake-ip-filter-mode: blacklist
  default-nameserver:
    - https://120.53.53.53/dns-query
    - https://223.5.5.5/dns-query
  proxy-server-nameserver:
    - https://120.53.53.53/dns-query
    - https://223.5.5.5/dns-query
  nameserver:
    - https://dns.cloudflare.com/dns-query
    - https://dns.google/dns-query
  nameserver-policy:
    "rule-set:google-cn_domain":
      - https://dns.cloudflare.com/dns-query
      - https://dns.google/dns-query
    "rule-set:cn_domain,private_domain":
      - https://120.53.53.53/dns-query
      - https://223.5.5.5/dns-query
@CHIZI-0618
Copy link
Owner

一直有一个问题,使用mihomo核心后,开启tun并且在mihomo的config.yaml中修改device为xxx,需要同步更改scripts/box.configline 12中的tun_device="tun0"tun_device="xxx"

需要,不然热点有问题

另外在日志中看到fswatch: watcher removed: /data/system/packages.xml是配置有什么问题吗

不影响使用,可以不管

@Moecg
Copy link
Author

Moecg commented Sep 29, 2024

感谢解答

@Moecg Moecg closed this as completed Sep 29, 2024
@Moecg
Copy link
Author

Moecg commented Oct 2, 2024

一直有一个问题,使用mihomo核心后,开启tun并且在mihomo的config.yaml中修改device为xxx,需要同步更改scripts/box.configline 12中的tun_device="tun0"tun_device="xxx"

需要,不然热点有问题

佬,发现一个问题。

当我修改box.config中的tun为xxx(与config.yaml一致)后会出现使用WiFi无法访问谷歌/一些国外网站(提示无法访问或者连接不是私密链接)的情况

改为与config.yaml不一样的tun_device或者改用移动数据就可以正常访问,可稳定复现,救救我!

@Moecg Moecg reopened this Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants