# signarture dst-port issue

**URL:** <https://community.zeek.org/t/signarture-dst-port-issue/1366>\
**Category:** Zeek\
**Created:** [August 4, 2008, 8:33am UTC](https://community.zeek.org/t/signarture-dst-port-issue/1366 "2008-08-04T08:33:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Angel\_Calvo\_M](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Miguel\_Angel\_Calvo\_M](https://community.zeek.org/u/Miguel_Angel_Calvo_M)\
**Post date:** [August 4, 2008, 8:33am UTC](https://community.zeek.org/t/signarture-dst-port-issue/1366/1 "2008-08-04T08:33:18Z")

</div>

Hello,

I am having trouble using signatures on bro. Lets say we have the following signature

signature s2b-99999-9 {  
&nbsp;&nbsp;ip-proto == tcp  
&nbsp;&nbsp;#dst-port == 80  
&nbsp;&nbsp;#dst-port == http\_ports  
&nbsp;&nbsp;tcp-state established  
&nbsp;&nbsp;event "Sample Signature"  
}

when I using "dst-port == 80" everything goes seems to work. By 'work' I mean that bro generates plenty of warnings placing them on signatures.log, however, if we replace "st-port == 80" for "dst-port == http\_ports" and throw it again against the same trace, we no longer get any warnings.

http\_ports is declared on $BROPATH/policy/snort.bro as:  
const http\_ports = { 80/tcp, 8000/tcp, 8001/tcp, 8080/tcp };

I assume snort..bro is loaded correctly since otherwise throws non-declaration errors. It is loaded it on my hostname.bro file which I use when running bro.

Also, does anybody know whether next release will implement other regular expression matching library? I am trying to update snort2bro to support the snort pcre, however it is not a trivial task.

Any suggestions?  
Thank you!  
Miguel

---

<div class="post-metadata">

**Author:** ![robin](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/robin/32/599_2.png) [@robin](https://community.zeek.org/u/robin)\
**Post date:** [August 4, 2008, 5:52pm UTC](https://community.zeek.org/t/signarture-dst-port-issue/1366/2 "2008-08-04T17:52:46Z")

</div>

> I am having trouble using signatures on bro. Lets say we have the following signature

Can you send me a small trace with which you see the problem and the  
exect command line you're using to start Bro?

> Also, does anybody know whether next release will implement other  
> regular expression matching library?

No, we don't have any plans to switch to another regexp library.

> I am trying to update snort2bro to support the snort pcre, however  
> it is not a trivial task.

Cool! but yeah, not exactly trivial. 🙂

Robin

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:38pm UTC](https://community.zeek.org/t/signarture-dst-port-issue/1366/3 "2022-05-06T15:38:36Z")

</div>

Closed on May 6, 2022, 3:38pm UTC


