ospf.conf 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Gitoyen <contact@gitoyen.net>
  2. #
  3. # vim: set ts=4:sw=4
  4. # en: OSPF export only the routes not from BGP and wihtin the gitoyen network
  5. # fr: seul les routes, non BGP et dans le reseau de Gitoyen sont exportees
  6. filter export_OSPF {
  7. if source = RTS_BGP then reject;
  8. if is_rfc1918() then reject;
  9. if is_martians() then reject;
  10. if is_default() then reject;
  11. if is_within_carp() then reject;
  12. if is_gitoyen() then reject;
  13. if is_within_gitoyen() then accept;
  14. reject;
  15. }
  16. # en: en OSPF import only the routes within the gitoyen network
  17. # fr: seul les routes dans le reseau de Gitoyen sont acceptees
  18. filter import_OSPF {
  19. if is_rfc1918() then reject;
  20. if is_martians() then reject;
  21. if is_default() then reject;
  22. if is_within_carp() then reject;
  23. if is_gitoyen() then reject;
  24. if is_within_gitoyen() then accept;
  25. reject;
  26. }
  27. # en: OSPF for the gitoyen backbone
  28. # fr: OSPF pour le backbone de Gitoyen
  29. protocol ospf {
  30. import filter import_OSPF;
  31. export filter export_OSPF;
  32. area 0 {
  33. stub no;
  34. interface "lagg0.11" {
  35. cost 5;
  36. hello 10; retransmit 5; wait 40; dead 40;
  37. };
  38. };
  39. }