gugus

OpenVPN and bird configuration

Oct 12th, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. #Ansible managed: /usr/local/etc/ansible/roles/client/files/usr/local/etc/bird.conf.j2 modified on 2014-09-25 23:47:16 by boyo on manager
  2. # Configure logging
  3. log syslog all;
  4. log "/var/log/bird.log" all;
  5. log stderr all;
  6.  
  7. # Override router ID
  8. router id 3.3.3.6;
  9.  
  10. filter kernel_in
  11. {
  12. # Prevent to put the default-route (already learn by DHCP) into the kernel table
  13. if net = 0.0.0.0/0 then reject;
  14. else accept;
  15. }
  16.  
  17. # Sync bird routing table with kernel
  18. protocol kernel {
  19. export filter kernel_in;
  20. learn;
  21. scan time 10;
  22. }
  23.  
  24. # Include device route (warning, a device route is a /32)
  25. protocol device {
  26. scan time 10;
  27. }
  28.  
  29. # Enable OSPF, only on tun interface
  30. protocol ospf CLIENT {
  31. rfc1583compat yes;
  32. area 0.0.0.0 {
  33. interface "tun0" {
  34. cost 10;
  35. type ptp;
  36. passwords {
  37. password "superpass" {
  38. id 1;
  39. };
  40. };
  41. authentication cryptographic;
  42. };
  43. interface "lo1" {
  44. stub yes;
  45. };
  46. interface "re0" {
  47. stub yes;
  48. };
  49. interface "wlan0" {
  50. stub yes;
  51. };
  52. };
  53. }
Advertisement
Add Comment
Please, Sign In to add comment