If you are trying to reject an IP address to connect to asterisk, there is no need to run iptables. Each SIP definition in sip.conf can have: deny=0.0.0.0/0.0.0.0 permit=192.168.135.1/255.255.255.0
just set these values and it wont accept anything from that IP. On Mon, Jul 7, 2008 at 7:37 PM, Dovid B <[EMAIL PROTECTED]> wrote: > > ----- Original Message ----- > From: "spectro" <[EMAIL PROTECTED]> > To: "Asterisk Users Mailing List - Non-Commercial Discussion" > <[email protected]> > Sent: Tuesday, July 01, 2008 8:02 PM > Subject: Re: [asterisk-users] sip extension compromised,need help blocking > brute force attempts > > > > On Tue, Jul 1, 2008 at 11:19 AM, Tzafrir Cohen <[EMAIL PROTECTED] > > > > wrote: > >> > >> Fix your logger.conf, then. > >> > >> -- > >> Tzafrir Cohen > > > > What am I missing? > > > > > > [EMAIL PROTECTED] ~]# cat /etc/asterisk/logger.conf > > ; > > ; Logging Configuration > > ; > > ; In this file, you configure logging to files or to > > ; the syslog system. > > ; > > ; For each file, specify what to log. > > ; > > ; For console logging, you set options at start of > > ; Asterisk with -v for verbose and -d for debug > > ; See 'asterisk -h' for more information. > > ; > > ; Directory for log files is configures in asterisk.conf > > ; option astlogdir > > ; > > [logfiles] > > ; > > ; Format is "filename" and then "levels" of debugging to be included: > > ; debug > > ; notice > > ; warning > > ; error > > ; verbose > > ; > > ; Special filename "console" represents the system console > > ; > > ;debug => debug > > ;console => notice,warning,error > > ;console => notice,warning,error,debug > > ;messages => notice,warning,error > > full => notice,warning,error,debug,verbose > > > > ;syslog keyword : This special keyword logs to syslog facility > > ; > > ;syslog.local0 => notice,warning,error > > ; > > [EMAIL PROTECTED] ~]# > > > The script seems to run off the messages log. Uncomment the messages line > and the reload the logger in asterisk (logger reload from the CLI). > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
