First commit

This commit is contained in:
2025-11-03 15:49:32 +08:00
commit ef49aadf0c
10 changed files with 271 additions and 0 deletions

15
bird/net/unet.conf Normal file
View File

@@ -0,0 +1,15 @@
template bgp unet_bgp_up2 {
graceful restart;
local as UNET_ASN;
ipv4 {
table unet4;
import filter {
if unet_is_valid_network_v4() && !unet_is_self_net() then accept;
reject;
};
export filter { if unet_is_valid_network_v4() && source ~ [RTS_STATIC, RTS_BGP] then accept; else reject; };
import limit 9000 action block;
};
}
include "/etc/bird/peers/unet/*.conf";