rlm_sql, readclients=yes: multiple NASes with same IP

Alan DeKok aland at deployingradius.com
Wed Apr 11 18:17:13 CEST 2007

Milan Holub wrote:
> We are having multiple NASes on the same IP distinguished only by
> different port(eg. multiple instances of nocat wlangw running on
> differet ports).

  No.  NASes are distinguished by IP.  Nothing else.

  There is no way in RADIUS to have multiple NASes on the same IP with
different ports.

> I believe that for communication of the NAS with radius only the IP is
> deciding for radius.


> I know this can be solved outside radius by
> creating another "bind" table in DB(binding multiple ports to one unique
> nas record) and changing existing applications for viewing accounting
> data(php+mysql).

  I have no idea what you mean by that.  FreeRADIUS will look up the NAS
by IP, and never by port.  What you put in the DB for ports is
irrelevant, and will never affect server behavior.

  i.e. What you use the ports for is up to you, and does not affect the

> For me at the moment it's easier to persuade freeradius
> just to ignore such "duplicities" when reading clients by following simple patch:

  No.  Your DB configuration is wrong, and needs to be fixed.

  Maybe you need to put your "NAS IP + port" combination into a
different table.  But whatever the case, duplicate NAS IP's are wrong,
and will not be supported.

  Alan DeKok.
  http://deployingradius.com       - The web site of the book
  http://deployingradius.com/blog/ - The blog

More information about the Freeradius-Users mailing list