I’ve searched the forum to no avail so hopefully I can get some advice here. I have upgraded a
testsystem to Suricata 7 and when I restart the Suricata service my ssh session/s are dropped(snippet from log below). I don’t have this issue with Suricata 6 so trying to find what’s changed in Suricata 7 that would explain this behavior. I’m new to Suricata so I did review docs but nothing stood out as the root cause. Appreciate the feedback.
Without more details it’s hard to help. What runmode do you use, I assume IPS?
What does the config suricata.yaml look like and how do you run it?
Suricata 7 introduced exception policy, see 4. Upgrading — Suricata 8.0.0-dev documentation
Here’s what I can share. Also, including what my suricata option are set to: OPTIONS="-q 0 -q 1 -q 2 -q 3
######## Suricata IPS
-A SIPS -i lo -j ACCEPT
-A SIPS -o lo -j ACCEPT
-A SIPS -j NFQUEUE --queue-balance 0:3 --queue-bypass
-A OUTPUT -o lo -j SIPS
-A OUTPUT -m conntrack --ctstate INVALID -j DROP
-A OUTPUT -m conntrack --ctstate RELATED,ESTABLISHED -j SIPS
-A OUTPUT -m conntrack --ctstate NEW -j OUT
-A OUTPUT -p tcp -j REJECT --reject-with tcp-reset
-A OUTPUT -j REJECT
-A INPUT -i lo -j SIPS
-A INPUT -m conntrack --ctstate INVALID -j DROP
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j SIPS
-A INPUT -m conntrack --ctstate NEW -j IN
-A INPUT -p tcp -j REJECT --reject-with tcp-reset
-A INPUT -j REJECT
-A FORWARD -p tcp -j REJECT --reject-with tcp-reset
-A FORWARD -j REJECT
I consider this resolved as I realized from this that the default behavior is to ignore exception policies in 6x and in 7x the default for most of the exception policies is to fail close.