> You forgot to mention how your radius server is configured, using the system
> password file, sql, LDAP?
I am using mysql.
> Either way though, as a general solution you should be able to separate the
> two by adding NAS-Port and group as check conditions to the users file.
> You'll need one for each interface.
I was thinking about checking the interface, but the it appears only when
NAS-Port-Type=ISDN:
Vendor-Specific = "V9:T1:L24:interface=Serial0/0:30"
NAS-Port-Type = ISDN ^^^^^^^
NAS-Port = 20030
When someone calls from PSTN it doesnt report any Vendor-Specific, but
just Async and a port number:
Cisco-AVPair = "interface=Async92"
NAS-Port-Type = Async
NAS-Port = 92
(Sometimes instead of "NAS-Port = 92" I get "NAS-Port = 1312686172",why?!)
Since I dont get the interface (Serialx/y) info every time, the only way
is to check if the NAS-Port is between a specific range if I get it right.
Something like that perhaps?
insert into radgroupcheck values('0','group1','NAS-Port','65-94',:=')
insert into radgroupcheck values('0','group2','NAS-Port','97-128',:=')
... .. .. .... .... ,'20001-20030' (for ISDN)
supposing that Serial0/0 has ports 65-94, and Serial1/0 97-128.
I'm not very familiar with sql syntax, so I'd appreciate some help on
that...
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html