Added ru services to rules routing
This commit is contained in:
parent
432ec27e68
commit
ef2c150c63
@ -478,7 +478,8 @@ RU-адреса, без OpenVPN, Tailscale, торрентов и `PUSH`; сво
|
|||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| подписки через `BOOT-AUTO` | ✓ | ✓ | ✓ | ✓ |
|
| подписки через `BOOT-AUTO` | ✓ | ✓ | ✓ | ✓ |
|
||||||
| `ru-inside` | напрямую | напрямую | через RU | напрямую |
|
| `ru-inside` | напрямую | напрямую | через RU | напрямую |
|
||||||
| остальные `.ru` / `.рф`, доп. IP (`RU_IPS`) | напрямую | через RU | через RU | через RU |
|
| `ru-services` (русские сервисы вне ru-inside и вне .ru/.su/.рф) | напрямую | через RU | через RU | через RU |
|
||||||
|
| остальные `.ru` / `.su` / `.рф`, доп. IP (`RU_IPS`) | напрямую | через RU | через RU | через RU |
|
||||||
| доп. IP / домены через FOREIGN, MY (`FOREIGN_*`, `MY_*`) | `FOREIGN` / `MY` | `FOREIGN` / `MY` | `FOREIGN` / `MY` | `FOREIGN` / `MY` |
|
| доп. IP / домены через FOREIGN, MY (`FOREIGN_*`, `MY_*`) | `FOREIGN` / `MY` | `FOREIGN` / `MY` | `FOREIGN` / `MY` | `FOREIGN` / `MY` |
|
||||||
| доп. домены через RU (`RU_DOMAINS`) | напрямую | через RU | через RU | через RU |
|
| доп. домены через RU (`RU_DOMAINS`) | напрямую | через RU | через RU | через RU |
|
||||||
| локальные адреса (`LOCAL_HOSTS`) | по LAN | по LAN | по LAN | — |
|
| локальные адреса (`LOCAL_HOSTS`) | по LAN | по LAN | по LAN | — |
|
||||||
|
|||||||
@ -682,8 +682,6 @@
|
|||||||
'.mkg .e.file{stroke:var(--fetch);stroke-dasharray:1 3;stroke-opacity:.6}' +
|
'.mkg .e.file{stroke:var(--fetch);stroke-dasharray:1 3;stroke-opacity:.6}' +
|
||||||
'.mkg .e.wan{stroke-dasharray:3 3;stroke-opacity:.45}' +
|
'.mkg .e.wan{stroke-dasharray:3 3;stroke-opacity:.45}' +
|
||||||
'.mkg .lane{stroke:var(--rule-b);stroke-dasharray:4 4}.mkg .lane-t{fill:var(--mute);font-size:11px}' +
|
'.mkg .lane{stroke:var(--rule-b);stroke-dasharray:4 4}.mkg .lane-t{fill:var(--mute);font-size:11px}' +
|
||||||
'.mkg .lbl{fill:var(--mute);font-size:10px;paint-order:stroke;stroke:var(--bg);stroke-width:3px;stroke-linejoin:round;opacity:0}' +
|
|
||||||
'.mkg .focus .lbl.hl{opacity:1}' +
|
|
||||||
'.mkg .live .e.off{stroke-opacity:.15}' +
|
'.mkg .live .e.off{stroke-opacity:.15}' +
|
||||||
'.mkg .e.now{stroke:var(--now);stroke-opacity:.95;stroke-width:2}' +
|
'.mkg .e.now{stroke:var(--now);stroke-opacity:.95;stroke-width:2}' +
|
||||||
'.mkg .e.flow{stroke:var(--flow);stroke-opacity:.95;stroke-dasharray:8 6;animation:mkg-flow 1s linear infinite}' +
|
'.mkg .e.flow{stroke:var(--flow);stroke-opacity:.95;stroke-dasharray:8 6;animation:mkg-flow 1s linear infinite}' +
|
||||||
@ -957,29 +955,6 @@
|
|||||||
if (!x)
|
if (!x)
|
||||||
return;
|
return;
|
||||||
x.path.classList.toggle('hl', !!r.edges[i]);
|
x.path.classList.toggle('hl', !!r.edges[i]);
|
||||||
if (x.label)
|
|
||||||
x.label.classList.toggle('hl', !!r.edges[i]);
|
|
||||||
});
|
|
||||||
spread(r.edges);
|
|
||||||
};
|
|
||||||
// the shown filter labels: edges into one subscription end close together, so their
|
|
||||||
// labels would lie on each other; each one that hits a placed one goes below it
|
|
||||||
var spread = function(shown) {
|
|
||||||
var placed = [];
|
|
||||||
edgeEls.map(function(x, i) { return shown[i] && x && x.label ? x : null; }).filter(Boolean)
|
|
||||||
.sort(function(a, b) { return a.by - b.by; }).forEach(function(x) {
|
|
||||||
var y = x.by, hit = true;
|
|
||||||
while (hit) {
|
|
||||||
hit = false;
|
|
||||||
placed.forEach(function(p) {
|
|
||||||
if (Math.abs(p.bx - x.bx) < (p.w + x.w) / 2 + 4 && Math.abs(p.y - y) < 12) {
|
|
||||||
y = p.y + 12;
|
|
||||||
hit = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
placed.push({ bx: x.bx, w: x.w, y: y });
|
|
||||||
x.label.setAttribute('y', y);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1473,7 +1448,7 @@
|
|||||||
world.removeChild(world.firstChild);
|
world.removeChild(world.firstChild);
|
||||||
nodeEls = {};
|
nodeEls = {};
|
||||||
edgeEls = [];
|
edgeEls = [];
|
||||||
var ge = el('g', {}), gl = el('g', {}), gn = el('g', {});
|
var ge = el('g', {}), gn = el('g', {});
|
||||||
lay.edges.forEach(function(le, i) {
|
lay.edges.forEach(function(le, i) {
|
||||||
var e = le.e, a = lay.nodes[e.from], b = lay.nodes[e.to];
|
var e = le.e, a = lay.nodes[e.from], b = lay.nodes[e.to];
|
||||||
if (!a || !b)
|
if (!a || !b)
|
||||||
@ -1483,17 +1458,7 @@
|
|||||||
'marker-end': e.kind == 'fetch' ? 'url(#mkg-arrow)' : null });
|
'marker-end': e.kind == 'fetch' ? 'url(#mkg-arrow)' : null });
|
||||||
p.appendChild(el('title', { text: (m.nodes[e.from].label + ' → ' + m.nodes[e.to].label) + (e.label ? '\n' + e.label : '') }));
|
p.appendChild(el('title', { text: (m.nodes[e.from].label + ' → ' + m.nodes[e.to].label) + (e.label ? '\n' + e.label : '') }));
|
||||||
ge.appendChild(p);
|
ge.appendChild(p);
|
||||||
var x = { path: p, label: null };
|
var x = { path: p };
|
||||||
// filters on the way into a subscription: halfway along the last stretch
|
|
||||||
if (e.kind == 'use' && e.label && le.pts) {
|
|
||||||
var q = le.pts[le.pts.length - 1], o = le.pts[le.pts.length - 2];
|
|
||||||
var t = cut(e.label, 30);
|
|
||||||
x.bx = (o.x + q.x) / 2;
|
|
||||||
x.by = (o.y + q.y) / 2 - 3;
|
|
||||||
x.w = measure(t, 10);
|
|
||||||
x.label = el('text', { 'class': 'lbl', x: x.bx, y: x.by, 'text-anchor': 'middle', text: t });
|
|
||||||
gl.appendChild(x.label);
|
|
||||||
}
|
|
||||||
edgeEls[i] = x;
|
edgeEls[i] = x;
|
||||||
});
|
});
|
||||||
m.list.forEach(function(n) {
|
m.list.forEach(function(n) {
|
||||||
@ -1531,7 +1496,6 @@
|
|||||||
text: 'служебное — правила сюда не ведут: через что качаются подписки' })
|
text: 'служебное — правила сюда не ведут: через что качаются подписки' })
|
||||||
]));
|
]));
|
||||||
world.appendChild(ge);
|
world.appendChild(ge);
|
||||||
world.appendChild(gl);
|
|
||||||
world.appendChild(gn);
|
world.appendChild(gn);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1558,8 +1522,6 @@
|
|||||||
x.path.style.strokeWidth = f ? Math.min(7, 2 + Math.log(1 + f.n) + (f.rate ? Math.log(1 + f.rate / 4096) : 0)) + 'px' : '';
|
x.path.style.strokeWidth = f ? Math.min(7, 2 + Math.log(1 + f.n) + (f.rate ? Math.log(1 + f.rate / 4096) : 0)) + 'px' : '';
|
||||||
var hide = onlyNow.checked && on && isOff && !f;
|
var hide = onlyNow.checked && on && isOff && !f;
|
||||||
x.path.style.display = hide ? 'none' : '';
|
x.path.style.display = hide ? 'none' : '';
|
||||||
if (x.label)
|
|
||||||
x.label.style.display = hide ? 'none' : '';
|
|
||||||
});
|
});
|
||||||
m.list.forEach(function(n) {
|
m.list.forEach(function(n) {
|
||||||
var g = nodeEls[n.id], b = lay.nodes[n.id];
|
var g = nodeEls[n.id], b = lay.nodes[n.id];
|
||||||
|
|||||||
@ -7,3 +7,12 @@
|
|||||||
url: "${RULESET_URL}/ru-inside.mrs"
|
url: "${RULESET_URL}/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "${RULESET_URL}/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|||||||
@ -1,9 +1,13 @@
|
|||||||
- RULE-SET,ru-inside,DIRECT #@!foreign
|
- RULE-SET,ru-inside,DIRECT #@!foreign
|
||||||
# abroad: Russian services through the RU pool too #@foreign
|
# abroad: Russian services through the RU pool too #@foreign
|
||||||
- RULE-SET,ru-inside,RU #@foreign
|
- RULE-SET,ru-inside,RU #@foreign
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,DIRECT #@main
|
||||||
- DOMAIN-SUFFIX,ru,DIRECT #@main
|
- DOMAIN-SUFFIX,ru,DIRECT #@main
|
||||||
|
- DOMAIN-SUFFIX,su,DIRECT #@main
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,DIRECT #@main
|
- DOMAIN-SUFFIX,xn--p1ai,DIRECT #@main
|
||||||
|
- RULE-SET,ru-services,RU #@!main
|
||||||
- DOMAIN-SUFFIX,ru,RU #@!main
|
- DOMAIN-SUFFIX,ru,RU #@!main
|
||||||
|
- DOMAIN-SUFFIX,su,RU #@!main
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,RU #@!main
|
- DOMAIN-SUFFIX,xn--p1ai,RU #@!main
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -144,6 +144,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
# services (SERVICES): geosite list anthropic of MetaCubeX/meta-rules-dat
|
# services (SERVICES): geosite list anthropic of MetaCubeX/meta-rules-dat
|
||||||
geosite-anthropic:
|
geosite-anthropic:
|
||||||
@ -303,7 +312,9 @@ rules:
|
|||||||
- IP-CIDR,194.190.191.112/32,RU
|
- IP-CIDR,194.190.191.112/32,RU
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,RU
|
||||||
- DOMAIN-SUFFIX,ru,RU
|
- DOMAIN-SUFFIX,ru,RU
|
||||||
|
- DOMAIN-SUFFIX,su,RU
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,RU
|
- DOMAIN-SUFFIX,xn--p1ai,RU
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -116,6 +116,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
sniffer:
|
sniffer:
|
||||||
enable: true
|
enable: true
|
||||||
@ -273,7 +282,9 @@ rules:
|
|||||||
- SRC-PORT,20000-20199,TORRENT-SEL
|
- SRC-PORT,20000-20199,TORRENT-SEL
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,RU
|
||||||
- DOMAIN-SUFFIX,ru,RU
|
- DOMAIN-SUFFIX,ru,RU
|
||||||
|
- DOMAIN-SUFFIX,su,RU
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,RU
|
- DOMAIN-SUFFIX,xn--p1ai,RU
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -122,6 +122,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
sniffer:
|
sniffer:
|
||||||
enable: true
|
enable: true
|
||||||
@ -282,7 +291,9 @@ rules:
|
|||||||
|
|
||||||
# abroad: Russian services through the RU pool too
|
# abroad: Russian services through the RU pool too
|
||||||
- RULE-SET,ru-inside,RU
|
- RULE-SET,ru-inside,RU
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,RU
|
||||||
- DOMAIN-SUFFIX,ru,RU
|
- DOMAIN-SUFFIX,ru,RU
|
||||||
|
- DOMAIN-SUFFIX,su,RU
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,RU
|
- DOMAIN-SUFFIX,xn--p1ai,RU
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -121,6 +121,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
sniffer:
|
sniffer:
|
||||||
enable: true
|
enable: true
|
||||||
@ -290,7 +299,9 @@ rules:
|
|||||||
- SRC-PORT,20000-20199,TORRENT-SEL
|
- SRC-PORT,20000-20199,TORRENT-SEL
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,RU
|
||||||
- DOMAIN-SUFFIX,ru,RU
|
- DOMAIN-SUFFIX,ru,RU
|
||||||
|
- DOMAIN-SUFFIX,su,RU
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,RU
|
- DOMAIN-SUFFIX,xn--p1ai,RU
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -124,6 +124,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
# OpenVPN routes (OVPN_ROUTES): the file is written by mihomo-kit.sh build and
|
# OpenVPN routes (OVPN_ROUTES): the file is written by mihomo-kit.sh build and
|
||||||
# emptied by bmstu-otp.sh off, so with the tunnel off these addresses follow
|
# emptied by bmstu-otp.sh off, so with the tunnel off these addresses follow
|
||||||
@ -321,7 +330,9 @@ rules:
|
|||||||
|
|
||||||
# abroad: Russian services through the RU pool too
|
# abroad: Russian services through the RU pool too
|
||||||
- RULE-SET,ru-inside,RU
|
- RULE-SET,ru-inside,RU
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,RU
|
||||||
- DOMAIN-SUFFIX,ru,RU
|
- DOMAIN-SUFFIX,ru,RU
|
||||||
|
- DOMAIN-SUFFIX,su,RU
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,RU
|
- DOMAIN-SUFFIX,xn--p1ai,RU
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -103,6 +103,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
sniffer:
|
sniffer:
|
||||||
enable: true
|
enable: true
|
||||||
@ -251,7 +260,9 @@ rules:
|
|||||||
- SRC-PORT,20000-20199,TORRENT-SEL
|
- SRC-PORT,20000-20199,TORRENT-SEL
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,DIRECT
|
||||||
- DOMAIN-SUFFIX,ru,DIRECT
|
- DOMAIN-SUFFIX,ru,DIRECT
|
||||||
|
- DOMAIN-SUFFIX,su,DIRECT
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,DIRECT
|
- DOMAIN-SUFFIX,xn--p1ai,DIRECT
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -138,6 +138,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
sniffer:
|
sniffer:
|
||||||
enable: true
|
enable: true
|
||||||
@ -286,7 +295,9 @@ rules:
|
|||||||
- SRC-PORT,20000-20199,TORRENT-SEL
|
- SRC-PORT,20000-20199,TORRENT-SEL
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,DIRECT
|
||||||
- DOMAIN-SUFFIX,ru,DIRECT
|
- DOMAIN-SUFFIX,ru,DIRECT
|
||||||
|
- DOMAIN-SUFFIX,su,DIRECT
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,DIRECT
|
- DOMAIN-SUFFIX,xn--p1ai,DIRECT
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -120,6 +120,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
sniffer:
|
sniffer:
|
||||||
enable: true
|
enable: true
|
||||||
@ -278,7 +287,9 @@ rules:
|
|||||||
- SRC-PORT,20000-20199,TORRENT-SEL
|
- SRC-PORT,20000-20199,TORRENT-SEL
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,DIRECT
|
||||||
- DOMAIN-SUFFIX,ru,DIRECT
|
- DOMAIN-SUFFIX,ru,DIRECT
|
||||||
|
- DOMAIN-SUFFIX,su,DIRECT
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,DIRECT
|
- DOMAIN-SUFFIX,xn--p1ai,DIRECT
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -114,6 +114,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
sniffer:
|
sniffer:
|
||||||
enable: true
|
enable: true
|
||||||
@ -269,7 +278,9 @@ rules:
|
|||||||
- SRC-PORT,20000-20199,TORRENT-SEL
|
- SRC-PORT,20000-20199,TORRENT-SEL
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,RU
|
||||||
- DOMAIN-SUFFIX,ru,RU
|
- DOMAIN-SUFFIX,ru,RU
|
||||||
|
- DOMAIN-SUFFIX,su,RU
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,RU
|
- DOMAIN-SUFFIX,xn--p1ai,RU
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -126,6 +126,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
# OpenVPN routes (OVPN_ROUTES): the file is written by mihomo-kit.sh build and
|
# OpenVPN routes (OVPN_ROUTES): the file is written by mihomo-kit.sh build and
|
||||||
# emptied by bmstu-otp.sh off, so with the tunnel off these addresses follow
|
# emptied by bmstu-otp.sh off, so with the tunnel off these addresses follow
|
||||||
@ -338,7 +347,9 @@ rules:
|
|||||||
- SRC-PORT,20000-20199,TORRENT-SEL
|
- SRC-PORT,20000-20199,TORRENT-SEL
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,DIRECT
|
||||||
- DOMAIN-SUFFIX,ru,DIRECT
|
- DOMAIN-SUFFIX,ru,DIRECT
|
||||||
|
- DOMAIN-SUFFIX,su,DIRECT
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,DIRECT
|
- DOMAIN-SUFFIX,xn--p1ai,DIRECT
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -81,6 +81,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
sniffer:
|
sniffer:
|
||||||
enable: true
|
enable: true
|
||||||
@ -190,7 +199,9 @@ rules:
|
|||||||
- IP-CIDR,9.9.9.9/32,FOREIGN
|
- IP-CIDR,9.9.9.9/32,FOREIGN
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,DIRECT
|
||||||
- DOMAIN-SUFFIX,ru,DIRECT
|
- DOMAIN-SUFFIX,ru,DIRECT
|
||||||
|
- DOMAIN-SUFFIX,su,DIRECT
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,DIRECT
|
- DOMAIN-SUFFIX,xn--p1ai,DIRECT
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -243,6 +243,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
# services (SERVICES): geosite list anthropic of MetaCubeX/meta-rules-dat
|
# services (SERVICES): geosite list anthropic of MetaCubeX/meta-rules-dat
|
||||||
geosite-anthropic:
|
geosite-anthropic:
|
||||||
@ -525,7 +534,9 @@ rules:
|
|||||||
- SRC-PORT,20000-20199,TORRENT-SEL
|
- SRC-PORT,20000-20199,TORRENT-SEL
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,RU
|
||||||
- DOMAIN-SUFFIX,ru,RU
|
- DOMAIN-SUFFIX,ru,RU
|
||||||
|
- DOMAIN-SUFFIX,su,RU
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,RU
|
- DOMAIN-SUFFIX,xn--p1ai,RU
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -122,6 +122,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
sniffer:
|
sniffer:
|
||||||
enable: true
|
enable: true
|
||||||
@ -296,7 +305,9 @@ rules:
|
|||||||
- SRC-PORT,20000-20199,TORRENT-SEL
|
- SRC-PORT,20000-20199,TORRENT-SEL
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,RU
|
||||||
- DOMAIN-SUFFIX,ru,RU
|
- DOMAIN-SUFFIX,ru,RU
|
||||||
|
- DOMAIN-SUFFIX,su,RU
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,RU
|
- DOMAIN-SUFFIX,xn--p1ai,RU
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
@ -130,6 +130,15 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-inside.mrs"
|
||||||
path: ./ruleset/ru-inside.mrs
|
path: ./ruleset/ru-inside.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
# Russian services outside ru-inside and outside .ru/.su/.рф (russia-only ru-services):
|
||||||
|
# not on the whitelist, so through RU everywhere but main
|
||||||
|
ru-services:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/SamLatsin/russia-only@release/ru-services.mrs"
|
||||||
|
path: ./ruleset/ru-services.mrs
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
# OpenVPN routes (OVPN_ROUTES): the file is written by mihomo-kit.sh build and
|
# OpenVPN routes (OVPN_ROUTES): the file is written by mihomo-kit.sh build and
|
||||||
# emptied by bmstu-otp.sh off, so with the tunnel off these addresses follow
|
# emptied by bmstu-otp.sh off, so with the tunnel off these addresses follow
|
||||||
@ -352,7 +361,9 @@ rules:
|
|||||||
- SRC-PORT,20000-20199,TORRENT-SEL
|
- SRC-PORT,20000-20199,TORRENT-SEL
|
||||||
|
|
||||||
- RULE-SET,ru-inside,DIRECT
|
- RULE-SET,ru-inside,DIRECT
|
||||||
# main (home, own white IP): .ru/.рф directly; elsewhere through RU
|
# main (home, own white IP): ru-services and .ru/.su/.рф directly; elsewhere through RU
|
||||||
|
- RULE-SET,ru-services,RU
|
||||||
- DOMAIN-SUFFIX,ru,RU
|
- DOMAIN-SUFFIX,ru,RU
|
||||||
|
- DOMAIN-SUFFIX,su,RU
|
||||||
- DOMAIN-SUFFIX,xn--p1ai,RU
|
- DOMAIN-SUFFIX,xn--p1ai,RU
|
||||||
- MATCH,MAIN
|
- MATCH,MAIN
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user