Files
bird_config/bird/net/inet.conf
2025-12-17 18:13:41 +08:00

27 lines
626 B
Plaintext

protocol kernel kernel_inet4_102 {
scan time 20;
kernel table 102;
ipv4 {
table inet4;
import none;
export filter {
if source = RTS_STATIC then reject;
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
if !is_bogon_prefix() then {
krt_prefsrc = LOCAL_V4_kernel;
accept;
}
reject;
};
};
};
protocol pipe inet6_sync_to_master6 {
table inet6;
peer table master6;
export filter {
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
accept;
};
import none;
}