No description
  • Shell 94.6%
  • Nix 5.4%
Find a file
2026-08-21 17:03:20 +03:00
.opencode/skills docs: record diagnostic traps 2026-08-12 21:59:26 +03:00
docs/superpowers add subs updater implementation plan 2026-07-06 23:34:04 +03:00
mihomo warp: add awg2 rung, probe off cloudflare 2026-08-21 00:18:00 +03:00
.gitignore fix healtcheck 2026-06-26 11:43:54 +03:00
03_youtube_block_ipv6.lst Create 03_youtube_block_ipv6.lst 2025-10-30 05:29:03 +03:00
AGENTS.md warp: add awg2 rung, probe off cloudflare 2026-08-21 00:18:00 +03:00
ARCHITECTURE.md warp: add awg2 rung, probe off cloudflare 2026-08-21 00:18:00 +03:00
custom-set.txt vpn: drop fromsoftware-game.net 2026-08-20 22:12:31 +03:00
custom-set_cis.txt add tapeop.dev 2026-08-21 17:03:20 +03:00
dpi Update dpi 2025-12-13 17:00:11 +03:00
external-dns Update external-dns 2025-11-17 13:39:43 +03:00
faf-cf.txt Rename faf-cf.txx to faf-cf.txt 2026-02-22 11:48:54 +03:00
fetch-mihomo.sh fix healtcheck 2026-06-26 11:43:54 +03:00
google-fcm.txt Create google-fcm.txt 2026-01-01 03:02:17 +03:00
MIHOMO_INSTALL.md docs: record diagnostic traps 2026-08-12 21:59:26 +03:00
pbr pbr: route discord via warp 2026-08-13 17:16:33 +03:00
README.md docs: record diagnostic traps 2026-08-12 21:59:26 +03:00
REFERENCE_MAP.md pbr: route discord via warp 2026-08-13 17:16:33 +03:00
shell.nix remove local subs updater stack 2026-07-07 00:56:45 +03:00
tiktok-custom-dns Create tiktok-custom-dns 2026-02-20 01:35:17 +03:00
trace-app-domains.sh tools: add per-pid net tracer 2026-08-20 21:38:35 +03:00
wg2uci.sh Update wg2uci.sh 2026-04-17 07:47:42 +03:00
youtube-ipv6-block fix pathfinding 2025-10-30 05:50:01 +03:00

network-tools

spasibo

mihomo init script

wget https://raw.githubusercontent.com/labi-le/domains.lst/main/mihomo/init.d -O /etc/init.d/mihomo &&
chmod +x /etc/init.d/mihomo

mihomo uci config

wget https://raw.githubusercontent.com/labi-le/domains.lst/main/mihomo/config -O /etc/config/mihomo

mihomo static config

mkdir -p /etc/mihomo &&
wget https://raw.githubusercontent.com/labi-le/domains.lst/main/mihomo/config.yaml -O /etc/mihomo/config.yaml

disable the dnsmasq cache

Required. A caching dnsmasq pins a real address for its upstream TTL, while a correct fake-IP answer carries TTL 1 — see ARCHITECTURE.md.

uci set dhcp.@dnsmasq[0].cachesize='0' &&
uci commit dhcp &&
service dnsmasq restart

pbr

wget https://raw.githubusercontent.com/labi-le/domains.lst/main/pbr -O /etc/init.d/pbr &&
chmod +x /etc/init.d/pbr &&
service pbr enable &&
service pbr start

runtime layout

/etc/mihomo/config.yaml  -> static config
/tmp/mihomo/cache.db     -> mutable cache
/tmp/mihomo/rules/*      -> generated rule providers
/etc/mihomo/rules/*      -> persisted copy, seeded back into /tmp at boot
/tmp/mihomo/providers/*  -> downloaded proxy providers

block ipv6 youtube

wget https://raw.githubusercontent.com/labi-le/domains.lst/main/youtube-ipv6-block -O /etc/init.d/youtube-ipv6-block &&
chmod +x /etc/init.d/youtube-ipv6-block &&
service youtube-ipv6-block enable &&
service youtube-ipv6-block start

external-dns

wget https://raw.githubusercontent.com/labi-le/domains.lst/main/external-dns -O /etc/init.d/external-dns &&
chmod +x /etc/init.d/external-dns &&
service external-dns enable &&
service external-dns start

weekly refresh

service pbr enable only schedules pbr at boot — the crontab entry is a separate step, easy to forget.

sh -c '(crontab -l 2>/dev/null; echo "0 6 * * 0 /etc/init.d/pbr start") | crontab -'

Freshness is the mtime of the generated files, nothing else. A date older than a week means the refresh never ran, whatever service pbr enabled reports.

ls -l /etc/mihomo/rules/

packages

opkg install dnsmasq-full mihomo stubby ca-bundle curl amneziawg-tools kmod-amneziawg