I'm trying to setup a Freepbx VOIP system. It will work fine depending on what ports are randomly selected. If the traffic occurs on port between 5000-20000 it seems fine. Anything above that doesn't work and gets blocked.
I have created a port forward rule to allow incoming traffic from the voip.ms server on all ports 10000-65535 UDP yet it still gets blocked.
see attached screenshot of rules and log.
When it is still not working. Some hints:
When you use voip.ms just as a SIP Trunk, you don't need to do a Port forwarding.
Just register the FreePBX online and allow the outgoing connections to voip.ms on your OPNsense <-> FreePBX Interface.
If not working then, i think your issue is in your FreePBX config, not OPNsense...
Basically the FreePBX is acting like a normal SIP Client, you need to forward ports, when you want to register devices from the internet to your FreePBX (like a SMartphone or so), or do it via VPN - but thats another topic.