LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-01-2007, 09:10 PM   #1
pm010537
LQ Newbie
 
Registered: Aug 2006
Posts: 25

Rep: Reputation: 15
Help with freeRadius!


Hello,

I am newbie and I am trying to install freeRadius on my centOS. I was successfully able to install the freeRadius; here is the description of what I did:

1)From the freeradius.org I downloaded freeradius-1.1.6.tar under /etc/radius (created a folder by the name radius under /etc/)
2)Issued the command "tar -xvf freeradius-1.1.6.tar
3)It created a folder by the name freeradius-1.1.6 under /etc/radius
4)cd /etc/radius/freeradius-1.1.6
5)./configure
6)make
7)make install


Everything went of fine and radius server got installed; I did not get any errors either. The question is when I try to test the radiuserver using "radtest" command the request is rejected; here is what I did:

1)Edit "users" file and added user by the name test: ""test" User-Password == "test""
2)From other window started the radius server under debug mode: "radiusd -X" and it started off with out any problems and this is what I had at the prompt:

Module: Loaded radutmp
radutmp: filename = "/usr/local/var/log/radius/radutmp"
radutmp: username = "%{User-Name}"
radutmp: case_sensitive = yes
radutmp: check_with_nas = yes
radutmp: perm = 384
radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.


3)From another window issued the command "radtest test test localhost 0 testing123" and I got this at the prompt:

[root@kilimanjaro examples]# radtest test test localhost 0 testing123
Sending Access-Request of id 141 to 127.0.0.1 port 1812
User-Name = "test"
User-Password = "test"
NAS-IP-Address = 255.255.255.255
NAS-Port = 0
rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=141, length=20
[root@kilimanjaro examples]#


5)And this is the error I see on the first window where in Radius server is listening.

modcall: entering group authenticate for request 0
modcall[authenticate]: module "unix" returns notfound for request 0
modcall: leaving group authenticate (returns notfound) for request 0
auth: Failed to validate the user.
Delaying request 0 for 1 seconds
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Sending Access-Reject of id 141 to 127.0.0.1 port 32769
Waking up in 4 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 141 with timestamp 4660c98b
Nothing to do. Sleeping until we see a request.


Now my question is how to make this work; what do I need to do in order for Radius server to accept the request!

Please help me; I am missing something very simple but not able to figure out what. All your help is greatly appreciated; also I am posting this post on the "linux newbie" forum too.

Thanks
-K2
 
Old 06-01-2007, 09:31 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Please don't post the same question more than once.

http://www.linuxquestions.org/questi...d.php?t=558474

http://www.linuxquestions.org/questi...d.php?t=558475
 
Old 06-21-2007, 12:03 AM   #3
vs_sugani
LQ Newbie
 
Registered: Feb 2007
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by pm010537
Hello,

I am newbie and I am trying to install freeRadius on my centOS. I was successfully able to install the freeRadius; here is the description of what I did:

1)From the freeradius.org I downloaded freeradius-1.1.6.tar under /etc/radius (created a folder by the name radius under /etc/)
2)Issued the command "tar -xvf freeradius-1.1.6.tar
3)It created a folder by the name freeradius-1.1.6 under /etc/radius
4)cd /etc/radius/freeradius-1.1.6
5)./configure
6)make
7)make install


Everything went of fine and radius server got installed; I did not get any errors either. The question is when I try to test the radiuserver using "radtest" command the request is rejected; here is what I did:

1)Edit "users" file and added user by the name test: ""test" User-Password == "test""
2)From other window started the radius server under debug mode: "radiusd -X" and it started off with out any problems and this is what I had at the prompt:

Module: Loaded radutmp
radutmp: filename = "/usr/local/var/log/radius/radutmp"
radutmp: username = "%{User-Name}"
radutmp: case_sensitive = yes
radutmp: check_with_nas = yes
radutmp: perm = 384
radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.


3)From another window issued the command "radtest test test localhost 0 testing123" and I got this at the prompt:

[root@kilimanjaro examples]# radtest test test localhost 0 testing123
Sending Access-Request of id 141 to 127.0.0.1 port 1812
User-Name = "test"
User-Password = "test"
NAS-IP-Address = 255.255.255.255
NAS-Port = 0
rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=141, length=20
[root@kilimanjaro examples]#


5)And this is the error I see on the first window where in Radius server is listening.

modcall: entering group authenticate for request 0
modcall[authenticate]: module "unix" returns notfound for request 0
modcall: leaving group authenticate (returns notfound) for request 0
auth: Failed to validate the user.
Delaying request 0 for 1 seconds
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Sending Access-Reject of id 141 to 127.0.0.1 port 32769
Waking up in 4 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 141 with timestamp 4660c98b
Nothing to do. Sleeping until we see a request.


Now my question is how to make this work; what do I need to do in order for Radius server to accept the request!

Please help me; I am missing something very simple but not able to figure out what. All your help is greatly appreciated; also I am posting this post on the "linux newbie" forum too.

Thanks
-K2
In which file u included the username and password?
Go to the /usr/local/etc/raddb/users file and include the following before the default.

test Password = "test"
Reply-Message = "Hello, %u"

and now run the server and client....
It should work...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeRadius PsyDonia Linux - Server 1 10-02-2006 11:53 AM
freeRADIUS hohgch Linux - Newbie 2 05-05-2006 07:41 PM
freeradius screamon demon Linux - Networking 0 08-15-2005 09:52 PM
Freeradius Help jrmontg Linux - Networking 2 03-02-2005 10:40 AM
freeRADIUS abdullahgee Programming 0 06-11-2004 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration