In FreePBX there is no direct option in the graphical interface to configure passive ports for the FTP protocol or similar services like FTP servers or mIRC. However, if you are referring to passive ports for RTP or SIP (which is common in Asterisk/FreePBX), these ranges are configured directly in the Asterisk configuration files, and then FreePBX manages them. So, in this article we will explain how to configure these ports.
Edit the Asterisk rtp.conf file:
nano /etc/asterisk/rtp_additional.conf
Add or modify the following lines:
[general]
rtpstart=10000
rtpend=20000
You can customize the range according to your needs (for example, 10000 to 20000 is the default range recommended by Asterisk).
Configure the ports in your firewall
After defining them in Asterisk, make sure to open the same ports in the server's firewall.
If you are using ufw, open the UDP range with the following command.
ufw allow 10000:20000/udp
If you are using Clouding's external firewall, you will need to add the specific rule in the profile you wish to use or have active at that moment.
Finally, restart the Asterisk and FreePBX services:
fwconsole reload
systemctl restart asterisk
We hope this article has been helpful! 🙂 Remember, if you have any questions about this or any other issue related to your servers at Clouding, feel free to contact us at soporte@clouding.io We are here to help you with anything you need!