IP Tables script
A fairly simple IP Tables script for allowing Flowroute, SSH, and HTTPS access to your system can be implemented as follows:
To allow SIP Signaling from Flowroute's Primary and Secondary proxies are as follows:
iptables -A INPUT -s sip-la1.flowroute.com -p UDP --dport 5060 -j ACCEPT
iptables -A INPUT -s sip-lv1.flowroute.com -p UDP --dport 5060 -j ACCEPT
To allow RTP Media (audio) into your system (verify the RTP range your system needs as this may vary):
iptables -A INPUT -p UDP --dport 10000:20000 -j ACCEPT
To allow SSH Access into your system (allow this only if you need it), where xxx.xxx.xxx.xxx is a trusted source IP or hostname you would be connecting from.
iptables -A INPUT -s xxx.xxx.xxx.xxx -p TCP --dport 22 -j ACCEPT
To allow HTTPS access to your system (allow this only if you need it), where xxx.xxx.xxx.xxx is a trusted source IP or hostname you would be connecting from.
iptables -A INPUT -s xxx.xxx.xxx.xxx -p TCP --dport 443 -j ACCEPT
Once you have those rules inputted, simply issue the following command:
iptables-save
After you have saved your IP Tables configuration, issue the following command to view your IP Tables configuration:
iptables -L
If everything is done correctly, you may need to restart iptables or your network depending on your distribution of Linux. Once restarted, run:
iptables -L
This allows you to verify if your iptables are still intact.
Additional resources
For more information on how to configure iptables, please see the following guides: