- November 1, 2018 at 11:34 pm
Either using a firewall or public IP connected to your box, you should open ports 5060 (sip signalling) and the RTP ports for media. Usually asterisk use ports from 10000 to 20000 UDP. If you wanna use video, also open h254. I strongly recommend you use iax2 from users coming from internet because you only have to open the 4569 UDP port. Keep in mind that iax2 doesnt do video, but you save yourself from the NAT headache when you use iax2. You should use fail2ban integrated in vital along with centos firewall too.
If you go with sip coming from outside, you´ll have to announce your private networks, othewise your external users wont communicate with your internals.