From c602686f69554a53d275b5e6e22c35750653bbe6 Mon Sep 17 00:00:00 2001 From: Andrevich <47223721+1andrevich@users.noreply.github.com> Date: Mon, 14 Oct 2024 13:57:11 +0400 Subject: [PATCH] Added bird2 config example --- README.md | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3de4d1f..b8c8327 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,41 @@ `ip(geoip:refilter)->proxy` `domain(ext:"LoyalsoldierSite.dat:refilter")->proxy` +## Пример конфигурации 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 $ASN; + 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 (TBD: regular) releases of: @@ -88,6 +122,40 @@ RoutingA of V2RayA Example: `ip(geoip:refilter)->proxy` `domain(ext:"LoyalsoldierSite.dat:refilter")->proxy` - +## 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 $ASN; + neighbor 165.22.127.207 as 65412; + multihop; + hold time 240; +} +```