From 88d7993d06e33c44331c9f22323173ef5c6032f5 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Fri, 24 Oct 2025 18:38:25 +0000 Subject: [PATCH] Update etc/bird/bird.conf --- etc/bird/bird.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/bird/bird.conf b/etc/bird/bird.conf index f7811b7..906e123 100644 --- a/etc/bird/bird.conf +++ b/etc/bird/bird.conf @@ -7,6 +7,8 @@ define OWNAS = 4242420129; define OWNIPv6 = fdfe:8d0:7450:100::; define OWNNETv6 = fdfe:8d0:7450::/48; define OWNNETSETv6 = [fdfe:8d0:7450::/48+]; +define DN_REGION_GEO = 41; +define DN_REGION_COUNTRY = 1000; ################################################ # Header end # @@ -89,6 +91,11 @@ function import_filter() { } function export_filter() { + if is_self_net_v6() then { + bgp_community.add((64511, DN_REGION_GEO)); + bgp_community.add((64511, DN_REGION_COUNTRY)); + } + if is_valid_network_v6() && source ~ [RTS_STATIC, RTS_BGP] then accept; else reject; }