2018-09-08 11:16:50 +00:00
|
|
|
protocol ospf {
|
2018-10-10 16:10:26 +00:00
|
|
|
table T_OSPF;
|
2018-09-08 11:16:50 +00:00
|
|
|
import all;
|
2018-09-12 06:41:25 +00:00
|
|
|
export all;
|
2018-09-08 11:16:50 +00:00
|
|
|
|
|
|
|
area 0 {
|
|
|
|
interface "wg-ospf-*" {
|
|
|
|
};
|
2018-09-14 20:32:25 +00:00
|
|
|
|
2018-09-08 11:16:50 +00:00
|
|
|
interface "lo" {
|
|
|
|
stub;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
2018-09-12 06:41:25 +00:00
|
|
|
|
|
|
|
filter filter_OSPF {
|
2018-09-22 10:51:14 +00:00
|
|
|
# ospf_metric1 = 1000;
|
2018-09-17 18:02:46 +00:00
|
|
|
if is_self_net() then accept;
|
2018-09-12 06:41:25 +00:00
|
|
|
else reject;
|
|
|
|
};
|
|
|
|
|
|
|
|
protocol pipe {
|
2018-10-10 16:10:26 +00:00
|
|
|
peer table T_OSPF;
|
2018-09-22 10:51:14 +00:00
|
|
|
table master;
|
|
|
|
import filter filter_OSPF;
|
|
|
|
export none;
|
2018-09-12 06:41:25 +00:00
|
|
|
}
|