delete useless
This commit is contained in:
parent
6799eca3d7
commit
95f3916a10
131
bird.conf
131
bird.conf
@ -3,20 +3,17 @@
|
||||
################################################
|
||||
router id 193.148.248.170;
|
||||
|
||||
include "/etc/bird/roa/roa4.conf";
|
||||
include "/etc/bird/roa/roa6.conf";
|
||||
|
||||
include "/etc/bird/roa/homelab4.conf";
|
||||
include "/etc/bird/roa/homelab6.conf";
|
||||
|
||||
include "/etc/bird/roa/ix4.conf";
|
||||
include "/etc/bird/roa/ix6.conf";
|
||||
|
||||
protocol device {
|
||||
scan time 10;
|
||||
}
|
||||
|
||||
|
||||
protocol kernel {
|
||||
ipv4 {
|
||||
export all;
|
||||
import all;
|
||||
};
|
||||
ipv6 {
|
||||
export all;
|
||||
import all;
|
||||
@ -25,119 +22,15 @@ protocol kernel {
|
||||
merge paths yes;
|
||||
scan time 10;
|
||||
}
|
||||
#ROA
|
||||
include "/etc/bird/roa/roa4.conf";
|
||||
include "/etc/bird/roa/roa6.conf";
|
||||
|
||||
protocol direct
|
||||
{
|
||||
interface "dummy*";
|
||||
ipv6 {
|
||||
import all;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
roa4 table ste_roa;
|
||||
roa6 table ste_roa_v6;
|
||||
|
||||
protocol static {
|
||||
roa4 {
|
||||
table ste_roa;
|
||||
};
|
||||
include "/etc/bird/roa/roa_from_sdixp_v4.conf";
|
||||
};
|
||||
|
||||
protocol static {
|
||||
roa6 {
|
||||
table ste_roa_v6;
|
||||
};
|
||||
include "/etc/bird/roa/roa_from_sdixp_v6.conf";
|
||||
};
|
||||
|
||||
#Uplink
|
||||
filter uplink_import {
|
||||
accept;
|
||||
};
|
||||
|
||||
filter uplink_import_v6 {
|
||||
accept;
|
||||
};
|
||||
|
||||
filter uplink_export {
|
||||
if net ~ myip then accept;
|
||||
reject;
|
||||
};
|
||||
|
||||
filter uplink_export_v6 {
|
||||
if net ~ myip6 then accept;
|
||||
reject;
|
||||
};
|
||||
|
||||
#ix
|
||||
filter ix_import {
|
||||
accept;
|
||||
};
|
||||
|
||||
filter ix_import_v6 {
|
||||
accept;
|
||||
};
|
||||
|
||||
filter ix_export {
|
||||
if net ~ ix then accept;
|
||||
reject;
|
||||
};
|
||||
|
||||
filter ix_export_v6 {
|
||||
if net ~ ix6 then accept;
|
||||
reject;
|
||||
};
|
||||
|
||||
#homelab
|
||||
filter homelab_import {
|
||||
reject;
|
||||
};
|
||||
|
||||
filter homelab_import_v6 {
|
||||
reject;
|
||||
};
|
||||
|
||||
filter homelab_export {
|
||||
if net ~ homelabip then accept;
|
||||
reject;
|
||||
};
|
||||
|
||||
filter homelab_export_v6 {
|
||||
if net ~ homelabip6 then accept;
|
||||
reject;
|
||||
};
|
||||
|
||||
#Customer
|
||||
filter customer_import {
|
||||
if net ~ myip then accept;
|
||||
reject;
|
||||
};
|
||||
|
||||
filter customer_import_v6 {
|
||||
if net ~ myip6 then accept;
|
||||
reject;
|
||||
};
|
||||
|
||||
|
||||
filter customer_export {
|
||||
accept;
|
||||
}
|
||||
|
||||
filter customer_export_v6 {
|
||||
accept;
|
||||
}
|
||||
|
||||
filter community_export_v6 {
|
||||
if net ~ communitys then {
|
||||
bgp_path.prepend(151194);
|
||||
bgp_path.prepend(151194);
|
||||
accept;
|
||||
}
|
||||
reject;
|
||||
};
|
||||
include "/etc/bird/roa/homelab4.conf";
|
||||
include "/etc/bird/roa/homelab6.conf";
|
||||
|
||||
include "/etc/bird/roa/ix4.conf";
|
||||
include "/etc/bird/roa/ix6.conf";
|
||||
#Filter
|
||||
include "/etc/bird/filters/*.conf";
|
||||
include "/etc/bird/commuintys/*.conf";
|
||||
|
Loading…
x
Reference in New Issue
Block a user