# Suricata rule bypass and pass keywords

**URL:** <https://forum.suricata.io/t/suricata-rule-bypass-and-pass-keywords/3442>\
**Category:** Rules\
**Tags:** rules, suricata\
**Created:** [April 22, 2023, 1:01pm UTC](https://forum.suricata.io/t/suricata-rule-bypass-and-pass-keywords/3442 "2023-04-22T13:01:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![atbohmer](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/atbohmer/32/1853_2.png) [@atbohmer](https://forum.suricata.io/u/atbohmer)\
**Post date:** [April 22, 2023, 1:01pm UTC](https://forum.suricata.io/t/suricata-rule-bypass-and-pass-keywords/3442/1 "2023-04-22T13:01:31Z")

</div>

Hello,  
In order to prevent some streams to be analyzed by suricata, like some known big backup and cifs/smb streams, I’m trying to comprehend the difference between bypass and pass.

alert http any any → any any (content:“[suricata-ids.org](http://suricata-ids.org)”; http\_host; bypass; sid:10001; rev:1;)  
Decodes the traffic and then totally ignores is?

pass ip 1.2.3.4 any \<\> any any (msg:“pass all traffic from/to 1.2.3.4”; sid:1;)  
Pass seems to pass the packet and the rest of the flow, but logs it to eve.json and such?

Thanks!  
Andre

---

<div class="post-metadata">

**Author:** ![pevma](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/pevma/32/29_2.png) [@pevma](https://forum.suricata.io/u/pevma)\
**Post date:** [April 23, 2023, 8:51am UTC](https://forum.suricata.io/t/suricata-rule-bypass-and-pass-keywords/3442/2 "2023-04-23T08:51:33Z")

</div>

```auto
pass ip 1.2.3.4 .....

```

will not generate alerts , but Suricata will continue to generate any and all network protocol logs to/from that ip - ex: DNS / SMB / DCERPC / FTP / TLS / HTTP / Fileinfo etc etc

```auto
pass ip 1.2.3.4 .....(content:“something”; bypass; sid:123; rev:1;)

```

will make Suricata not generate any type of logs for that ip.

However you might also want to look at conditional protocol logging: [6.33. Config Rules — Suricata 6.0.11 documentation](https://suricata.readthedocs.io/en/suricata-6.0.11/rules/config.html?#config-rules)
