[asterisk-users] Someone has hacked into our system

Joseph syscon780 at gmail.com
Tue Nov 23 17:54:13 CST 2010


On 11/23/10 14:18, Gary Kuznitz  wrote:
>Thank you for the reply...
>
>Comments below...
>On 22 Nov 2010 at 17:23, Tilghman (Tilghman Lesher <asterisk-
>users at lists.digium.com>) commented about Re: [asterisk-users] Someone has hacked
>into our :
>
>> On Monday 22 November 2010 17:10:31 Gary Kuznitz wrote:
>> > I have the log now. I'd like to know what to look for in trying to figure
>> > out how the calls are getting originated. I'd be happy to shere all the
>> > information. I just don't want to post information on this public list that
>> > might show other people how to get in to our box.
>>
>> allowguest=yes in sip.conf, with a context= in the [general] section that
>> is permitted to make outbound calls?
>
>I'm trying to understand exactly what this means.
>
>I found a sip.conf in /etc/asterisk
	
>I have a [general] section.
>I don't have allowguest=yes.  Is that good or am I supposed to have it?

Look for "allowguest" default is "yes"
I change it to allowguest=no
In addition you might want to restrict some countries in your dial-plan, here is my list:

[blocked-numbers]
;block bahamas, etc
         exten => _91900.,1,congestion    ; N11
         exten => _91XXX976.,1,congestion ; N11
         exten => _91XXX555.,1,congestion ; N11
         exten => _91X11.,1,congestion    ; N11
         exten => _91867.,1,congestion    ; Yukon (sorry mike)

         ;exten => _1NPA Country
         exten => _91232.,1,congestion;   Sierra Leone
         exten => _91242.,1,congestion;   BAHAMAS
         exten => _91246.,1,congestion;   BARBADOS
         exten => _91264.,1,congestion;   ANGUILLA
         exten => _91268.,1,congestion;   ANTIGUA/BARBUDA
         exten => _91284.,1,congestion;   BRITISH VIRGIN ISLANDS
         exten => _91345.,1,congestion;   CAYMAN ISLANDS
         exten => _91441.,1,congestion;   BERMUDA
         exten => _91473.,1,congestion;   GRENADA
         exten => _91649.,1,congestion;   TURKS & CAICOS ISLANDS
         exten => _91664.,1,congestion;   MONTSERRAT
         exten => _91758.,1,congestion;   ST. LUCIA
         exten => _91767.,1,congestion;   DOMINICA
         exten => _91784.,1,congestion;   ST. VINCENT & GRENADINES
         exten => _91809.,1,congestion;   DOMINICAN REPUBLIC
         exten => _91829.,1,congestion;   DOMINICAN REPUBLIC
         exten => _91868.,1,congestion;   TRINIDAD AND TOBAGO
         exten => _91869.,1,congestion;   ST. KITTS AND NEVIS
         exten => _91876.,1,congestion;   JAMAICA

-- 
Joseph



More information about the asterisk-users mailing list