62 lines
909 B
Plaintext
62 lines
909 B
Plaintext
include "/etc/bird/vars.conf";
|
|
|
|
router id OWNIP;
|
|
|
|
protocol device {
|
|
scan time 10;
|
|
}
|
|
|
|
function is_self_net() {
|
|
return net ~ OWNNETSET;
|
|
}
|
|
|
|
function is_self_net_v6() {
|
|
return net ~ OWNNETSETv6;
|
|
}
|
|
|
|
protocol kernel {
|
|
scan time 20;
|
|
|
|
ipv6 {
|
|
import none;
|
|
export filter {
|
|
if source = RTS_STATIC then reject;
|
|
krt_prefsrc = OWNIPv6;
|
|
accept;
|
|
};
|
|
};
|
|
};
|
|
|
|
protocol kernel {
|
|
scan time 20;
|
|
|
|
ipv4 {
|
|
import none;
|
|
export filter {
|
|
if source = RTS_STATIC then reject;
|
|
krt_prefsrc = OWNIP;
|
|
accept;
|
|
};
|
|
};
|
|
}
|
|
|
|
protocol static {
|
|
route OWNNET reject;
|
|
|
|
ipv4 {
|
|
import all;
|
|
export none;
|
|
};
|
|
}
|
|
|
|
protocol static {
|
|
route OWNNETv6 reject;
|
|
|
|
ipv6 {
|
|
import all;
|
|
export none;
|
|
};
|
|
}
|
|
|
|
include "/etc/bird/conf/*";
|
|
include "/etc/bird/peers/*"; |