123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- # Gitoyen <contact@gitoyen.net>
- #
- # vim: set ts=4:sw=4
- # en: OSPF export only the routes not from BGP and wihtin the gitoyen network
- # fr: seul les routes, non BGP et dans le reseau de Gitoyen sont exportees
- filter export_OSPF {
- if source = RTS_BGP then reject;
- if is_rfc1918() then reject;
- if is_martians() then reject;
- if is_default() then reject;
- if is_within_carp() then reject;
- if is_gitoyen() then reject;
- if is_within_gitoyen() then accept;
- reject;
- }
- # en: en OSPF import only the routes within the gitoyen network
- # fr: seul les routes dans le reseau de Gitoyen sont acceptees
- filter import_OSPF {
- if is_rfc1918() then reject;
- if is_martians() then reject;
- if is_default() then reject;
- if is_within_carp() then reject;
- if is_gitoyen() then reject;
- if is_within_gitoyen() then accept;
- reject;
- }
- # en: OSPF for the gitoyen backbone
- # fr: OSPF pour le backbone de Gitoyen
- protocol ospf {
- import filter import_OSPF;
- export filter export_OSPF;
- area 0 {
- stub no;
- interface "lagg0.11" {
- cost 5;
- hello 10; retransmit 5; wait 40; dead 40;
- };
- };
- }
|