Facing Problem in Asterisk peer Authentication with Freeradius.
Hi, I want to authenticate asterisk peer using freeradius I am using asterisk 12.0.0 and Freeradius 2.2.1. I have configured freeradius correctly as I am able to authenticate user saved in users file from the terminal by using "radclient" command from the terminal. but when I try to register peer in asterisk the freeradius authentication doesn't work. Even I don't get any request from asterisk server in radius logs. My sip.conf configuration is : [1000] type=friend context=test auth_type=radius host=dynamic and user credentials are placed in /usr/local/etc/raddb/users as: 1000 Cleartext-Password := "password" Please Help me in this regard.
On 23 Sep 2013, at 11:27, Husnain Taseer <husnain.taseer@gmail.com> wrote:
Even I don't get any request from asterisk server in radius logs.
You're looking at the wrong layer for the problem. Fire up tcpdump. Do you see any radius traffic leaving the asterisk box? Does it reach the RADIUS server? If no traffic is leaving the asterisk server, you'll need to ask the Asterisk mailing lists. If traffic is going missing, you need to check your network. If traffic does reach the radius server, you've either broken your RADIUS configuration (post a full debug log) or your environment is screwed up (check the local firewall, SELinux, AppArmor...) Regards, Adam Bishop gpg: 0x6609D460 Janet, the UK's research and education network. Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
In tcpdump asterisk not sending request to the freeradius can u tell after configuring freeradius what configurations are needed to be done in asterisk. Regards, Husnain Taseer On Mon, Sep 23, 2013 at 4:11 PM, Adam Bishop <Adam.Bishop@ja.net> wrote:
On 23 Sep 2013, at 11:27, Husnain Taseer <husnain.taseer@gmail.com> wrote:
Even I don't get any request from asterisk server in radius logs.
You're looking at the wrong layer for the problem.
Fire up tcpdump. Do you see any radius traffic leaving the asterisk box? Does it reach the RADIUS server?
If no traffic is leaving the asterisk server, you'll need to ask the Asterisk mailing lists. If traffic is going missing, you need to check your network.
If traffic does reach the radius server, you've either broken your RADIUS configuration (post a full debug log) or your environment is screwed up (check the local firewall, SELinux, AppArmor...)
Regards,
Adam Bishop
gpg: 0x6609D460
Janet, the UK's research and education network.
Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Husnain Taseer wrote:
In tcpdump asterisk not sending request to the freeradius can u tell after configuring freeradius what configurations are needed to be done in asterisk.
You were told to ask this question on the asterisk mailing list. We are not asterisk, and we know nothing about it. If you're not going to follow instructions, you will have a VERY hard time solving the problem. Alan DeKok.
participants (3)
-
Adam Bishop -
Alan DeKok -
Husnain Taseer