A question about the NAS-Port on FreeRadiusServer 2.1.4 + Postgresql 8.4.2
Hello, we are working on the FreeRadiusServer 2.1.4 + Postgresql 8.4.2, and trying to authenticate different 'users' according to the NAS-Port in the request packets. We build the db table 'nas' by the scripts nas.sql: /* * Table structure for table 'nas' */ CREATE TABLE nas ( id SERIAL PRIMARY KEY, nasname VARCHAR(128) NOT NULL, shortname VARCHAR(32) NOT NULL, type VARCHAR(30) NOT NULL DEFAULT 'other', ports int4, secret VARCHAR(60) NOT NULL, server VARCHAR(64), community VARCHAR(50), description VARCHAR(200) ); Since the 'ports' column exists in the table 'nas', we wonder if it has some relationship with the NAS-Port in the request packets. We tried some values for the column, but didn't work. Anyone can tell me the meaning of the column 'ports'? Now we can configure a virtual server for each NAS (by the column 'server' of the table 'nas'). Can I configure a virtual server for each NAS-Port? If so, how can I acheive that? Thank you! Best Regards, Alaxis _________________________________________________________________ MSN十年回馈,每位用户可免费获得价值25元的卡巴斯基反病毒软件2010激活码,快来领取! http://kaba.msn.com.cn/?k=1
蔡暮章 wrote:
Hello, we are working on the FreeRadiusServer 2.1.4 + Postgresql 8.4.2, and trying to authenticate different 'users' according to the NAS-Port in the request packets. We build the db table 'nas' by the scripts nas.sql: ... Since the 'ports' column exists in the table 'nas', we wonder if it has some relationship with the NAS-Port in the request packets.
No.
We tried some values for the column, but didn't work. Anyone can tell me the meaning of the column 'ports'?
It means nothing.
Now we can configure a virtual server for each NAS (by the column 'server' of the table 'nas'). Can I configure a virtual server for each NAS-Port? If so, how can I acheive that? Thank you!
You should check the NAS-Port, and proxy the request to another virtual server. Or, modify the source code. Alan DeKok.
Hi Alan, Uh... I'm considering of modifying the source code indeed. But before that, if proper configurations can work, it will be much easier. You mentioned that I check the NAS-Port and proxy the request to another virtual server. Is that achieved by some proper configuration? Can you give detailed suggestion? As the column 'server' of the table 'nas' means the request from the certain NAS will proxy to the certain virtual server, can I directly configure certain virtual server to a certain NAS-Port in db? Thank you!
Date: Fri, 5 Mar 2010 07:43:37 +0100 From: aland@deployingradius.com To: freeradius-users@lists.freeradius.org Subject: Re: A question about the NAS-Port on FreeRadiusServer 2.1.4 + Postgresql 8.4.2
蔡暮章 wrote:
Hello, we are working on the FreeRadiusServer 2.1.4 + Postgresql 8.4.2, and trying to authenticate different 'users' according to the NAS-Port in the request packets. We build the db table 'nas' by the scripts nas.sql: ... Since the 'ports' column exists in the table 'nas', we wonder if it has some relationship with the NAS-Port in the request packets.
No.
We tried some values for the column, but didn't work. Anyone can tell me the meaning of the column 'ports'?
It means nothing.
Now we can configure a virtual server for each NAS (by the column 'server' of the table 'nas'). Can I configure a virtual server for each NAS-Port? If so, how can I acheive that? Thank you!
You should check the NAS-Port, and proxy the request to another virtual server.
Or, modify the source code.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
_________________________________________________________________ 想知道明天天气如何?必应告诉你! http://cn.bing.com/search?q=%E5%A4%A9%E6%B0%94%E9%A2%84%E6%8A%A5&form=MICHJ2
CaiMuzhang wrote:
Hi Alan, Uh... I'm considering of modifying the source code indeed. But before that, if proper configurations can work, it will be much easier. You mentioned that I check the NAS-Port and proxy the request to another virtual server. Is that achieved by some proper configuration?
Yes.
Can you give detailed suggestion?
No. Read the documentation.
As the column 'server' of the table 'nas' means the request from the certain NAS will proxy to the certain virtual server, can I directly configure certain virtual server to a certain NAS-Port in db?
Can you explain why you ask the same question again? What part of the previous answer is unclear?
participants (3)
-
Alan DeKok -
CaiMuzhang -
蔡暮章