net186-config/protocol/kernel.conf

22 lines
609 B
Plaintext
Raw Permalink Normal View History

2022-12-26 15:41:18 +00:00
protocol device {
2022-12-26 17:17:37 +00:00
scan time 10;
2022-12-26 15:41:18 +00:00
}
protocol kernel {
scan time 20;
ipv6 {
import none;
export filter {
# Blackhole (65535, 666)
if (65535, 666) ~ bgp_community then dest = RTD_BLACKHOLE;
# Blackhole (LOCAL_ASN, 0, 666)
if (LOCAL_ASN, 0, 666) ~ bgp_large_community then dest = RTD_BLACKHOLE;
# Only Announced (LOCAL_ASN, 0, 665)
2022-12-27 17:14:15 +00:00
if (LOCAL_ASN, 0, 665) ~ bgp_large_community && bgp_path.last !~ [4200000000..4225479999] then reject;
2022-12-26 15:41:18 +00:00
krt_prefsrc = ROUTER_IP;
accept;
2022-12-26 17:08:14 +00:00
};
};
2022-12-26 15:41:18 +00:00
}