Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have blocked ports 80, 9001, 9080. What other ports should be blocked to maximize security?

PS: It is a asterisk server / PBX

Sorry: New Systems Admin here :)

Thanks!

share|improve this question

1 Answer 1

The best is to block all the ports (iptables default to DROP) and open only what you need (probably port 5060 at least for your asterisk server). If you need to administer asterisk from outside, port 80 needs to be open if you administer it from a web browser or port 22 if you use ssh.

Update:

For Asterisk, I don't think you need other ports open and even not sure you need 5060 open. If you only receive calls coming through your voip provider (with a trunk) there is no need to open 5060.

You need to open 5060 if you have extensions (or another Voip PBX) connecting from the internet but I don't recommend that if you can avoid it. You can use a VPN instead.

Tbh I think better using asterisk in the LAN (behind a router/server with NAT and firewall), without direct connection to internet. In this case, your internet facing server (or router) has to port-forward the RTP ports range you use in asterisk (8000-10001 possibly) to your asterisk server. You need also to port-forward 5060 if you receive new connections on it.

Obs: a new call received from a trunk (DID for example) is not a new connection to 5060 because the connection to your voip provider using the trunk is initiated by asterisk so it is in RELATED or ESTABLISHED state for the firewall and should be already authorized by the router firewall (if not, you probably have no internet in the LAN).

share|improve this answer
    
Thanks for the input laurent, Well we are doing a tunnel via SSH, so yeah already locked down port 80, too many hackers going around. LOL..any more ports I should be on a look out for? –  JoyIan Yee-Hernandez Aug 31 '12 at 12:26
    
Any database ports? 1433 and 1434 if MS SQL SERVER is in use? –  Dave Aug 31 '12 at 12:32
    
updated answer with more comments on security –  laurent Sep 1 '12 at 0:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.