# I want to make exceptions to certain rules

**URL:** <https://forum.suricata.io/t/i-want-to-make-exceptions-to-certain-rules/600>\
**Category:** Help\
**Created:** [September 14, 2020, 11:54am UTC](https://forum.suricata.io/t/i-want-to-make-exceptions-to-certain-rules/600 "2020-09-14T11:54:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![headfish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/headfish/32/275_2.png) [@headfish](https://forum.suricata.io/u/headfish)\
**Post date:** [September 14, 2020, 11:54am UTC](https://forum.suricata.io/t/i-want-to-make-exceptions-to-certain-rules/600/1 "2020-09-14T11:54:24Z")

</div>

i build suricata and using ET Rule and some custom rules…

so I would like to make exceptions based on Src IP or Dst IP for a specific rule.

I don’t want to do it directly in the .rule file. Is it possible??

---

<div class="post-metadata">

**Author:** ![Jeff\_Lucovsky](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/jeff_lucovsky/32/11_2.png) [@Jeff\_Lucovsky](https://forum.suricata.io/u/Jeff_Lucovsky)\
**Post date:** [September 14, 2020, 12:19pm UTC](https://forum.suricata.io/t/i-want-to-make-exceptions-to-certain-rules/600/2 "2020-09-14T12:19:18Z")

</div>

Hi,  
Please explain the types of exceptions that you would like to make. Note that you can make changes to the “rule variables” in the `vars` section of the configuration file.

E.g.,  
`HOME_NET`, etc

---

<div class="post-metadata">

**Author:** ![headfish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/headfish/32/275_2.png) [@headfish](https://forum.suricata.io/u/headfish)\
**Post date:** [September 17, 2020, 2:29am UTC](https://forum.suricata.io/t/i-want-to-make-exceptions-to-certain-rules/600/3 "2020-09-17T02:29:32Z")

</div>

for example. if exist Rule name CUSTOM\_RULE, i want to detect CUSTOM\_RULE except src IP: 10.0.0.10

---

<div class="post-metadata">

**Author:** ![Jeff\_Lucovsky](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/jeff_lucovsky/32/11_2.png) [@Jeff\_Lucovsky](https://forum.suricata.io/u/Jeff_Lucovsky)\
**Post date:** [September 18, 2020, 1:31pm UTC](https://forum.suricata.io/t/i-want-to-make-exceptions-to-certain-rules/600/4 "2020-09-18T13:31:22Z")

</div>

Perhaps this thread may help: [Excluding IP Addresses from Monitoring or IDS/IPS](https://forum.suricata.io/t/excluding-ip-addresses-from-monitoring-or-ids-ips/214)
