Update etc/bird/bird.conf

This commit is contained in:
Minecon724 2025-10-24 18:38:25 +00:00
commit 88d7993d06

View file

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