iptables.lua 849 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
  2. -- Licensed to the public under the Apache License 2.0.
  3. module("luci.statistics.rrdtool.definitions.iptables", package.seeall)
  4. function rrdargs( graph, plugin, plugin_instance, dtype )
  5. return {
  6. {
  7. title = "%H: Firewall: Processed bytes in %pi",
  8. vlabel = "Bytes/s",
  9. number_format = "%5.0lf%sB/s",
  10. totals_format = "%5.0lf%sB",
  11. data = {
  12. types = { "ipt_bytes" },
  13. options = {
  14. ipt_bytes = {
  15. total = true,
  16. title = "%di"
  17. }
  18. }
  19. }
  20. },
  21. {
  22. title = "%H: Firewall: Processed packets in %pi",
  23. vlabel = "Packets/s",
  24. number_format = "%5.1lf P/s",
  25. totals_format = "%5.0lf%s",
  26. data = {
  27. types = { "ipt_packets" },
  28. options = {
  29. ipt_packets = {
  30. total = true,
  31. title = "%di"
  32. }
  33. }
  34. }
  35. }
  36. }
  37. end