ospf.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Gitoyen <contact@gitoyen.net>
  2. #
  3. # vim: set ts=4:sw=4
  4. # OSPF export only the routes not from BGP and wihtin the gitoyen network
  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. # OSPF import only the routes within the gitoyen network
  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 for the gitoyen backbone
  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. }