balancerlite.example 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Example UCI config (output of config.example()) — copy to /etc/config/balancerlite
  2. # on the target router, then /etc/init.d/balancerlite enable.
  3. # OpenWrt /etc/config/balancerlite
  4. # Place at /etc/config/balancerlite
  5. config general 'general'
  6. option host 'openwrt-router'
  7. option dry_run '0'
  8. option log_level 'info'
  9. config health 'health'
  10. option probe_interval '2s'
  11. option window_size '10'
  12. option down_threshold '5'
  13. option up_threshold '10'
  14. list tcp_target '1.1.1.1:443'
  15. list tcp_target '8.8.8.8:53'
  16. option dns_probe_domain 'example.com'
  17. config wan 'wan_a'
  18. option interface 'eth0'
  19. option address '192.168.10.2/24'
  20. option gateway '192.168.10.1'
  21. option preference '100'
  22. option probe_target ''
  23. config wan 'wan_b'
  24. option interface 'eth1'
  25. option address '192.168.20.2/24'
  26. option gateway '192.168.20.1'
  27. option preference '50'
  28. option probe_target ''
  29. config routing 'routing'
  30. option table_a '100'
  31. option table_b '101'
  32. option mark_active_a '0x1'
  33. option mark_active_b '0x2'
  34. config wireguard 'wg'
  35. option enabled '0'
  36. option interface 'wg0'
  37. config notifier 'notifier'
  38. option webhook_url ''
  39. option webhook_secret ''
  40. option batch_window '200ms'
  41. option max_attempts '24'
  42. option initial_backoff '1s'
  43. option max_backoff '5m'
  44. option outbox_capacity '10000'
  45. option cb_threshold '5'
  46. option cb_cooldown '1m'
  47. config flap 'flap'
  48. option switch_count '3'
  49. option window '5m'
  50. option recovery_grace '5m'
  51. config features 'features'
  52. option hot_reload '0'
  53. option trace_ids '1'
  54. config store 'store'
  55. option state_dir '/root/balancerlite'
  56. option retention_days '30'