Closed jgrunzweig closed 2 years ago
Oh, derp, yeah, looks like my local Suricata 5.0.5 validates all these rules
alert ip any 80:100 -> any any ( msg:"start/end outside group"; sid: 1; )
alert ip any 80: -> any any ( msg:"start outside group"; sid: 2; )
alert ip any :100 -> any any ( msg:"end outside group"; sid: 3; )
alert ip any [80:100] -> any any ( msg:"start/end in group"; sid: 4; )
alert ip any [80:] -> any any ( msg:"start in group"; sid: 5; )
alert ip any [:100] -> any any ( msg:"end in group"; sid: 6; )
Thanks for catching that!
Reference: https://suricata.readthedocs.io/en/suricata-6.0.0/rules/intro.html#ports-source-and-destination
Issue looks to be that, while port ranges are supported in groupings, they're not going to work by themselves. Should have a fix that'll tackle it. Going to submit a pull request shortly.