Re:filter β ΡΡΠΎ ΠΏΠΎΠΏΡΡΠΊΠ° ΡΠΎΠ·Π΄Π°ΡΡ Π°ΠΊΡΡΠ°Π»ΡΠ½ΡΠΉ ΡΠΏΠΈΡΠΎΠΊ Π·Π°Π±Π»ΠΎΠΊΠΈΡΠΎΠ²Π°Π½Π½ΡΡ Π΄ΠΎΠΌΠ΅Π½ΠΎΠ² ΠΈ IP-Π°Π΄ΡΠ΅ΡΠΎΠ² Π² Π Π€, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΏΠΎΠΏΡΠ»ΡΡΠ½ΡΡ ΠΈ Π·Π°Π±Π»ΠΎΠΊΠΈΡΠΎΠ²Π°Π½Π½ΡΡ Π΄Π»Ρ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Π΅ΠΉ ΠΈΠ· Π ΠΎΡΡΠΈΠΈ. ΠΡΠΎΡ ΡΠ΅ΠΏΠΎΠ·ΠΈΡΠΎΡΠΈΠΉ ΡΠΎΠ΄Π΅ΡΠΆΠΈΡ Π²Π΅ΡΡ ΠΈΡΡ ΠΎΠ΄Π½ΡΠΉ ΠΊΠΎΠ΄ Π΄Π»Ρ ΠΏΡΠΎΡΠ΅ΡΡΠ° ΡΠΈΠ»ΡΡΡΠ°ΡΠΈΠΈ ΡΠΏΠΈΡΠΊΠ° Π΄ΠΎΠΌΠ΅Π½ΠΎΠ² Π ΠΠ, ΠΈ ΡΠ΅Π³ΡΠ»ΡΡΠ½ΡΠ΅ Π²ΡΠΏΡΡΠΊΠΈ:
- V2Fly, Xray:
geoip.dat
,geosite.dat
- Sing-Box:
geoip.db
,geosite.db
+ .srs ΡΠ°ΠΉΠ»Ρ - ΠΡΡΠΈΠ»ΡΡΡΠΎΠ²Π°Π½Π½ΡΠ΅ ΡΠΏΠΈΡΠΊΠΈ Π΄ΠΎΠΌΠ΅Π½ΠΎΠ²:
domains_all.lst
- Π‘ΡΠΌΠΌΠΈΡΠΎΠ²Π°Π½Π½ΡΠΉ ΡΠΏΠΈΡΠΎΠΊ IP-Π°Π΄ΡΠ΅ΡΠΎΠ²:
ipsum.lst
- ΠΡΠ±Π»ΠΈΡΠ½ΡΠΉ BGP ΡΠ΅ΡΠ²Π΅Ρ, Π³Π΄Π΅ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ ΡΡΠΌΠΌΠΈΡΠΎΠ²Π°Π½Π½ΡΠΉ ΡΠΏΠΈΡΠΎΠΊ IP-Π°Π΄ΡΠ΅ΡΠΎΠ²:
165.22.127.207
(AS 65412)
(ΠΠ»Ρ Π²ΡΠΏΡΡΠΊΠ° Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈΡ Π±ΠΈΠ»Π΄ΠΎΠ² ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ ΠΊΠΎΠ΄ ΡΠ»Π΅Π΄ΡΡΡΠΈΡ ΡΠ΅ΠΏΠΎΠ·ΠΈΡΠΎΡΠΈΠ΅Π²: #1)
{
"routing": {
"rules": [
{
"ip": [
"ext:geoip.dat:refilter"
],
"type": "field",
"outboundTag": "proxy"
},
{
"domain": [
"ext:geosite.dat:refilter"
],
"type": "field",
"outboundTag": "proxy"
},
{
"type": "field",
"outboundTag": "direct"
}
]
}
}
ΠΡΠΈΠΌΠ΅Ρ RoutingA Π΄Π»Ρ V2RayA:
default: direct
ip(geoip:refilter)->proxy
domain(ext:"LoyalsoldierSite.dat:refilter")->proxy
{
"route": {
"final": "direct",
"auto_detect_interface": true,
"rules": [
{
"rule_set": [
"refilter_domains",
"refilter_ipsum"
],
"outbound": "proxy"
}
],
"rule_set": [
{
"tag": "refilter_domains",
"type": "remote",
"format": "binary",
"url": "https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-domain-refilter_domains.srs",
"download_detour": "direct"
},
{
"tag": "refilter_ipsum",
"type": "remote",
"format": "binary",
"url": "https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-ip-refilter_ipsum.srs",
"download_detour": "direct"
}
]
},
"experimental": {
"cache_file": {
"enabled": true
}
}
}
log syslog all;
log stderr all;
router id $IP;
protocol device {
scan time 300;
}
protocol kernel kernel_routes {
scan time 60;
ipv4 {
import none;
export all;
};
}
protocol bgp refilter {
ipv4 {
import filter {
#gw = $IP_GATEWAY;
ifname = "$INTERFACE";
accept;
};
export none;
};
local as 64999;
neighbor 165.22.127.207 as 65412;
multihop;
hold time 240;
}
Re:filter is an attempt to create a relevant list of blocked domains and IPs in Russia, along with popular domains that are also blocked for Russian users. This repository contains all the source code for the RKN domain list filtration process, and regular releases of:
- V2Fly, Xray:
geoip.dat
,geosite.dat
- Sing-Box:
geoip.db
,geosite.db
+ .srs rulesets - Filtered lists of domains:
domains_all.lst
- Summarized IP list:
ipsum.lst
- Public BGP Server where the summarized IP list is used:
165.22.127.207
(AS 65412)
(The code from the following repositories is used to release automatic builds: #1)
{
"routing": {
"rules": [
{
"ip": [
"ext:geoip.dat:refilter"
],
"type": "field",
"outboundTag": "proxy"
},
{
"domain": [
"ext:geosite.dat:refilter"
],
"type": "field",
"outboundTag": "proxy"
},
{
"type": "field",
"outboundTag": "direct"
}
]
}
}
RoutingA of V2RayA Example:
default: direct
ip(geoip:refilter)->proxy
domain(ext:"LoyalsoldierSite.dat:refilter")->proxy
{
"route": {
"final": "direct",
"auto_detect_interface": true,
"rules": [
{
"rule_set": [
"refilter_domains",
"refilter_ipsum"
],
"outbound": "proxy"
}
],
"rule_set": [
{
"tag": "refilter_domains",
"type": "remote",
"format": "binary",
"url": "https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-domain-refilter_domains.srs",
"download_detour": "direct"
},
{
"tag": "refilter_ipsum",
"type": "remote",
"format": "binary",
"url": "https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-ip-refilter_ipsum.srs",
"download_detour": "direct"
}
]
},
"experimental": {
"cache_file": {
"enabled": true
}
}
}
log syslog all;
log stderr all;
router id $IP;
protocol device {
scan time 300;
}
protocol kernel kernel_routes {
scan time 60;
ipv4 {
import none;
export all;
};
}
protocol bgp refilter {
ipv4 {
import filter {
#gw = $IP_GATEWAY;
ifname = "$INTERFACE";
accept;
};
export none;
};
local as 64999;
neighbor 165.22.127.207 as 65412;
multihop;
hold time 240;
}