Advertisement
Guest User

Untitled

a guest
Jun 17th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. package babeld
  2.  
  3. # Babeld reads options from the following files (the last one takes precedence
  4. # if an option is defined in several places):
  5. # - the file defined by the option conf_file (default: /etc/babeld.conf),
  6. # - *.conf files in the directory defined by conf_dir (default: /tmp/babel.d/),
  7. # - this UCI configuration file.
  8.  
  9. # See "man babeld" for all available options ("Global options").
  10. # Important: remember to use '_' instead of '-' in option names.
  11. config general
  12. # option 'random_id' 'true'
  13. # option 'debug' '1'
  14. option 'local_port' '33123'
  15. # option 'log_file' '/var/log/babeld.log'
  16. ## Enable ipv6-subtrees by default since OpenWrt should ship with a
  17. ## recent enough kernel for it to work.
  18. option 'ipv6_subtrees' 'true'
  19. ## This seems somewhat buggy on BB. If you need only one
  20. ## import-table statement, "option import_table 42" should work.
  21. # list 'import_table' '42'
  22. # list 'import_table' '100'
  23. ## Alternative configuration file and directory.
  24. ## See comment at the top of this file for more details.
  25. # option 'conf_file' '/etc/babeld.conf'
  26. # option 'conf_dir' '/tmp/babel.d/'
  27. option 'diversity' '3'
  28.  
  29. config interface
  30. ## You can use aliases (like lan, wlan) or real names (like eth0.0).
  31. ## If you use an alias, it must be already defined when babeld starts.
  32. ## Otherwise, the name is taken literally and the interface can be
  33. ## brought up later (useful for tunnels for instance).
  34. option 'ifname' 'lan'
  35.  
  36. config interface
  37. option 'ignore' 'true'
  38. ## Physical interface name
  39. option 'ifname' 'tun-example'
  40. # option 'max_rtt_penalty' '90'
  41.  
  42. # A config interface without "option ifname" will set default options
  43. # for all interfaces. Interface-specific configuration always overrides
  44. # default configuration.
  45. config interface
  46. option 'enable_timestamps' 'true'
  47. # option 'update_interval' '30'
  48.  
  49.  
  50. # A filter consists of a type ('in', 'out' or 'redistribute'), an action
  51. # ('allow', 'deny' or 'metric xxx') and a set of selectors ('ip', 'eq',
  52. # etc.). See babeld man page ("Filtering rules") for more details.
  53. # Here is a sample filter wich redistributes the default route if its
  54. # protocol number is "boot", e.g. when it installed by dhcp. It is
  55. # disabled by default.
  56. config filter
  57. option 'ignore' 'true'
  58. # Type
  59. option 'type' 'redistribute'
  60. # Selectors: ip, eq, le, ge, src_ip, src_eq, src_le, src_ge, neigh, id,
  61. # proto, local, if.
  62. option 'ip' '0.0.0.0/0'
  63. option 'eq' '0'
  64. option 'proto' '3'
  65. # Action (one of: allow, deny, metric XXX, src-prefix XXX).
  66. option 'action' 'metric 128'
  67.  
  68. # if you are an ipv6 source specific gateway un-ignore
  69. config filter
  70. option 'ignore' 'true'
  71. # Type
  72. option 'type' 'redistribute'
  73. # Selectors: ip, eq, le, ge, neigh, id, proto, local, if
  74. option 'src_ip' '::/0'
  75. option 'src_ge' '0'
  76. option 'proto' '0'
  77. # Action
  78. option 'action' 'metric 96'
  79. # These distribute all the routes on all the interfaces
  80.  
  81. config filter
  82. option 'ignore' 'true'
  83. option 'type' 'redistribute'
  84. option 'ip' '0.0.0.0/0'
  85. option 'le' '0'
  86. option 'action' 'allow'
  87. config filter
  88. option 'ignore' 'true'
  89. option 'type' 'redistribute'
  90. option 'ip' '::/0'
  91. option 'le' '0'
  92. option 'action' 'allow'
  93. config filter
  94. option 'ignore' 'true'
  95. option 'type' 'redistribute'
  96. option 'ip' '::/0'
  97. option 'le' '61'
  98. option 'action' 'allow'
  99.  
  100. config filter
  101. option 'ignore' 'true'
  102. option 'type' 'redistribute'
  103. option 'ip' '0.0.0.0/0'
  104. option 'le' '24'
  105. option 'action' 'allow'
  106.  
  107. # Notice that the 'local' selector is a boolean.
  108. config filter
  109. option 'ignore' 'false'
  110. option 'type' 'redistribute'
  111. option 'local' 'true'
  112. # No action means "allow"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement