Basic Security with Asterisk/Freeswitch

This post is not exhaustive. These are the minimum security measures.

  1. Block all access to port 5060 and 5080
    1. /sbin/iptables -A INPUT -p udp –destination-port 5080 -j DROP
    2. /sbin/iptables -A INPUT -p udp –destination-port 5080 -j DROP
  2. Allow only specific IPs to connect
    1. /sbin/iptables -I INPUT -p udp -s {IP} –destination-port 5060 -j ACCEPT
    2. /sbin/iptables -I INPUT -p udp -s {IP} –destination-port 5080 -j ACCEPT

Leave a Reply

Your email address will not be published. Required fields are marked *