radiusd.conf:
…
…
checkval NAS_IP {
item-name = NAS-IP-Address
check-name = NAS-IP-Address
data-type = ipaddr
nofound-reject = no
}
…
…
authorize {
preprocess
…
…
sql_auth
NAS_IP
…
…
}
And then we need A/V Pair for each user like this:
test Auth-Type := Local, User-Password := 123321, NAS-IP-Address :=
1.2.3.4