pfsense_2022.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "extractors": [
  3. {
  4. "title": "pfSense filterlog: IPv4 TCP",
  5. "extractor_type": "regex",
  6. "converters": [
  7. {
  8. "type": "csv",
  9. "config": {
  10. "trim_leading_whitespace": false,
  11. "column_header": "RuleNumber,SubRuleNumber,Anchor,Tracker,Interface,Reason,Action,Direction,IPVersion,TOS,ECN,TTL,ID,Offset,Flags,ProtocolID,Protocol,Length,SourceIP,DestIP,SourcePort,DestPort,DataLength,TCPFlags,Sequence,ACK,Window,URG,Options",
  12. "strict_quotes": false
  13. }
  14. }
  15. ],
  16. "order": 1,
  17. "cursor_strategy": "copy",
  18. "source_field": "message",
  19. "target_field": "FilterData",
  20. "extractor_config": {
  21. "regex_value": "^filterlog\\[.+\\]:(.+)"
  22. },
  23. "condition_type": "regex",
  24. "condition_value": "^filterlog\\[.+\\]:(.+),(in|out),4,.*,tcp,.*$"
  25. },
  26. {
  27. "title": "pfSense filterlog: IPv4 UDP",
  28. "extractor_type": "regex",
  29. "converters": [
  30. {
  31. "type": "csv",
  32. "config": {
  33. "trim_leading_whitespace": false,
  34. "column_header": "RuleNumber,SubRuleNumber,Anchor,Tracker,Interface,Reason,Action,Direction,IPVersion,TOS,ECN,TTL,ID,Offset,Flags,ProtocolID,Protocol,Length,SourceIP,DestIP,SourcePort,DestPort,DataLength",
  35. "strict_quotes": false
  36. }
  37. }
  38. ],
  39. "order": 2,
  40. "cursor_strategy": "copy",
  41. "source_field": "message",
  42. "target_field": "FilterData",
  43. "extractor_config": {
  44. "regex_value": "^filterlog\\[.+\\]:(.+)"
  45. },
  46. "condition_type": "regex",
  47. "condition_value": "^filterlog\\[.+\\]:(.+),(in|out),4,.*,udp,.*$"
  48. },
  49. {
  50. "title": "pfSense filterlog: IPv4 ICMP",
  51. "extractor_type": "regex",
  52. "converters": [],
  53. "order": 0,
  54. "cursor_strategy": "copy",
  55. "source_field": "message",
  56. "target_field": "FilterData",
  57. "extractor_config": {
  58. "regex_value": "^filterlog\\[.+\\]:(.+)"
  59. },
  60. "condition_type": "regex",
  61. "condition_value": "^filterlog\\[.+\\]:(.+),(in|out),4,.*,icmp,.*$"
  62. }
  63. ],
  64. "version": "4.3.9"
  65. }