Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suricata won't restart after build & push ruleset #291

Open
woundride opened this issue Jul 27, 2023 · 3 comments
Open

Suricata won't restart after build & push ruleset #291

woundride opened this issue Jul 27, 2023 · 3 comments

Comments

@woundride
Copy link

I've updated Scirius container on 2023/07/24

From update, when I build & push ruleset, Suricata won't restart :

suricata_won_t_restart

To mitigate and apply ruleset immediately, I restart container :

selks-user@selks:~$ sudo docker restart suricata

@pevma
Copy link
Member

pevma commented Jul 28, 2023

Thank you for posting the report.
I could not reproduce the issue.
It is possible that it can take a bit of time for the ruelset reload to complete.
What happens is , we start a ruelset reload via suricata native unix socket command and then it is triggered and goes through a regular reloading process.

But can you tail the actual suricata log and see if the update is going through:

tail -F  containers-data/suricata/logs/suricata.log 

and then do the update rulesets (select all actions please- fetch,build, push).

@woundride
Copy link
Author

Thanks for your reply @pevma

Update is OK, I've verified in scirius.rules file in the container and my new rules have been added :

rules_ok

But, the file is not updated in conainers-data directory, strange 🤔 :

image

When I try tail -f on containers-data/suricata/logs/suricata.log, no news logs :

image

News logs appear only when I restart Suricata container :

image

But files in /opt/selksd/SELKS/docker/containers-data/suricata/etc/rules are always not updated.

@pevma
Copy link
Member

pevma commented Jul 30, 2023

Please see #290 for proper setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants