Ticket #3421 (closed Feature Requests: fixed)

Opened 1 month ago

Last modified 1 month ago

Extension setup pages should allow setting permit/deny parameters in /etc/asterisk/sip_additional.conf

Reported by: wiseoldowl Assigned to: p_lindheimer
Priority: major Milestone: 2.6
Component: Core - Users/Devices Version: 2.5-branch
Keywords: Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description (Last modified by wiseoldowl)

Basing this on several recent threads about security, it seems that you can use a permit/deny mask on individual extensions (the contexts found in sip_additional.conf) but there is no way to set these from within FreePBX. It seems like this should be relatively trivial to add these two lines to the FreePBX extensions page (and write them in the sip_additional.conf file) and could possibly help save someone from a brute force attack. See examples at http://www.voip-info.org/wiki/index.php?page=Asterisk+sip+permit-deny-mask

I realize that one can use fail2ban to limit access also, but it never hurts to have additional security, and since Asterisk apparently provides it then I think it would be a really good idea if FreePBX would make it easier to implement. You have text boxes for various other little-used options on the extension setup pages, so please consider adding these as well.

I'm setting the priority on this as major based on the number of reports recently received about systems being breached - see this post: http://www.freepbx.org/forum/freepbx/users/security-alert-is-port-5060-open-on-your-router

If you add this please consider backporting it to the 2.4 branch also. Thank you.

Edit: After some additional research I see this may be essentially a duplicate of Ticket #932, where there was even a pair of patches contributed. However, at the time that ticket was opened there had not yet been any known (or at least publicized) exploits of that security hole - the situation is apparently much more critical now. So I will expand my request to ask that if the patch given in #932 actually works, please include it in a FreePBX release/module update so that it is available to all FreePBX users.

Change History

11/27/08 15:44:21 changed by wiseoldowl

  • component changed from - choose - to Core - Users/Devices.

11/27/08 15:45:46 changed by wiseoldowl

  • description changed.

11/27/08 21:31:29 changed by wiseoldowl

  • description changed.

12/01/08 08:46:20 changed by mickecarlsson

  • status changed from new to closed.
  • resolution set to fixed.

(In [7306]) Closes #3421 adds permit/deny to sip and iax devices