# Disabling DPD

**URL:** <https://community.zeek.org/t/disabling-dpd/2317>\
**Category:** Zeek\
**Created:** [May 17, 2012, 8:26pm UTC](https://community.zeek.org/t/disabling-dpd/2317 "2012-05-17T20:26:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheharbano\_Khattak](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Sheharbano\_Khattak](https://community.zeek.org/u/Sheharbano_Khattak)\
**Post date:** [May 17, 2012, 8:26pm UTC](https://community.zeek.org/t/disabling-dpd/2317/1 "2012-05-17T20:26:51Z")

</div>

Hi,

For the purpose of testing my scripts, sometimes i am interested in looking at results only from a particular protocol. However, everything is enabled by default. So i have HTTP, SMTP, FTP… analysis going on when i am only interested in, say, DNS. I redefined PacketFilter::all\_packets=F in bro\_init but to no avail. Then i made the same change in the actual script file instead of redefining all\_packets in my script, still the same behavior. Please correct me if i am doing it wrong 🙂

Regards,

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Azoff\_Justin](https://community.zeek.org/u/Azoff_Justin)\
**Post date:** [May 17, 2012, 8:44pm UTC](https://community.zeek.org/t/disabling-dpd/2317/2 "2012-05-17T20:44:39Z")

</div>

try:

&nbsp;&nbsp;&nbsp;&nbsp;redef PacketFilter::all\_packets = F;  
&nbsp;&nbsp;&nbsp;&nbsp;redef capture\_filters = [["only-dns"] = "port 53"];

---

<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:40pm UTC](https://community.zeek.org/t/disabling-dpd/2317/3 "2022-05-06T15:40:21Z")

</div>


