ospf.conf 1.1 KB

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