Skip to content

Commit

Permalink
Fixing Suricata configuration errors (although it did not stopped it …
Browse files Browse the repository at this point in the history
…from running), and retrieving destination IP in more use cases than before
  • Loading branch information
GuillaumeCSekoia committed Feb 10, 2025
1 parent 3c4052f commit c84b5c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions suricata_/conf/suricata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1927,8 +1927,8 @@ __RULE_FILES__
## Auxiliary configuration files.
##
classification-file: /etc/suricata/classification.config
reference-config-file: /etc/suricata/reference.config
classification-file: /usr/local/etc/suricata/classification.config
reference-config-file: /usr/local/etc/suricata/reference.config
# threshold-file: /etc/suricata/threshold.config
##
Expand Down
2 changes: 1 addition & 1 deletion suricata_/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def attach_network_connection(data: dict):

network_data = {
"objectid": {
"tag": ext_hostname + f"{f':{dest_port}' if dest_port else ''}",
"tag": f"{dest_ip if dest_ip else ext_hostname}" + f"{f':{dest_port}' if dest_port else ''}",
"time_observed": timestamp,
},
"source_ip": src_ip,
Expand Down

0 comments on commit c84b5c1

Please sign in to comment.