From 8e956157f5f482af7f3672ef65254a199495b340 Mon Sep 17 00:00:00 2001 From: Evgeny Nerush Date: Wed, 21 Feb 2024 19:33:21 +0300 Subject: [PATCH] add exceptions in .ru zone --- customgeo.dat | 4 ++++ misc/customgeo-exceptions-4hiddify.txt | 22 ++++++++++++++++++++++ misc/customgeo-exceptions-4nekoray.txt | 22 ++++++++++++++++++++++ template_config_client.jsonc | 8 ++++++++ template_config_server.jsonc | 8 ++++++++ 5 files changed, 64 insertions(+) create mode 100644 misc/customgeo-exceptions-4hiddify.txt create mode 100644 misc/customgeo-exceptions-4nekoray.txt diff --git a/customgeo.dat b/customgeo.dat index 51b2d56..540ac1c 100644 --- a/customgeo.dat +++ b/customgeo.dat @@ -98,5 +98,9 @@ chuimg.com cn mmstat.com cn + +COHERENCE-EXTRA-EXCEPTIONSmoscowtimes.ru kasparov.runovayagazeta.ru grani.ru newtimes.ru  tvrain.ruthe-village.ru +arsvest.ru +zasekin.rutrv-science.ru snob.ru colta.ru  newizv.ru itsmycity.ru  theins.ru 4pda.ru abook-club.ruappstorrent.ru ej.ru onlinesim.ru republic.ru sobesednik.ru  COHERENCE-EXTRA-PLUSgoogleapis.com mozilla.com microsoft.com  apple.com habr.comhabrastorage.org viqeo.tv \ No newline at end of file diff --git a/misc/customgeo-exceptions-4hiddify.txt b/misc/customgeo-exceptions-4hiddify.txt new file mode 100644 index 0000000..3ad582a --- /dev/null +++ b/misc/customgeo-exceptions-4hiddify.txt @@ -0,0 +1,22 @@ +domain:moscowtimes.ru, +domain:kasparov.ru, +domain:novayagazeta.ru, +domain:grani.ru, +domain:newtimes.ru, +domain:tvrain.ru, +domain:the-village.ru, +domain:arsvest.ru, +domain:zasekin.ru, +domain:trv-science.ru, +domain:snob.ru, +domain:colta.ru, +domain:newizv.ru, +domain:itsmycity.ru, +domain:theins.ru, +domain:4pda.ru, +domain:abook-club.ru, +domain:appstorrent.ru, +domain:ej.ru, +domain:onlinesim.ru, +domain:republic.ru, +domain:sobesednik.ru, diff --git a/misc/customgeo-exceptions-4nekoray.txt b/misc/customgeo-exceptions-4nekoray.txt new file mode 100644 index 0000000..df74a2a --- /dev/null +++ b/misc/customgeo-exceptions-4nekoray.txt @@ -0,0 +1,22 @@ +domain:moscowtimes.ru +domain:kasparov.ru +domain:novayagazeta.ru +domain:grani.ru +domain:newtimes.ru +domain:tvrain.ru +domain:the-village.ru +domain:arsvest.ru +domain:zasekin.ru +domain:trv-science.ru +domain:snob.ru +domain:colta.ru +domain:newizv.ru +domain:itsmycity.ru +domain:theins.ru +domain:4pda.ru +domain:abook-club.ru +domain:appstorrent.ru +domain:ej.ru +domain:onlinesim.ru +domain:republic.ru +domain:sobesednik.ru diff --git a/template_config_client.jsonc b/template_config_client.jsonc index d1ae325..7c160e2 100644 --- a/template_config_client.jsonc +++ b/template_config_client.jsonc @@ -187,6 +187,14 @@ "sourcePort": "6881-6889", "outboundTag": "direct" }, + // exceptions for some *.ru sites that shouldn't be blocked or accessed directly + { + "type": "field", + "domain": [ + "ext:customgeo.dat:coherence-extra-exceptions" + ], + "outboundTag": "proxy" + }, // guide domestic sites traffic to `direct` outbound { "type": "field", diff --git a/template_config_server.jsonc b/template_config_server.jsonc index f8d10ec..97279c1 100644 --- a/template_config_server.jsonc +++ b/template_config_server.jsonc @@ -75,6 +75,14 @@ "sourcePort": "6881-6889", "outboundTag": "block" }, + // exceptions for *.ru websites that shouldn't be blocked + { + "type": "field", + "domain": [ + "ext:customgeo.dat:coherence-extra-exceptions" + ], + "outboundTag": "direct" + }, // block domestic client traffic if it's coming somehow (e.g. wrong client config) { "type": "field",