Skip to content

Re:filter is (an attempt to create) an actual list of blocked domains and IPs in RU + popular and blocked for RU users

License

Notifications You must be signed in to change notification settings

AKrugRu/Re-filter-lists

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Re:filter

blackandgreen_A_preview_git

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)

ΠŸΡ€ΠΈΠΌΠ΅Ρ€ использования Xray

{
  "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

ΠŸΡ€ΠΈΠΌΠ΅Ρ€ использования Sing-Box

{
  "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
    }
  }
}

ΠŸΡ€ΠΈΠΌΠ΅Ρ€ ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΈ bird2 (/etc/bird.conf)

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)

Xray config example

{
  "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

Sing-box config example

{
  "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
    }
  }
}

bird2 config example (/etc/bird.conf)

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;
}

About

Re:filter is (an attempt to create) an actual list of blocked domains and IPs in RU + popular and blocked for RU users

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 50.4%
  • Go 49.6%