Advertisement
Guest User

Untitled

a guest
Jan 4th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. bird6.conf:
  2.  
  3. # This file is managed by ansible, don't make changes here - they will be overwritten.
  4. log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
  5. router id 5;
  6.  
  7. table ffnet;
  8.  
  9. filter freifunk {
  10. if net ~ 2a03:2260:2004::/48 then accept;
  11. reject;
  12. }
  13.  
  14. protocol kernel {
  15. scan time 20;
  16. import all;
  17. export all;
  18. table ffnet;
  19. kernel table 42;
  20. device routes;
  21. persist;
  22. };
  23.  
  24. protocol radv {
  25. interface "bat03" {
  26. max ra interval 20;
  27. link mtu 1280;
  28. prefix 2a03:2260:2004:300::/64 {
  29. };
  30. rdnss {
  31. ns 2a03:2260:2004:300::5;
  32. };
  33. dnssl "fflip";
  34. };
  35. interface "bat04" {
  36. max ra interval 20;
  37. link mtu 1280;
  38. prefix 2a03:2260:2004:400::/64 {
  39. };
  40. rdnss {
  41. ns 2a03:2260:2004:400::5;
  42. };
  43. dnssl "fflip";
  44. };
  45. };
  46.  
  47.  
  48. protocol bfd {
  49. table ffnet;
  50. interface "gre*";
  51. interface "bck*";
  52. multihop {
  53. passive;
  54. };
  55. };
  56.  
  57. protocol device {
  58. scan time 10;
  59. };
  60.  
  61. protocol ospf {
  62. table ffnet;
  63. import filter freifunk;
  64. export all;
  65. area 0.0.0.0 {
  66. interface "bat*" {
  67. stub;
  68. };
  69. interface "bck-*";
  70. interface "lo" {
  71. stub;
  72. };
  73. };
  74. };
  75.  
  76. function is_default() {
  77. return (net ~ [::/0]);
  78. };
  79.  
  80. filter export_to_upstream_filter {
  81. if source = RTS_OSPF_EXT2 then reject;
  82. if net ~ [2a03:2260:2004::/48{48,56}] then accept;
  83. reject;
  84. };
  85.  
  86. protocol static static_domaene03 {
  87. table ffnet;
  88. route 2a03:2260:2004:300::/56 reject;
  89. };
  90. protocol static static_domaene04 {
  91. table ffnet;
  92. route 2a03:2260:2004:400::/56 reject;
  93. };
  94.  
  95. protocol kernel 'kernel_master' {
  96. scan time 20;
  97. table master;
  98. kernel table 254;
  99. import all;
  100. export all;
  101. persist;
  102. };
  103.  
  104. protocol static {
  105. table master;
  106. import all;
  107. export none;
  108. };
  109.  
  110. protocol direct {
  111. interface "lo";
  112. interface "tun-ffrl*";
  113. interface "gre-*";
  114. interface "bck-*";
  115. interface "bat*";
  116. table ffnet;
  117. }
  118.  
  119. template bgp internal {
  120. table ffnet;
  121. local as 64884;
  122. import filter {
  123. if is_default() then
  124. preference = 99;
  125. else
  126. preference = 160;
  127. accept;
  128. };
  129. export filter {
  130. if source = RTS_BGP then accept;
  131. else reject;
  132. };
  133. gateway direct;
  134. direct;
  135. next hop self;
  136. };
  137.  
  138. protocol bgp ibgp_hermann from internal {
  139. neighbor 2a03:2260:115:ffa1::2:5:1 as 64884;
  140. }
  141.  
  142. protocol bgp ibgp_arminius from internal {
  143. neighbor 2a03:2260:115:ffa1::3:5:1 as 64884;
  144. }
  145.  
  146. protocol bgp ibgp_varus from internal {
  147. neighbor 2a03:2260:115:ffa1::4:5:1 as 64884;
  148. }
  149.  
  150.  
  151. template bgp uplink {
  152. table ffnet;
  153. local as 64884;
  154. import where is_default();
  155. export filter export_to_upstream_filter;
  156. gateway recursive;
  157. }
  158.  
  159. protocol bgp ffrl_dus1 from uplink {
  160. description "Rheinland Backbone";
  161. source address 2a03:2260:0:366::2;
  162. neighbor 2a03:2260:0:366::1 as 201701;
  163. };
  164.  
  165. protocol bgp ffrl_dus2 from uplink {
  166. description "Rheinland Backbone";
  167. source address 2a03:2260:0:369::2;
  168. neighbor 2a03:2260:0:369::1 as 201701;
  169. };
  170.  
  171. protocol bgp ffrl_fra1 from uplink {
  172. description "Rheinland Backbone";
  173. source address 2a03:2260:0:365::2;
  174. neighbor 2a03:2260:0:365::1 as 201701;
  175. };
  176.  
  177. protocol bgp ffrl_fra2 from uplink {
  178. description "Rheinland Backbone";
  179. source address 2a03:2260:0:368::2;
  180. neighbor 2a03:2260:0:368::1 as 201701;
  181. };
  182.  
  183. protocol bgp ffrl_ber1 from uplink {
  184. description "Rheinland Backbone";
  185. source address 2a03:2260:0:364::2;
  186. neighbor 2a03:2260:0:364::1 as 201701;
  187. };
  188.  
  189. protocol bgp ffrl_ber2 from uplink {
  190. description "Rheinland Backbone";
  191. source address 2a03:2260:0:367::2;
  192. neighbor 2a03:2260:0:367::1 as 201701;
  193. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement