Hi,

    I try to figure out how to make following configuration:
1. Three clients. (Three access points. NAS1, NAS2 and NAS3)
2. There is one, central freeradius server holding all acounts, for three 
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.mai...@gmail.com>
To: Dagia Dorjsuren <dagmi...@yahoo.com>; FreeRadius users mailing list 
<freeradius-users@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 <dagmi...@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?
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to