Added foreign mihomo config
This commit is contained in:
parent
99e13e0307
commit
53306531a3
30
README.md
30
README.md
@ -1,6 +1,6 @@
|
|||||||
# mihomo-kit
|
# mihomo-kit
|
||||||
|
|
||||||
Конфиги mihomo из одного набора шаблонов: роутер под nikki (профили `main` — обычный, дома или за рубежом, и `whitelist` — белые списки)
|
Конфиги mihomo из одного набора шаблонов: роутер под nikki (профили `main` — дома в России, `whitelist` — белые списки, `foreign` — за рубежом)
|
||||||
и телефон (FlClash). Подписки через BOOT-ноду, `ru-inside` напрямую, остальные `.ru`
|
и телефон (FlClash). Подписки через BOOT-ноду, `ru-inside` напрямую, остальные `.ru`
|
||||||
через RU, опционально OpenVPN с TOTP и Tailscale.
|
через RU, опционально OpenVPN с TOTP и Tailscale.
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ ssh root@192.168.32.1 sh /etc/nikki/kit/install.sh
|
|||||||
ничего не спрашивает. Дальше всё в браузере: LuCI → **Службы → mihomo-kit → Настройка**
|
ничего не спрашивает. Дальше всё в браузере: LuCI → **Службы → mihomo-kit → Настройка**
|
||||||
(адрес установщик печатает в конце; если пункта нет — выйти из LuCI и войти снова).
|
(адрес установщик печатает в конце; если пункта нет — выйти из LuCI и войти снова).
|
||||||
Там подписки, vless-ссылки BOOT, торренты, OpenVPN (файл `.ovpn`, логин, пароль,
|
Там подписки, vless-ссылки BOOT, торренты, OpenVPN (файл `.ovpn`, логин, пароль,
|
||||||
TOTP-секрет), Tailscale; «Сохранить и применить» собирает профили `main` и `whitelist`,
|
TOTP-секрет), Tailscale; «Сохранить и применить» собирает профили `main`, `whitelist` и `foreign`,
|
||||||
включает профиль и, если включён Tailscale, показывает ссылку для входа — открыть её,
|
включает профиль и, если включён Tailscale, показывает ссылку для входа — открыть её,
|
||||||
войти, в админке Tailscale **Disable key expiry** для ноды.
|
войти, в админке Tailscale **Disable key expiry** для ноды.
|
||||||
|
|
||||||
@ -59,7 +59,8 @@ cron каждый день в 4:00 по времени роутера (часо
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
mihomo-kit.sh use whitelist # попал на белые списки
|
mihomo-kit.sh use whitelist # попал на белые списки
|
||||||
mihomo-kit.sh use main # обычный интернет (дома или за рубежом)
|
mihomo-kit.sh use main # обычный интернет в России
|
||||||
|
mihomo-kit.sh use foreign # за рубежом: российское через RU, остальное напрямую
|
||||||
|
|
||||||
bmstu-otp.sh off # OpenVPN выключить: освободить сессию для другого устройства
|
bmstu-otp.sh off # OpenVPN выключить: освободить сессию для другого устройства
|
||||||
bmstu-otp.sh on # включить обратно
|
bmstu-otp.sh on # включить обратно
|
||||||
@ -177,13 +178,20 @@ RU-адреса, без OpenVPN, Tailscale, торрентов и `PUSH`; сво
|
|||||||
|
|
||||||
## Профили
|
## Профили
|
||||||
|
|
||||||
| | роутер `main` | роутер `whitelist` | телефон |
|
| | роутер `main` | роутер `whitelist` | роутер `foreign` | телефон |
|
||||||
|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| подписки через BOOT | ✓ | ✓ | ✓ |
|
| подписки через `BOOT-AUTO` | ✓ | ✓ | ✓ | ✓ |
|
||||||
| `ru-inside` напрямую, остальные `.ru` через RU | ✓ | ✓ | ✓ |
|
| `ru-inside` | напрямую | напрямую | через RU | напрямую |
|
||||||
| торренты (порты 20000–20199) | ✓ | ✓ | — |
|
| остальные `.ru` / `.рф` | через RU | через RU | через RU | через RU |
|
||||||
| OpenVPN | напрямую | через `OVPN-EXIT` (RU-нода) | — |
|
| всё остальное (`MAIN`) | `FOREIGN` | `FOREIGN` | напрямую (можно `MY`) | `FOREIGN` |
|
||||||
| Tailscale | напрямую | через `MY` (свои hysteria2), без них напрямую* | — |
|
| торренты (порты 20000–20199) | ✓ | ✓ | ✓ | — |
|
||||||
|
| OpenVPN | напрямую | через `OVPN-EXIT` (RU-нода) | через `OVPN-EXIT` (RU-нода) | — |
|
||||||
|
| Tailscale | напрямую | через `MY` (свои hysteria2), без них напрямую* | напрямую | — |
|
||||||
|
| свои серверы | напрямую | через `MY-EXIT` | напрямую | через `MY-EXIT` |
|
||||||
|
| пуши (`PUSH`) | `DIRECT` | `MY` | `DIRECT` | — |
|
||||||
|
|
||||||
|
На `foreign` российские домены не попадают в исключения fake-ip: их разрешает RU-нода, а
|
||||||
|
для прямого трафика DNS — Cloudflare/Google вместо Яндекса.
|
||||||
|
|
||||||
\* Встроенный Tailscale в официальном mihomo через прокси не работает: при `dialer-proxy`
|
\* Встроенный Tailscale в официальном mihomo через прокси не работает: при `dialer-proxy`
|
||||||
он открывает UDP-сокет без адреса назначения, и любой прокси mihomo падает на его
|
он открывает UDP-сокет без адреса назначения, и любой прокси mihomo падает на его
|
||||||
@ -248,7 +256,7 @@ tests/fixtures/ профили для test.sh (фиктивные секре
|
|||||||
- `${@VAR}` — строка повторяется для каждого слова из `VAR`;
|
- `${@VAR}` — строка повторяется для каждого слова из `VAR`;
|
||||||
- `${VAR}` — подстановка.
|
- `${VAR}` — подстановка.
|
||||||
|
|
||||||
Теги: `base`, `sub`, `router`|`mobile`, `main`|`whitelist` (роутер), `boot`, `torrent`,
|
Теги: `base`, `sub`, `router`|`mobile`, `main`|`whitelist`|`foreign` (роутер), служебные `ovpn_exit` (whitelist, foreign), `hy2_exit` (whitelist, телефон), `boot`, `torrent`,
|
||||||
`openvpn`, `tailscale`, `ts_exit`, `hy2`. Значения по умолчанию — `set_defaults` в
|
`openvpn`, `tailscale`, `ts_exit`, `hy2`. Значения по умолчанию — `set_defaults` в
|
||||||
`router/mihomo-kit.sh` и `DEFAULTS` в `web/engine.js` (держать одинаковыми).
|
`router/mihomo-kit.sh` и `DEFAULTS` в `web/engine.js` (держать одинаковыми).
|
||||||
|
|
||||||
|
|||||||
3
presets/foreign.env
Normal file
3
presets/foreign.env
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# foreign (abroad): .ru and ru-inside through the RU pool, the rest direct (MAIN: DIRECT,
|
||||||
|
# own servers by hand), OpenVPN through OVPN-EXIT (a RU node), Tailscale and own servers direct
|
||||||
|
LOCATION=foreign
|
||||||
@ -119,6 +119,8 @@ compute_tags() {
|
|||||||
HY2_LIST="${HY2_LIST:+$HY2_LIST, }$_n"
|
HY2_LIST="${HY2_LIST:+$HY2_LIST, }$_n"
|
||||||
done
|
done
|
||||||
[ -n "$HY2" ] && TAGS="$TAGS hy2 " HY2_MAIN="MY, "
|
[ -n "$HY2" ] && TAGS="$TAGS hy2 " HY2_MAIN="MY, "
|
||||||
|
# OpenVPN through OVPN-EXIT (a RU node): whitelist and abroad
|
||||||
|
case "$TAGS" in *" router "*" whitelist "* | *" router "*" foreign "*) TAGS="$TAGS ovpn_exit " ;; esac
|
||||||
# own servers through MY-EXIT: whitelist and the phone (often on whitelists)
|
# own servers through MY-EXIT: whitelist and the phone (often on whitelists)
|
||||||
case "$TAGS" in *" hy2 "*" whitelist "* | *" whitelist "*" hy2 "* | *" hy2 "*" mobile "* | *" mobile "*" hy2 "*)
|
case "$TAGS" in *" hy2 "*" whitelist "* | *" whitelist "*" hy2 "* | *" hy2 "*" mobile "* | *" mobile "*" hy2 "*)
|
||||||
TAGS="$TAGS hy2_exit " ;;
|
TAGS="$TAGS hy2_exit " ;;
|
||||||
@ -232,7 +234,7 @@ sub_off() { [ "$(sub_get "$1" "$2" DISABLED)" = 1 ]; }
|
|||||||
check_vars() {
|
check_vars() {
|
||||||
[ -n "$SUBS" ] || die "SUBS is empty (subscription URLs)"
|
[ -n "$SUBS" ] || die "SUBS is empty (subscription URLs)"
|
||||||
case "$TARGET" in router | mobile) ;; *) die "TARGET must be router or mobile" ;; esac
|
case "$TARGET" in router | mobile) ;; *) die "TARGET must be router or mobile" ;; esac
|
||||||
case "$LOCATION" in main | whitelist) ;; *) die "LOCATION must be main or whitelist" ;; esac
|
case "$LOCATION" in main | whitelist | foreign) ;; *) die "LOCATION must be main, whitelist or foreign" ;; esac
|
||||||
if [ "$BOOT" = 1 ]; then
|
if [ "$BOOT" = 1 ]; then
|
||||||
[ -n "$SEED_ITEMS" ] || die "BOOT=1 but no BOOT_LINKS (vless links of the seed nodes)"
|
[ -n "$SEED_ITEMS" ] || die "BOOT=1 but no BOOT_LINKS (vless links of the seed nodes)"
|
||||||
for _it in $SEED_ITEMS; do
|
for _it in $SEED_ITEMS; do
|
||||||
@ -772,6 +774,12 @@ install_files() {
|
|||||||
mkdir -p "$PROFILES_D"
|
mkdir -p "$PROFILES_D"
|
||||||
chmod 700 "$PROFILES_D"
|
chmod 700 "$PROFILES_D"
|
||||||
migrate_profiles
|
migrate_profiles
|
||||||
|
# new presets (e.g. foreign) for routers that are already set up
|
||||||
|
if [ -f "$PROFILES_D/common.env" ]; then
|
||||||
|
for f in "$KIT_DIR"/presets/*.env; do
|
||||||
|
[ -f "$PROFILES_D/${f##*/}" ] || { cp "$f" "$PROFILES_D/" && chmod 600 "$PROFILES_D/${f##*/}"; }
|
||||||
|
done
|
||||||
|
fi
|
||||||
install_luci
|
install_luci
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,8 @@
|
|||||||
# router | mobile (mobile: no torrent/OpenVPN/Tailscale, FlClash-style DNS)
|
# router | mobile (mobile: no torrent/OpenVPN/Tailscale, FlClash-style DNS)
|
||||||
TARGET=router
|
TARGET=router
|
||||||
# main: normal use (home in Russia or abroad), OpenVPN/Tailscale/own servers go direct;
|
# main: normal use (home in Russia or abroad), OpenVPN/Tailscale/own servers go direct;
|
||||||
# whitelist: OpenVPN through OVPN-EXIT (RU node), own servers through MY-EXIT, Tailscale through MY
|
# whitelist: OpenVPN through OVPN-EXIT (RU node), own servers through MY-EXIT, Tailscale through MY;
|
||||||
|
# foreign (abroad): ru-inside and .ru through RU, the rest direct, OpenVPN through OVPN-EXIT
|
||||||
LOCATION=main
|
LOCATION=main
|
||||||
|
|
||||||
# subscription URLs, space separated. Provider name = id from the domain
|
# subscription URLs, space separated. Provider name = id from the domain
|
||||||
|
|||||||
@ -7,9 +7,9 @@ dns:
|
|||||||
fake-ip-filter:
|
fake-ip-filter:
|
||||||
- '*.lan'
|
- '*.lan'
|
||||||
- '*.local' #@router
|
- '*.local' #@router
|
||||||
- '+.ru'
|
- '+.ru' #@!foreign
|
||||||
- '+.xn--p1ai' #@router
|
- '+.xn--p1ai' #@router,!foreign
|
||||||
- geosite:ru-inside #@router
|
- geosite:ru-inside #@router,!foreign
|
||||||
# tailnet names: real 100.x addresses from MagicDNS (nameserver-policy below) #@tailscale
|
# tailnet names: real 100.x addresses from MagicDNS (nameserver-policy below) #@tailscale
|
||||||
- '+.ts.net' #@tailscale
|
- '+.ts.net' #@tailscale
|
||||||
- '+.${@TS_DOMAINS}' #@tailscale
|
- '+.${@TS_DOMAINS}' #@tailscale
|
||||||
@ -23,8 +23,10 @@ dns:
|
|||||||
- https://77.88.8.8/dns-query
|
- https://77.88.8.8/dns-query
|
||||||
|
|
||||||
direct-nameserver:
|
direct-nameserver:
|
||||||
- 77.88.8.8
|
- 77.88.8.8 #@!foreign
|
||||||
- 77.88.8.1
|
- 77.88.8.1 #@!foreign
|
||||||
|
- 1.1.1.1 #@foreign
|
||||||
|
- 8.8.8.8 #@foreign
|
||||||
|
|
||||||
nameserver:
|
nameserver:
|
||||||
- https://1.1.1.1/dns-query #@router
|
- https://1.1.1.1/dns-query #@router
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# what the OpenVPN tunnel itself goes through on a whitelisted network.
|
# what the OpenVPN tunnel itself goes through on whitelist and foreign (ovpn_exit).
|
||||||
# select, not url-test: switching nodes would break the tunnel.
|
# select, not url-test: switching nodes would break the tunnel.
|
||||||
# Pick a concrete RU node in the dashboard, the choice is remembered.
|
# Pick a concrete RU node in the dashboard, the choice is remembered.
|
||||||
- name: OVPN-EXIT
|
- name: OVPN-EXIT
|
||||||
@ -1,3 +1,5 @@
|
|||||||
- name: MAIN
|
- name: MAIN
|
||||||
type: select
|
type: select
|
||||||
proxies: [FOREIGN, ${HY2_MAIN}RU, DIRECT]
|
proxies: [FOREIGN, ${HY2_MAIN}RU, DIRECT] #@!foreign
|
||||||
|
# abroad: direct by default, own servers / pools by hand #@foreign
|
||||||
|
proxies: [DIRECT, ${HY2_MAIN}FOREIGN, RU] #@foreign
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
- name: PUSH
|
- name: PUSH
|
||||||
type: select
|
type: select
|
||||||
proxies: [DIRECT, ${HY2_MAIN}FOREIGN] #@main
|
proxies: [DIRECT, ${HY2_MAIN}FOREIGN] #@!whitelist
|
||||||
proxies: [${HY2_MAIN}FOREIGN, DIRECT] #@whitelist
|
proxies: [${HY2_MAIN}FOREIGN, DIRECT] #@whitelist
|
||||||
|
|||||||
@ -6,5 +6,5 @@
|
|||||||
path: ./providers/${OVPN_PROVIDER}.yaml
|
path: ./providers/${OVPN_PROVIDER}.yaml
|
||||||
health-check:
|
health-check:
|
||||||
enable: false
|
enable: false
|
||||||
override: #@whitelist
|
override: #@ovpn_exit
|
||||||
dialer-proxy: OVPN-EXIT #@whitelist
|
dialer-proxy: OVPN-EXIT #@ovpn_exit
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
# OpenVPN server itself must not go into its own tunnel
|
# OpenVPN server itself must not go into its own tunnel
|
||||||
- IP-CIDR,${@OVPN_SERVER_IPS}/32,DIRECT,no-resolve #@main
|
- IP-CIDR,${@OVPN_SERVER_IPS}/32,DIRECT,no-resolve #@!ovpn_exit
|
||||||
- IP-CIDR,${@OVPN_SERVER_IPS}/32,OVPN-EXIT,no-resolve #@whitelist
|
- IP-CIDR,${@OVPN_SERVER_IPS}/32,OVPN-EXIT,no-resolve #@ovpn_exit
|
||||||
- DOMAIN,${OVPN_SERVER_HOST},DIRECT #@main
|
- DOMAIN,${OVPN_SERVER_HOST},DIRECT #@!ovpn_exit
|
||||||
- DOMAIN,${OVPN_SERVER_HOST},OVPN-EXIT #@whitelist
|
- DOMAIN,${OVPN_SERVER_HOST},OVPN-EXIT #@ovpn_exit
|
||||||
# networks pushed by the server (before the private-range DIRECT rules)
|
# networks pushed by the server (before the private-range DIRECT rules)
|
||||||
- IP-CIDR,${@OVPN_ROUTES},${OVPN_GROUP},no-resolve
|
- IP-CIDR,${@OVPN_ROUTES},${OVPN_GROUP},no-resolve
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
# push notifications (Apple APNs, Google FCM): long-lived connections on a
|
# push notifications (Apple APNs, Google FCM): long-lived connections on a
|
||||||
# stable path - group PUSH (main: DIRECT, whitelist: MY)
|
# stable path - group PUSH (main/foreign: DIRECT, whitelist: MY)
|
||||||
- DOMAIN-SUFFIX,push.apple.com,PUSH
|
- DOMAIN-SUFFIX,push.apple.com,PUSH
|
||||||
- IP-CIDR,17.249.0.0/16,PUSH,no-resolve
|
- IP-CIDR,17.249.0.0/16,PUSH,no-resolve
|
||||||
- IP-CIDR,17.252.0.0/16,PUSH,no-resolve
|
- IP-CIDR,17.252.0.0/16,PUSH,no-resolve
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
- GEOSITE,ru-inside,DIRECT
|
- GEOSITE,ru-inside,DIRECT #@!foreign
|
||||||
|
# abroad: Russian services through the RU pool too #@foreign
|
||||||
|
- GEOSITE,ru-inside,RU #@foreign
|
||||||
- DOMAIN-SUFFIX,ru,RU
|
- DOMAIN-SUFFIX,ru,RU
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,RU
|
- DOMAIN-SUFFIX,xn--p1ai,RU
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
8
tests/fixtures/router-foreign.env
vendored
Normal file
8
tests/fixtures/router-foreign.env
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
TARGET=router
|
||||||
|
LOCATION=foreign
|
||||||
|
OPENVPN=1
|
||||||
|
TAILSCALE=1
|
||||||
|
HY2=nl-1
|
||||||
|
HY2_NL_1_SERVER=vpn.example.com
|
||||||
|
HY2_NL_1_PORT=443
|
||||||
|
HY2_NL_1_PASSWORD=p
|
||||||
@ -129,7 +129,7 @@
|
|||||||
function check(v) {
|
function check(v) {
|
||||||
if (!words(v.SUBS).length) throw new Error("SUBS is empty (subscription URLs)");
|
if (!words(v.SUBS).length) throw new Error("SUBS is empty (subscription URLs)");
|
||||||
if (!["router", "mobile"].includes(v.TARGET)) throw new Error("TARGET must be router or mobile");
|
if (!["router", "mobile"].includes(v.TARGET)) throw new Error("TARGET must be router or mobile");
|
||||||
if (!["main", "whitelist"].includes(v.LOCATION)) throw new Error("LOCATION must be main or whitelist");
|
if (!["main", "whitelist", "foreign"].includes(v.LOCATION)) throw new Error("LOCATION must be main, whitelist or foreign");
|
||||||
if (v.BOOT === "1") {
|
if (v.BOOT === "1") {
|
||||||
const seeds = bootSeeds(v);
|
const seeds = bootSeeds(v);
|
||||||
if (!seeds.length) throw new Error("BOOT=1 but no BOOT_LINKS (vless links of the seed nodes)");
|
if (!seeds.length) throw new Error("BOOT=1 but no BOOT_LINKS (vless links of the seed nodes)");
|
||||||
@ -197,6 +197,8 @@
|
|||||||
if (v.TS_EXIT === "1") t.add("ts_exit");
|
if (v.TS_EXIT === "1") t.add("ts_exit");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// OpenVPN through OVPN-EXIT: whitelist and abroad (see compute_tags)
|
||||||
|
if (t.has("router") && (t.has("whitelist") || t.has("foreign"))) t.add("ovpn_exit");
|
||||||
// own servers through MY-EXIT: whitelist and the phone (see compute_tags)
|
// own servers through MY-EXIT: whitelist and the phone (see compute_tags)
|
||||||
if (t.has("hy2") && (t.has("whitelist") || t.has("mobile"))) t.add("hy2_exit");
|
if (t.has("hy2") && (t.has("whitelist") || t.has("mobile"))) t.add("hy2_exit");
|
||||||
return t;
|
return t;
|
||||||
|
|||||||
@ -97,6 +97,7 @@
|
|||||||
<div class="seg" data-router>
|
<div class="seg" data-router>
|
||||||
<label><input type="radio" name="LOCATION" value="main" checked>Обычный</label>
|
<label><input type="radio" name="LOCATION" value="main" checked>Обычный</label>
|
||||||
<label><input type="radio" name="LOCATION" value="whitelist">Белые списки</label>
|
<label><input type="radio" name="LOCATION" value="whitelist">Белые списки</label>
|
||||||
|
<label><input type="radio" name="LOCATION" value="foreign">За рубежом</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="hint" data-router>Обычный — дома в России или за рубежом. Белые списки: OpenVPN через выбранную RU-ноду (группа OVPN-EXIT), свои серверы через MY-EXIT.</p>
|
<p class="hint" data-router>Обычный — дома в России или за рубежом. Белые списки: OpenVPN через выбранную RU-ноду (группа OVPN-EXIT), свои серверы через MY-EXIT.</p>
|
||||||
@ -317,7 +318,7 @@
|
|||||||
function check(v) {
|
function check(v) {
|
||||||
if (!words(v.SUBS).length) throw new Error("SUBS is empty (subscription URLs)");
|
if (!words(v.SUBS).length) throw new Error("SUBS is empty (subscription URLs)");
|
||||||
if (!["router", "mobile"].includes(v.TARGET)) throw new Error("TARGET must be router or mobile");
|
if (!["router", "mobile"].includes(v.TARGET)) throw new Error("TARGET must be router or mobile");
|
||||||
if (!["main", "whitelist"].includes(v.LOCATION)) throw new Error("LOCATION must be main or whitelist");
|
if (!["main", "whitelist", "foreign"].includes(v.LOCATION)) throw new Error("LOCATION must be main, whitelist or foreign");
|
||||||
if (v.BOOT === "1") {
|
if (v.BOOT === "1") {
|
||||||
const seeds = bootSeeds(v);
|
const seeds = bootSeeds(v);
|
||||||
if (!seeds.length) throw new Error("BOOT=1 but no BOOT_LINKS (vless links of the seed nodes)");
|
if (!seeds.length) throw new Error("BOOT=1 but no BOOT_LINKS (vless links of the seed nodes)");
|
||||||
@ -385,6 +386,8 @@
|
|||||||
if (v.TS_EXIT === "1") t.add("ts_exit");
|
if (v.TS_EXIT === "1") t.add("ts_exit");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// OpenVPN through OVPN-EXIT: whitelist and abroad (see compute_tags)
|
||||||
|
if (t.has("router") && (t.has("whitelist") || t.has("foreign"))) t.add("ovpn_exit");
|
||||||
// own servers through MY-EXIT: whitelist and the phone (see compute_tags)
|
// own servers through MY-EXIT: whitelist and the phone (see compute_tags)
|
||||||
if (t.has("hy2") && (t.has("whitelist") || t.has("mobile"))) t.add("hy2_exit");
|
if (t.has("hy2") && (t.has("whitelist") || t.has("mobile"))) t.add("hy2_exit");
|
||||||
return t;
|
return t;
|
||||||
@ -488,32 +491,32 @@
|
|||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
const TEMPLATES = {
|
const TEMPLATES = {
|
||||||
"dns/10-base.yaml": "dns:\n enable: true\n ipv6: false\n respect-rules: true\n enhanced-mode: fake-ip\n fake-ip-range: 198.18.0.1/16\n fake-ip-filter:\n - '*.lan'\n - '*.local' #@router\n - '+.ru'\n - '+.xn--p1ai' #@router\n - geosite:ru-inside #@router\n # tailnet names: real 100.x addresses from MagicDNS (nameserver-policy below) #@tailscale\n - '+.ts.net' #@tailscale\n - '+.${@TS_DOMAINS}' #@tailscale\n\n default-nameserver:\n - 77.88.8.8\n - 1.1.1.1 #@router\n - 223.5.5.5 #@mobile\n\n proxy-server-nameserver:\n - https://77.88.8.8/dns-query\n\n direct-nameserver:\n - 77.88.8.8\n - 77.88.8.1\n\n nameserver:\n - https://1.1.1.1/dns-query #@router\n - https://dns.google/dns-query\n - https://1.1.1.1/dns-query #@mobile\n\n # MagicDNS of the embedded Tailscale (the proxy named \"tailscale\") #@tailscale\n nameserver-policy: #@tailscale\n '+.ts.net': tailscale://tailscale #@tailscale\n '+.${@TS_DOMAINS}': tailscale://tailscale #@tailscale\n",
|
"dns/10-base.yaml": "dns:\n enable: true\n ipv6: false\n respect-rules: true\n enhanced-mode: fake-ip\n fake-ip-range: 198.18.0.1/16\n fake-ip-filter:\n - '*.lan'\n - '*.local' #@router\n - '+.ru' #@!foreign\n - '+.xn--p1ai' #@router,!foreign\n - geosite:ru-inside #@router,!foreign\n # tailnet names: real 100.x addresses from MagicDNS (nameserver-policy below) #@tailscale\n - '+.ts.net' #@tailscale\n - '+.${@TS_DOMAINS}' #@tailscale\n\n default-nameserver:\n - 77.88.8.8\n - 1.1.1.1 #@router\n - 223.5.5.5 #@mobile\n\n proxy-server-nameserver:\n - https://77.88.8.8/dns-query\n\n direct-nameserver:\n - 77.88.8.8 #@!foreign\n - 77.88.8.1 #@!foreign\n - 1.1.1.1 #@foreign\n - 8.8.8.8 #@foreign\n\n nameserver:\n - https://1.1.1.1/dns-query #@router\n - https://dns.google/dns-query\n - https://1.1.1.1/dns-query #@mobile\n\n # MagicDNS of the embedded Tailscale (the proxy named \"tailscale\") #@tailscale\n nameserver-policy: #@tailscale\n '+.ts.net': tailscale://tailscale #@tailscale\n '+.${@TS_DOMAINS}': tailscale://tailscale #@tailscale\n",
|
||||||
"groups/10-boot.yaml": " # BOOT: whitelisted entry nodes (BOOT_LINKS), the first alive one\n - name: BOOT\n type: fallback\n proxies: [${SEED_LIST}]\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n lazy: false\n",
|
"groups/10-boot.yaml": " # BOOT: whitelisted entry nodes (BOOT_LINKS), the first alive one\n - name: BOOT\n type: fallback\n proxies: [${SEED_LIST}]\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n lazy: false\n",
|
||||||
"groups/15-sub.yaml": " # default for downloading subscriptions: BOOT (if set), else the nodes of the\n # saved subscriptions (providers are cached on disk), else direct. FOREIGN goes\n # before DIRECT: the health check of DIRECT (gstatic) passes in Russia even when\n # the subscription site itself is blocked.\n - name: BOOT-AUTO\n type: fallback\n proxies: [BOOT, FOREIGN, DIRECT] #@boot\n proxies: [FOREIGN, DIRECT] #@!boot\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n lazy: false\n",
|
"groups/15-sub.yaml": " # default for downloading subscriptions: BOOT (if set), else the nodes of the\n # saved subscriptions (providers are cached on disk), else direct. FOREIGN goes\n # before DIRECT: the health check of DIRECT (gstatic) passes in Russia even when\n # the subscription site itself is blocked.\n - name: BOOT-AUTO\n type: fallback\n proxies: [BOOT, FOREIGN, DIRECT] #@boot\n proxies: [FOREIGN, DIRECT] #@!boot\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n lazy: false\n",
|
||||||
"groups/20-sub.yaml": " - name: RU\n type: url-test\n use: [${SUB_LIST}]\n filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\"\n url: \"https://ya.ru\"\n interval: 300\n tolerance: 50\n lazy: false\n\n - name: FOREIGN\n type: url-test\n use: [${SUB_LIST}]\n exclude-filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\"\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n tolerance: 50\n lazy: false\n",
|
"groups/20-sub.yaml": " - name: RU\n type: url-test\n use: [${SUB_LIST}]\n filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\"\n url: \"https://ya.ru\"\n interval: 300\n tolerance: 50\n lazy: false\n\n - name: FOREIGN\n type: url-test\n use: [${SUB_LIST}]\n exclude-filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\"\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n tolerance: 50\n lazy: false\n",
|
||||||
"groups/30-torrent.yaml": " - name: TORRENT\n type: url-test\n use: [${SUB_LIST}]\n filter: \"(?i)torrent|\\\\[tor\\\\]\"\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n timeout: 6000\n tolerance: 500\n max-failed-times: 5\n lazy: false\n",
|
"groups/30-torrent.yaml": " - name: TORRENT\n type: url-test\n use: [${SUB_LIST}]\n filter: \"(?i)torrent|\\\\[tor\\\\]\"\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n timeout: 6000\n tolerance: 500\n max-failed-times: 5\n lazy: false\n",
|
||||||
"groups/40-openvpn.yaml": " # url: what the dashboard's delay test opens through the tunnel;\n # interval 0: no background checks (they would redial with a stale OTP)\n - name: ${OVPN_GROUP}\n type: select\n use: [${OVPN_PROVIDER}]\n url: \"${OVPN_CHECK_URL}\"\n interval: 0\n",
|
"groups/40-openvpn.yaml": " # url: what the dashboard's delay test opens through the tunnel;\n # interval 0: no background checks (they would redial with a stale OTP)\n - name: ${OVPN_GROUP}\n type: select\n use: [${OVPN_PROVIDER}]\n url: \"${OVPN_CHECK_URL}\"\n interval: 0\n",
|
||||||
"groups/41-openvpn.whitelist.yaml": " # what the OpenVPN tunnel itself goes through on a whitelisted network.\n # select, not url-test: switching nodes would break the tunnel.\n # Pick a concrete RU node in the dashboard, the choice is remembered.\n - name: OVPN-EXIT\n type: select\n use: [${SUB_LIST}]\n filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\"\n",
|
"groups/41-openvpn.ovpn_exit.yaml": " # what the OpenVPN tunnel itself goes through on whitelist and foreign (ovpn_exit).\n # select, not url-test: switching nodes would break the tunnel.\n # Pick a concrete RU node in the dashboard, the choice is remembered.\n - name: OVPN-EXIT\n type: select\n use: [${SUB_LIST}]\n filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\"\n",
|
||||||
"groups/45-hy2.yaml": " # own hysteria2 servers: the fastest alive one; pin one in the dashboard if needed\n - name: MY\n type: url-test\n proxies: [${HY2_LIST}]\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n tolerance: 50\n lazy: false\n\n # whitelist and mobile (hy2_exit): what own servers are reached through; switches only when the node is\n # clearly worse or dead (each switch breaks everything going through MY)\n - name: MY-EXIT #@hy2_exit\n type: url-test #@hy2_exit\n use: [${SUB_LIST}] #@hy2_exit\n exclude-filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\" #@hy2_exit\n url: \"https://www.gstatic.com/generate_204\" #@hy2_exit\n interval: 300 #@hy2_exit\n tolerance: 300 #@hy2_exit\n lazy: false #@hy2_exit\n",
|
"groups/45-hy2.yaml": " # own hysteria2 servers: the fastest alive one; pin one in the dashboard if needed\n - name: MY\n type: url-test\n proxies: [${HY2_LIST}]\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n tolerance: 50\n lazy: false\n\n # whitelist and mobile (hy2_exit): what own servers are reached through; switches only when the node is\n # clearly worse or dead (each switch breaks everything going through MY)\n - name: MY-EXIT #@hy2_exit\n type: url-test #@hy2_exit\n use: [${SUB_LIST}] #@hy2_exit\n exclude-filter: \"(?i)🇷🇺|\\\\bru\\\\b|russia|росси|моск\" #@hy2_exit\n url: \"https://www.gstatic.com/generate_204\" #@hy2_exit\n interval: 300 #@hy2_exit\n tolerance: 300 #@hy2_exit\n lazy: false #@hy2_exit\n",
|
||||||
"groups/50-tailscale.yaml": " # url (TS_CHECK_URL, optional): a tailnet service for the dashboard's delay test\n - name: TAILSCALE\n type: select\n proxies: [tailscale]\n url: \"${@TS_CHECK_URL}\"\n interval: 0\n",
|
"groups/50-tailscale.yaml": " # url (TS_CHECK_URL, optional): a tailnet service for the dashboard's delay test\n - name: TAILSCALE\n type: select\n proxies: [tailscale]\n url: \"${@TS_CHECK_URL}\"\n interval: 0\n",
|
||||||
"groups/51-tailscale.ts_exit.yaml": " # Tailscale needs full-cone UDP from its dialer-proxy: vless/vmess/trojan\n # cannot do it in mihomo, so only ss / hysteria2 / tuic / socks5 nodes here.\n - name: TS-EXIT\n type: select\n proxies: [MY] #@hy2\n use: [${SUB_LIST}]\n exclude-type: \"vless|vmess|trojan\"\n",
|
"groups/51-tailscale.ts_exit.yaml": " # Tailscale needs full-cone UDP from its dialer-proxy: vless/vmess/trojan\n # cannot do it in mihomo, so only ss / hysteria2 / tuic / socks5 nodes here.\n - name: TS-EXIT\n type: select\n proxies: [MY] #@hy2\n use: [${SUB_LIST}]\n exclude-type: \"vless|vmess|trojan\"\n",
|
||||||
"groups/90-base.yaml": " - name: MAIN\n type: select\n proxies: [FOREIGN, ${HY2_MAIN}RU, DIRECT]\n",
|
"groups/90-base.yaml": " - name: MAIN\n type: select\n proxies: [FOREIGN, ${HY2_MAIN}RU, DIRECT] #@!foreign\n # abroad: direct by default, own servers / pools by hand #@foreign\n proxies: [DIRECT, ${HY2_MAIN}FOREIGN, RU] #@foreign\n",
|
||||||
"groups/91-torrent.yaml": " - name: TORRENT-SEL\n type: select\n proxies: [TORRENT, FOREIGN, DIRECT]\n",
|
"groups/91-torrent.yaml": " - name: TORRENT-SEL\n type: select\n proxies: [TORRENT, FOREIGN, DIRECT]\n",
|
||||||
"groups/92-base.router.yaml": " - name: PUSH\n type: select\n proxies: [DIRECT, ${HY2_MAIN}FOREIGN] #@main\n proxies: [${HY2_MAIN}FOREIGN, DIRECT] #@whitelist\n",
|
"groups/92-base.router.yaml": " - name: PUSH\n type: select\n proxies: [DIRECT, ${HY2_MAIN}FOREIGN] #@!whitelist\n proxies: [${HY2_MAIN}FOREIGN, DIRECT] #@whitelist\n",
|
||||||
"head/10-base.yaml": "geodata-mode: true\ngeodata-loader: memconservative\ngeo-auto-update: true\ngeo-update-interval: 24\ngeox-url:\n geoip: \"${GEOIP_URL}\"\n geosite: \"${GEOSITE_URL}\"\n",
|
"head/10-base.yaml": "geodata-mode: true\ngeodata-loader: memconservative\ngeo-auto-update: true\ngeo-update-interval: 24\ngeox-url:\n geoip: \"${GEOIP_URL}\"\n geosite: \"${GEOSITE_URL}\"\n",
|
||||||
"providers/10-sub.each.yaml": " ${SUB_NAME}:\n type: http\n url: \"${SUB_URL}\"\n path: ./providers/${SUB_NAME}.yaml\n interval: 3600\n proxy: ${@SUB_PROXY}\n exclude-filter: \"(?i)app not supported|приложение не|свяжитесь\"\n header:\n User-Agent: [\"${SUB_UA}\"]\n ${@@SUB_HEADERS}\n health-check:\n enable: true\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n timeout: 3000\n lazy: false\n",
|
"providers/10-sub.each.yaml": " ${SUB_NAME}:\n type: http\n url: \"${SUB_URL}\"\n path: ./providers/${SUB_NAME}.yaml\n interval: 3600\n proxy: ${@SUB_PROXY}\n exclude-filter: \"(?i)app not supported|приложение не|свяжитесь\"\n header:\n User-Agent: [\"${SUB_UA}\"]\n ${@@SUB_HEADERS}\n health-check:\n enable: true\n url: \"https://www.gstatic.com/generate_204\"\n interval: 300\n timeout: 3000\n lazy: false\n",
|
||||||
"providers/20-openvpn.yaml": " # OpenVPN: file written on the router by bmstu-otp.sh (fresh TOTP in the\n # password). No health-check here: a dead tunnel would be redialed with a\n # stale OTP; the cron watchdog (bmstu-otp.sh check) handles it.\n ${OVPN_PROVIDER}:\n type: file\n path: ./providers/${OVPN_PROVIDER}.yaml\n health-check:\n enable: false\n override: #@whitelist\n dialer-proxy: OVPN-EXIT #@whitelist\n",
|
"providers/20-openvpn.yaml": " # OpenVPN: file written on the router by bmstu-otp.sh (fresh TOTP in the\n # password). No health-check here: a dead tunnel would be redialed with a\n # stale OTP; the cron watchdog (bmstu-otp.sh check) handles it.\n ${OVPN_PROVIDER}:\n type: file\n path: ./providers/${OVPN_PROVIDER}.yaml\n health-check:\n enable: false\n override: #@ovpn_exit\n dialer-proxy: OVPN-EXIT #@ovpn_exit\n",
|
||||||
"proxies/10-boot.each.yaml": " - name: ${SEED_NAME}\n type: vless\n server: ${SEED_SERVER}\n port: ${SEED_PORT}\n uuid: ${SEED_UUID}\n network: tcp\n udp: true\n tls: true\n flow: xtls-rprx-vision\n servername: ${SEED_SNI}\n client-fingerprint: firefox\n reality-opts:\n public-key: ${SEED_PBK}\n short-id: ${SEED_SID}\n",
|
"proxies/10-boot.each.yaml": " - name: ${SEED_NAME}\n type: vless\n server: ${SEED_SERVER}\n port: ${SEED_PORT}\n uuid: ${SEED_UUID}\n network: tcp\n udp: true\n tls: true\n flow: xtls-rprx-vision\n servername: ${SEED_SNI}\n client-fingerprint: firefox\n reality-opts:\n public-key: ${SEED_PBK}\n short-id: ${SEED_SID}\n",
|
||||||
"proxies/20-tailscale.yaml": " # Tailscale: userspace node, starts on first use. First login: open the URL\n # from the nikki log (\"To start this tsnet server ... go to: ...\"), then\n # disable key expiry for this node. Needs TS_FORCE_NOISE_443=true in the\n # mihomo environment (mihomo-kit.sh fix).\n - name: tailscale\n type: tailscale\n hostname: ${TS_HOSTNAME}\n state-dir: ./tailscale\n udp: true\n accept-routes: true\n dialer-proxy: TS-EXIT #@ts_exit\n # whitelist: control and DERP over TCP through own servers (MY -> hysteria2 -> MY-EXIT); #@whitelist,hy2,!ts_exit\n # needs the kit's core (v1.19.32-ts1, tools/core/*.patch, MetaCubeX/mihomo#3142) #@whitelist,hy2,!ts_exit\n dialer-proxy: MY #@whitelist,hy2,!ts_exit\n",
|
"proxies/20-tailscale.yaml": " # Tailscale: userspace node, starts on first use. First login: open the URL\n # from the nikki log (\"To start this tsnet server ... go to: ...\"), then\n # disable key expiry for this node. Needs TS_FORCE_NOISE_443=true in the\n # mihomo environment (mihomo-kit.sh fix).\n - name: tailscale\n type: tailscale\n hostname: ${TS_HOSTNAME}\n state-dir: ./tailscale\n udp: true\n accept-routes: true\n dialer-proxy: TS-EXIT #@ts_exit\n # whitelist: control and DERP over TCP through own servers (MY -> hysteria2 -> MY-EXIT); #@whitelist,hy2,!ts_exit\n # needs the kit's core (v1.19.32-ts1, tools/core/*.patch, MetaCubeX/mihomo#3142) #@whitelist,hy2,!ts_exit\n dialer-proxy: MY #@whitelist,hy2,!ts_exit\n",
|
||||||
"proxies/30-hy2.each.yaml": " - name: ${HY2_NAME}\n type: hysteria2\n server: ${HY2_SERVER}\n port: ${HY2_PORT}\n password: \"${HY2_PASSWORD}\"\n obfs: ${@HY2_OBFS}\n obfs-password: \"${@@HY2_OBFS_PASSWORD}\"\n sni: ${@HY2_SNI}\n skip-cert-verify: ${HY2_INSECURE}\n up: \"${@@HY2_UP}\"\n down: \"${@@HY2_DOWN}\"\n udp: true\n dialer-proxy: MY-EXIT #@hy2_exit\n",
|
"proxies/30-hy2.each.yaml": " - name: ${HY2_NAME}\n type: hysteria2\n server: ${HY2_SERVER}\n port: ${HY2_PORT}\n password: \"${HY2_PASSWORD}\"\n obfs: ${@HY2_OBFS}\n obfs-password: \"${@@HY2_OBFS_PASSWORD}\"\n sni: ${@HY2_SNI}\n skip-cert-verify: ${HY2_INSECURE}\n up: \"${@@HY2_UP}\"\n down: \"${@@HY2_DOWN}\"\n udp: true\n dialer-proxy: MY-EXIT #@hy2_exit\n",
|
||||||
"rules/10-tailscale.yaml": " # Tailscale: tailnet IPs and MagicDNS names (resolved by tailscale itself)\n - IP-CIDR,100.64.0.0/10,TAILSCALE,no-resolve\n - DOMAIN-SUFFIX,ts.net,TAILSCALE\n - DOMAIN-SUFFIX,${@TS_DOMAINS},TAILSCALE\n",
|
"rules/10-tailscale.yaml": " # Tailscale: tailnet IPs and MagicDNS names (resolved by tailscale itself)\n - IP-CIDR,100.64.0.0/10,TAILSCALE,no-resolve\n - DOMAIN-SUFFIX,ts.net,TAILSCALE\n - DOMAIN-SUFFIX,${@TS_DOMAINS},TAILSCALE\n",
|
||||||
"rules/20-openvpn.yaml": " # OpenVPN server itself must not go into its own tunnel\n - IP-CIDR,${@OVPN_SERVER_IPS}/32,DIRECT,no-resolve #@main\n - IP-CIDR,${@OVPN_SERVER_IPS}/32,OVPN-EXIT,no-resolve #@whitelist\n - DOMAIN,${OVPN_SERVER_HOST},DIRECT #@main\n - DOMAIN,${OVPN_SERVER_HOST},OVPN-EXIT #@whitelist\n # networks pushed by the server (before the private-range DIRECT rules)\n - IP-CIDR,${@OVPN_ROUTES},${OVPN_GROUP},no-resolve\n",
|
"rules/20-openvpn.yaml": " # OpenVPN server itself must not go into its own tunnel\n - IP-CIDR,${@OVPN_SERVER_IPS}/32,DIRECT,no-resolve #@!ovpn_exit\n - IP-CIDR,${@OVPN_SERVER_IPS}/32,OVPN-EXIT,no-resolve #@ovpn_exit\n - DOMAIN,${OVPN_SERVER_HOST},DIRECT #@!ovpn_exit\n - DOMAIN,${OVPN_SERVER_HOST},OVPN-EXIT #@ovpn_exit\n # networks pushed by the server (before the private-range DIRECT rules)\n - IP-CIDR,${@OVPN_ROUTES},${OVPN_GROUP},no-resolve\n",
|
||||||
"rules/30-base.yaml": " - IP-CIDR,192.168.0.0/16,DIRECT,no-resolve\n - IP-CIDR,10.0.0.0/8,DIRECT,no-resolve\n - IP-CIDR,172.16.0.0/12,DIRECT,no-resolve\n",
|
"rules/30-base.yaml": " - IP-CIDR,192.168.0.0/16,DIRECT,no-resolve\n - IP-CIDR,10.0.0.0/8,DIRECT,no-resolve\n - IP-CIDR,172.16.0.0/12,DIRECT,no-resolve\n",
|
||||||
"rules/35-base.router.yaml": " # push notifications (Apple APNs, Google FCM): long-lived connections on a\n # stable path - group PUSH (main: DIRECT, whitelist: MY)\n - DOMAIN-SUFFIX,push.apple.com,PUSH\n - IP-CIDR,17.249.0.0/16,PUSH,no-resolve\n - IP-CIDR,17.252.0.0/16,PUSH,no-resolve\n - IP-CIDR,17.57.144.0/22,PUSH,no-resolve\n - IP-CIDR,17.188.128.0/18,PUSH,no-resolve\n - IP-CIDR,17.188.20.0/23,PUSH,no-resolve\n - DOMAIN-REGEX,^(alt[0-9]+-)?mtalk[0-9]*\\.google\\.com$,PUSH\n - DST-PORT,5228-5230,PUSH\n",
|
"rules/35-base.router.yaml": " # push notifications (Apple APNs, Google FCM): long-lived connections on a\n # stable path - group PUSH (main/foreign: DIRECT, whitelist: MY)\n - DOMAIN-SUFFIX,push.apple.com,PUSH\n - IP-CIDR,17.249.0.0/16,PUSH,no-resolve\n - IP-CIDR,17.252.0.0/16,PUSH,no-resolve\n - IP-CIDR,17.57.144.0/22,PUSH,no-resolve\n - IP-CIDR,17.188.128.0/18,PUSH,no-resolve\n - IP-CIDR,17.188.20.0/23,PUSH,no-resolve\n - DOMAIN-REGEX,^(alt[0-9]+-)?mtalk[0-9]*\\.google\\.com$,PUSH\n - DST-PORT,5228-5230,PUSH\n",
|
||||||
"rules/40-base.yaml": " - IP-CIDR,${@RU_IPS},RU\n",
|
"rules/40-base.yaml": " - IP-CIDR,${@RU_IPS},RU\n",
|
||||||
"rules/50-torrent.yaml": " - SRC-PORT,20000-20199,TORRENT-SEL\n",
|
"rules/50-torrent.yaml": " - SRC-PORT,20000-20199,TORRENT-SEL\n",
|
||||||
"rules/90-base.yaml": " - GEOSITE,ru-inside,DIRECT\n - DOMAIN-SUFFIX,ru,RU\n - DOMAIN-SUFFIX,xn--p1ai,RU\n - MATCH,MAIN\n",
|
"rules/90-base.yaml": " - GEOSITE,ru-inside,DIRECT #@!foreign\n # abroad: Russian services through the RU pool too #@foreign\n - GEOSITE,ru-inside,RU #@foreign\n - DOMAIN-SUFFIX,ru,RU\n - DOMAIN-SUFFIX,xn--p1ai,RU\n - MATCH,MAIN\n",
|
||||||
"sniffer/10-base.yaml": "sniffer:\n enable: true\n force-dns-mapping: true\n parse-pure-ip: true\n override-destination: false\n sniff:\n HTTP:\n ports: [80, 8080-8880]\n TLS:\n ports: [443, 8443]\n QUIC:\n ports: [443, 8443]\n"
|
"sniffer/10-base.yaml": "sniffer:\n enable: true\n force-dns-mapping: true\n parse-pure-ip: true\n override-destination: false\n sniff:\n HTTP:\n ports: [80, 8080-8880]\n TLS:\n ports: [443, 8443]\n QUIC:\n ports: [443, 8443]\n"
|
||||||
};
|
};
|
||||||
const D = MihomoKit.DEFAULTS;
|
const D = MihomoKit.DEFAULTS;
|
||||||
|
|||||||
@ -97,6 +97,7 @@
|
|||||||
<div class="seg" data-router>
|
<div class="seg" data-router>
|
||||||
<label><input type="radio" name="LOCATION" value="main" checked>Обычный</label>
|
<label><input type="radio" name="LOCATION" value="main" checked>Обычный</label>
|
||||||
<label><input type="radio" name="LOCATION" value="whitelist">Белые списки</label>
|
<label><input type="radio" name="LOCATION" value="whitelist">Белые списки</label>
|
||||||
|
<label><input type="radio" name="LOCATION" value="foreign">За рубежом</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="hint" data-router>Обычный — дома в России или за рубежом. Белые списки: OpenVPN через выбранную RU-ноду (группа OVPN-EXIT), свои серверы через MY-EXIT.</p>
|
<p class="hint" data-router>Обычный — дома в России или за рубежом. Белые списки: OpenVPN через выбранную RU-ноду (группа OVPN-EXIT), свои серверы через MY-EXIT.</p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user