# Issue with modifying rule more than once suricata-update

**URL:** <https://forum.suricata.io/t/issue-with-modifying-rule-more-than-once-suricata-update/919>\
**Category:** Rules\
**Created:** [December 22, 2020, 9:10pm UTC](https://forum.suricata.io/t/issue-with-modifying-rule-more-than-once-suricata-update/919 "2020-12-22T21:10:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vagishagupta23](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/vagishagupta23/32/147_2.png) [@vagishagupta23](https://forum.suricata.io/u/vagishagupta23)\
**Post date:** [December 22, 2020, 9:10pm UTC](https://forum.suricata.io/t/issue-with-modifying-rule-more-than-once-suricata-update/919/1 "2020-12-22T21:10:24Z")

</div>

Hey team,

I am trying to modify the same rule more than once using modify.conf in suricata-update but the rule remains unchanged.

Say for example I have a rule:

> alert tls any any → any any (msg:“SURICATA TLS invalid SSLv2 header”; flow:established; app-layer-event:tls.invalid\_sslv2\_header; flowint:tls.anomaly.count,+,1; classtype:protocol-command-decode; sid:2230000; rev:1;)

Now I add the following lines to my modify.conf file and run _suricata-update --modify-conf=suricata-update/suricata/update/configs/modify.conf --force --no-merge_:

> 2230000 “alert” “reject”  
> 2230000 “reject” “pass”

The expected new rule should be:

> pass tls any any → any any (msg:“SURICATA TLS invalid SSLv2 header”; flow:established; app-layer-event:tls.invalid\_sslv2\_header; flowint:tls.anomaly.count,+,1; classtype:protocol-command-decode; sid:2230000; rev:1;)

However, the rule remains unchanged, i.e.

> alert tls any any → any any (msg:“SURICATA TLS invalid SSLv2 header”; flow:established; app-layer-event:tls.invalid\_sslv2\_header; flowint:tls.anomaly.count,+,1; classtype:protocol-command-decode; sid:2230000; rev:1;)

Is there anything that I’m missing or doing wrong? Any help on this is greatly appreciated.

Thanks,  
Vagisha

---

<div class="post-metadata">

**Author:** ![lex](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@lex](https://forum.suricata.io/u/lex)\
**Post date:** [January 3, 2021, 12:15am UTC](https://forum.suricata.io/t/issue-with-modifying-rule-more-than-once-suricata-update/919/2 "2021-01-03T00:15:50Z")

</div>

Have you tried without _–no-merge_? I’ve tried and it works out.

---

<div class="post-metadata">

**Author:** ![taylor23](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@taylor23](https://forum.suricata.io/u/taylor23)\
**Post date:** [January 11, 2021, 5:53pm UTC](https://forum.suricata.io/t/issue-with-modifying-rule-more-than-once-suricata-update/919/3 "2021-01-11T17:53:16Z")

</div>

Hey Vagisha,

I am having a similar issue that I reported here: [Suricata-Update Drop and Modify](https://forum.suricata.io/t/suricata-update-drop-and-modify/907)

I still have not had luck getting this to work. Did you find anything out on your end?

Thanks,  
Taylor

---

<div class="post-metadata">

**Author:** ![vagishagupta23](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/vagishagupta23/32/147_2.png) [@vagishagupta23](https://forum.suricata.io/u/vagishagupta23)\
**Post date:** [January 11, 2021, 6:45pm UTC](https://forum.suricata.io/t/issue-with-modifying-rule-more-than-once-suricata-update/919/4 "2021-01-11T18:45:25Z")

</div>

> [@vagishagupta23](#):
>
> suricata-update --modify-conf=suricata-update/suricata/update/configs/modify.conf --force --no-merge

yes, this is the command I have been using

_suricata-update --modify-conf=suricata-update/suricata/update/configs/modify.conf --force --no-merge_

---

<div class="post-metadata">

**Author:** ![vagishagupta23](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/vagishagupta23/32/147_2.png) [@vagishagupta23](https://forum.suricata.io/u/vagishagupta23)\
**Post date:** [January 11, 2021, 7:19pm UTC](https://forum.suricata.io/t/issue-with-modifying-rule-more-than-once-suricata-update/919/5 "2021-01-11T19:19:19Z")

</div>

Yes, facing a similar issue. But if try using --local for the rule file that I’m modifying multiple times, it resolves my issue.

However this shouldn’t be a workaround here. We should be able to modify rules with --url option or the source set in update.yaml whenever there is a fresh download.
