Multiple NAS configuration

Dagia Dorjsuren dagmid_d at yahoo.com
Wed Sep 21 03:56:56 CEST 2011


Hi,

    I try to figure out how to make following configuration:
1. Three clients. (Two access points. NAS1, NAS2 and NAS3)
2. There is one, central freeradius server holding all acounts, for both locations.

Now, what I try to do is to create accounts that are location 
dependant... so account created for NAS1 and NAS2, can't be used on NAS3.

For example : 

NAS1 ip address : 192.168.1.10
NAS2 ip address : 192.168.1.20
NAS3 ip address : 192.168.1.30
=============================

In clients.conf
client 192.168.1.10 {
        secret = testap1
        shortname = nas1
        nastype = other
}
client 192.168.1.20 {
        secret = testap2
        shortname = nas2
        nastype = other
}
client 192.168.1.30 {
        secret = testap3
        shortname = nas3
        nastype = other
}
=============================


I have configured it for one user "test" in radcheck table as below.
+-----+-------------------+--------------------+----+----------------------------+
| id  | username          | attribute          | op | value                      |
+-----+-------------------+--------------------+----+----------------------------+
|  1  | test            | NAS-IP-Address     | == | 192.168.1.10             |
|  2  | test            | NAS-IP-Address     | == | 192.168.1.20             |
|  3  | test            | NAS-IP-Address     | !=  | 192.168.1.30             |
+-----+-------------------+--------------------+----+----------------------------+


But, it is not working. 

The following was in radius.log file.
Wed Sep 21 09:34:19 2011 : Auth: Login incorrect (rlm_chap: Clear text password not available): [test/<CHAP-Password>] (from client nas1 port 4 cli 00-26-5E-EF-56-CC)



Have you any idea?





________________________________
From: Fred <fred.maison at gmail.com>
To: Dagia Dorjsuren <dagmid_d at yahoo.com>; FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
Sent: Wednesday, September 21, 2011 4:41 AM
Subject: Re: Multiple NAS configuration

http://wiki.freeradius.org/Clients.conf


2011/9/20, Dagia Dorjsuren <dagmid_d at yahoo.com>:
> Hello all,
>
>      How to configure
> multiple NAS (NAS-IP-Address) in freeradius? Which radius database's
> table should I add "NAS-IP-Address" attributes?
>
> Anyone advise me?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110920/b4d1836a/attachment.html>


More information about the Freeradius-Users mailing list