<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi,</span></div><div><br><span></span></div><div><span class="tab"> </span>I try to figure out how to make following configuration:</div><div>1. Three clients. (Two access points. NAS1, NAS2 and NAS3)</div><div>2. There is one, central freeradius server holding all acounts, for both locations.</div><div><br></div><div>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.</div><div><br></div><div>For example : <br></div><div>NAS1 ip address : 192.168.1.10</div><div>NAS2 ip address : 192.168.1.20</div><div>NAS3 ip address : 192.168.1.30</div><div>=============================<br></div><div>In clients.conf<br>client 192.168.1.10 {<br> secret = testap1<br> shortname = nas1<br> nastype = other<br>}</div><div>client 192.168.1.20 {<br>
secret = testap2<br>
shortname = nas2<br>
nastype = other<br>
}</div><div>client 192.168.1.30 {<br>
secret = testap3<br>
shortname = nas3<br>
nastype = other<br>
}</div><div>=============================<br></div><div><br></div><div>I have configured it for one user "test" in radcheck table as below.</div><div><br></div>+-----+-------------------+--------------------+----+----------------------------+<br>| id | username | attribute | op | value |<br>+-----+-------------------+--------------------+----+----------------------------+<br>| 1 | test | NAS-IP-Address | == | 192.168.1.10 |<br>| 2 | test | NAS-IP-Address |
== | 192.168.1.20 |<br>| 3 | test | NAS-IP-Address | != | 192.168.1.30 |<br>+-----+-------------------+--------------------+----+----------------------------+<br><br><br>But, it is not working. <br><br>The following was in radius.log file.<br>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)<br><br><br><br>Have you any idea?<br><br><br><br><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span
style="font-weight:bold;">From:</span></b> Fred <fred.maison@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Dagia Dorjsuren <dagmid_d@yahoo.com>; FreeRadius users mailing list <freeradius-users@lists.freeradius.org><br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, September 21, 2011 4:41 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: Multiple NAS configuration<br></font><br><a href="http://wiki.freeradius.org/Clients.conf" target="_blank">http://wiki.freeradius.org/Clients.conf</a><br><br><br>2011/9/20, Dagia Dorjsuren <<a ymailto="mailto:dagmid_d@yahoo.com" href="mailto:dagmid_d@yahoo.com">dagmid_d@yahoo.com</a>>:<br>> Hello all,<br>><br>> How to configure<br>> multiple NAS (NAS-IP-Address) in freeradius? Which radius database's<br>> table should I add "NAS-IP-Address" attributes?<br>><br>> Anyone advise
me?<br>><br><br><br></div></div></div></body></html>