You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

p0f.conf 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify 'local.d/p0f.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/p0f.conf' to strictly override all
  8. # parameters defined inside this section
  9. #
  10. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  11. # for details
  12. #
  13. # Module documentation can be found at https://rspamd.com/doc/modules/p0f.html
  14. p0f {
  15. # Disable module by default
  16. enabled = false;
  17. # Path to the unix socket that p0f listens on
  18. socket = '/var/run/p0f.sock';
  19. # Connection timeout
  20. timeout = 5s;
  21. # If defined, insert symbol with lookup results
  22. symbol = 'P0F';
  23. # Patterns to match against results returned by p0f
  24. # Symbol will be yielded on OS string, link type or distance matches
  25. patterns = {
  26. WINDOWS = '^Windows.*';
  27. #DSL = '^DSL$';
  28. #DISTANCE10 = '^distance:10$';
  29. }
  30. # Cache lifetime in seconds (default - 2 hours)
  31. expire = 7200;
  32. # Cache key prefix
  33. prefix = 'p0f';
  34. .include(try=true,priority=5) "${DBDIR}/dynamic/p0f.conf"
  35. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/p0f.conf"
  36. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/p0f.conf"
  37. }