Now that you have set up your personal Asterisk® server, it’s time to secure it. I can’t overstate the importance of this step. Without it, you could be leaving your server’s VoIP and SSH ports open for anyone on the Internet, which is a very bad idea and may cost you a lot of money.
Full article here:
Securing Your Asterisk VoIP Server with IPTables (Lin’s Tech Blog)