Asterisk Firewall Whitelisting using Firewalld and Iptables
Run the following commands to whitelist the Asterisk server traffic on your Firewall
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@centos~]# firewall-cmd --zone=public --add-port=5060/udp --permanent success [root@centos~]# firewall-cmd --zone=public --add-port=5060/tcp --permanent success [root@centos~]# firewall-cmd --zone=public --add-port=5061/tcp --permanent success [root@centos~]# firewall-cmd --zone=public --add-port=4569/udp --permanent success [root@centos~]# firewall-cmd --zone=public --add-port=5038/tcp --permanent success [root@centos~]# firewall-cmd --zone=public --add-port=10000-20000/udp --permanent success |
Asterisk server is listening on,
Port 5060 UDP/TCP – For SIP traffic from UDP and TCP endpoints
Port 5061 TCP – For SIP traffic from TLS endpoints
Port 4569 UDP – For IAX2 traffic from IAX2 supported endpoints
Port 5038 TCP – For Asterisk Manager ( AMI ) connections
Port 10000-20000 UDP – For RTP of Voice and video calls.
Where is the IPTables directions?
thank you for your help