Don’t allow 5060/UDP.
Here is the crux of the matter. The provider registers with the PBX, unlike the usual scenario where the PBX registers with the provider. Consequently, I cannot close or change this port. If I do, the telephony will stop working altogether.
Also, can you configure an external firewall? (Router if local or cloud firewall)
Currently, the router only allows traffic on port 5060/UDP-TCP from a specific IP address. It’s safe enough, but only until we open the ports to the entire internet.
One of the reasons I posted this question here is, among other things, an attempt to filter out fake calls from CDR Reports. Even if a call doesn’t go through, the attempt will be recorded in the report. So instead of 100 records a day, it could be even 10,000, and that’s exactly what I don’t want.
+1
I will try to hide FreePBX behind an SBC like LibreSBC.