OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: itn3rd77 on February 21, 2024, 08:58:07 AM

Title: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: itn3rd77 on February 21, 2024, 08:58:07 AM
Hi,

after the update to 24.1.2 and Suricata 7 on board back again my VoIP stopped working. My VoIP phone (a Grandstream) sometimes gets a connection to my provider but no outgoing or incoming calls are posible.

Disabling Suricata brings everything back to life instantly. Enabling Suricata breaks the setup again. Nothing related is shown in the logs of Suricata or that anything is blocked. No other changes done on system just the update to update to 24.1.2.

Running without Suricata now. Any help is appreciated!

Thanks and best regards
Ingo
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: misterk on February 21, 2024, 09:11:59 AM
Hi,

same problem here with Snom Phones.
After disable IPS Mode it work fine.

Best regards
Florian
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: HW on February 21, 2024, 03:59:17 PM
Same problem here with Yealink Dect. Rolled back to 24.1.1
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: franco on February 21, 2024, 04:00:24 PM
Disable IPS?

Diagnosing these issues will cost a lot of time and we're not going to roll back Suricata 7 anymore.


Cheers,
Franco
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: amw-tue on February 21, 2024, 07:59:59 PM
Is it possible that there is a connection between this thread and the topic "Suricata - NUMA nodes" in suricata 7.0.3?
I had the same issues as desribed above as well as the errors in the log regarding the numa nodes mentioned by fadern.
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: itn3rd77 on February 21, 2024, 09:12:03 PM
After install of patch OPNsense 24.1.2_1 today my VoIP phone is working again with Suricata 7 and IPS enabled. I don't get the point but will not complain.

Can anybody confirm this?

Best regards
Ingo
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: vik on February 21, 2024, 09:26:23 PM
same issue here ... 24.1.2 and Suricata 7 breaks VOIP for me
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: ChrisChros on February 22, 2024, 07:36:46 AM
Quote from: itn3rd77 on February 21, 2024, 09:12:03 PM
After install of patch OPNsense 24.1.2_1 today my VoIP phone is working again with Suricata 7 and IPS enabled. I don't get the point but will not complain.

Can anybody confirm this?

I cannot confirm the behavior. I have also installed 24.1.2_1 and my VoIP was not able to connect to the service provider. After disabling IPS Mode in Suricata the phone is able to establish a connection again to the provider.
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: guenti_r on February 22, 2024, 11:19:12 AM
Same issue here with 24.1.2.
Updated to 21.1.2_1, restarted OPNSense does not bring VoIP back.
Then i disabled & enabled Suricata and now it is working again!
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: amw-tue on February 22, 2024, 12:22:02 PM
I can confirm that 24.1.2_1 makes no difference, VOIP is not working as long IPS is active.
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: mimugmail on February 22, 2024, 12:22:50 PM
Can you try this?
https://forum.opnsense.org/index.php?topic=38989.0
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: itn3rd77 on February 22, 2024, 04:22:52 PM
Hi,

sorry for my false positive. It does not work for me either after 21.1.2_1  :-[

I got my hands on mimugmail post and searched eve.json for my drops:

{"timestamp":"2024-02-22T07:52:13.119012+0100","flow_id":1076748976560117,"in_iface":"igb1","event_type":"drop","vlan":[42],"src_ip":"192.168.42.100","src_port":20538,"dest_ip":"185.22.44.186","dest_port":5060,"proto":"UDP","pkt_src":"wire/pcap","direction":"to_server","drop":{"len":48,"tos":104,"ttl":64,"ipid":8685,"udplen":28,"reason":"applayer error"}}


As described I added the following to /usr/local/etc/suricata/custom.yaml and restarted Suricata:


app-layer:
  error-policy: ignore


No more drops in eve.json for 30 minutes and phone still connected.

I can't judge if this is harmless and the way to go. Besides that if you click "Apply" button in the UI the /usr/local/etc/suricata/custom.yaml get's overwriten with the template /usr/local/opnsense/service/templates/OPNsense/IDS/custom.yaml.sample.

What's the right way to do customizations?

Best regards and sorry again for my false positve
Ingo
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: mimugmail on February 22, 2024, 06:46:23 PM
Better to add a checkbox in UI
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: ChrisChros on February 22, 2024, 09:33:44 PM
Quote from: mimugmail on February 22, 2024, 12:22:50 PM
Can you try this?
https://forum.opnsense.org/index.php?topic=38989.0

I implemented the suggestion but my phones have still a problem to connect to the provider. Not directly after the modification but after some time.
After disabling the IPS mode within seconds the phones are connected.
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: misterk on February 23, 2024, 10:49:15 AM
24.1.2_1 make no difference. IPS Mode off and all the phone work.
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: Bunch on February 23, 2024, 06:22:24 PM
Quote from: mimugmail on February 22, 2024, 12:22:50 PM
Can you try this?
https://forum.opnsense.org/index.php?topic=38989.0

Just tried addingexception-policy: ignore
to
/usr/local/opnsense/service/templates/OPNsense/IDS/custom.yaml

no more drop for VoIP now. Thanks.
I will try again 12 hours later to confirm it won't drop anymore.
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: amw-tue on February 24, 2024, 05:03:25 PM
I have tried the suggestion made by mimugmail but have the same result as ChrisChros - it will not work.
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: allan on February 25, 2024, 05:28:15 PM
I got this to work only after copying the entire app-layer: section from suricata.yaml and inserting error-policy: ignore at the first indent - same level as protocols:.

The Suricata 7 documentation (https://docs.suricata.io/en/suricata-7.0.2/configuration/suricata-yaml.html#splitting-configuration-in-multiple-files) states that adding app-layer: in custom.yaml overwrites the one in suricata.yaml. I recommend anyone still having issues to try this if disabling IPS is not an option.

Quote
If the same section, say outputs is later redefined after the include statement it will overwrite the included file. Therefore any include statement at the end of the document will overwrite the already configured sections.
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: MoonbeamFrame on February 26, 2024, 03:40:39 PM
Just a FYI.

I have two VoIP systems behind almost identical firewall hardware (one has a couple of additional 10GB ports) running  24.1.2_1  and configured in the same way. PBX traffic is over a 1:1 NAT.

I've seen the same issue of IDS needing to be disabled on one of them but not the other.

The major difference between the two looks to be the SIP trunk provider.

Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: misterk on March 04, 2024, 11:05:55 AM
any news on the problem?
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: pdishman on March 04, 2024, 07:24:20 PM
Not in the exact same vein:

With upgrade to 24.1.2 and activation of Suricata 7 we saw a drastic decline in Teams throughput for all calls and video with their service.  Only way we were able to circumvent was by turning off Suricata.  Once it was off we saw throughput return to normal and users able to place calls with 0 lag or interference. Not sure if it assists, but hoping someone with more knowledge or within OpnSense see this thread and has a fix for next release.
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: muchacha_grande on March 05, 2024, 12:30:25 AM
This problem was addressed here https://github.com/opnsense/core/pull/7271
A suppose it will be fixed in the next update.
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: franco on March 05, 2024, 07:32:31 AM
Yeah, 24.1.3 should address this further. It probably going to be released tomorrow.


Cheers,
Franco
Title: Re: After update OPNsense 24.1.2 and Suricata 7 VoIP is dead
Post by: chemlud on March 05, 2024, 11:58:28 AM
RE: VOIP/SIP issues

Do a package capture on WAN while calling your number and see if there are SIP invite packages coming in from your provider.

Reboot and repeat.