Files
bird_config/bird/template/unet.conf
2026-06-08 17:28:53 +08:00

48 lines
1.4 KiB
Plaintext

template bgp unet_bgp_up0 {
graceful restart;
local as UNET_ASN;
ipv4 {
table unet4;
import filter {if !function_unet_import() then reject; accept; };
export filter {if !function_unet_export() then reject; accept; };
import limit 9000 action block;
};
ipv6 {
table unet6;
import filter {if !function_unet_import() then reject; accept; };
export filter {if !function_unet_export() then reject; accept; };
import limit 9000 action block;
};
}
template bgp unet_bgp_up1 {
graceful restart;
local as UNET_ASN;
ipv4 {
table unet4;
import filter {if !function_unet_only_import() then reject; accept; };
export filter {if !function_unet_only_export() then reject; accept; };
import limit 9000 action block;
};
}
template bgp unet_ibgp {
graceful restart;
local as UNET_ASN;
med metric;
direct;
ipv4 {
table unet4;
next hop self;
gateway direct;
import filter {if !function_unet_ibgp_import() then reject; accept; };
export filter {if !function_unet_ibgp_export() then reject; accept; };
};
ipv6 {
table unet6;
next hop self;
gateway direct;
import filter {if !function_unet_ibgp_import() then reject; accept; };
export filter {if !function_unet_ibgp_export() then reject; accept; };
};
}