From: James Yonan Subject: Re: [Openvpn-devel] Re: Radius support (Authentification, Authorization and Accounting) In-Reply-To: <1116334849.14388.43.camel@...23...> Message-ID: References: <200504291033.00667.ralfluebben@...68...> <200505031348.25263.ralfluebben@...68...> <1116334849.14388.43.camel@...23...> MIME-Version: 1.0 Sender: openvpn-devel-admin@lists.sourceforge.net Errors-To: openvpn-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue May 17 06:20:25 2005 Content-Type: TEXT/PLAIN; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable To: Torge Szczepanek Cc: openvpn-devel@lists.sourceforge.net On Tue, 17 May 2005, Torge Szczepanek wrote: > Am Dienstag, den 17.05.2005, 15:20 +0400 schrieb Ralf L=FCbben: >=20 > > I want to send following attribute: > > Username > > Password > > NAS-Port =3D number of the tun interface >=20 > This is bad, since you must send a unique identifier to the Radius > Server for every connected client if I understand this correctly. >=20 > The Radius servers decides based on a unique NAS-IP-Address:NAS-Port > pair which IP-Addresse should be handed out to the client and which is > in use. >=20 > Example: >=20 > NAS:XXX.XXX.XXX.40 port:0x0 - ipaddr:YYY.YYY.76.YYY active:1 cli:0 num:1 > NAS:XXX.XXX.XXX.40 port:0x1 - ipaddr:YYY.YYY.75.YYY active:1 cli:0 num:1 > [...] > NAS:XXX.XXX.XXX.40 port:0x10 - ipaddr:YYY.YYY.76.YYY active:1 cli:0 > num:1 > NAS:XXX.XXX.XXX.40 port:0x11 - ipaddr:YYY.YYY.78.YYY active:1 cli:0 > num:1 > NAS:XXX.XXX.XXX.40 port:0x12 - ipaddr:YYY.YYY.72.YYY active:1 cli:0 > num:1 > NAS:XXX.XXX.XXX.40 port:0x13 - ipaddr:YYY.YYY.73.YYY active:1 cli:0 > num:1 > [...] > NAS:XXX.XXX.XXX.40 port:0x100 - ipaddr:YYY.YYY.78.YYY active:0 cli:0 > num:0 > NAS:XXX.XXX.XXX.40 port:0x103 - ipaddr:YYY.YYY.77.YYY active:0 cli:0 > num:0 >=20 > Since the tun interface is the same for every connected client connected > to the same openvpn process, this will not work. One might correct me, > if I am wrong on this. >=20 > So at the moment one has to generate a unique client id (NAS-Port) for > every connected user. This should be done in a way that the first client > gets the id (NAS-Port) 0 assigned. The next one the id 1 and so on. On > disconnect the id should be reused. >=20 > For example: >=20 > client 1 connects, gets id 0 > client 2 connects, gets id 1 > client 3 connects, gets id 2 > client 4 connects, gets id 3 > client 2 disconnects, releases id 1 > client 3 disconnects, releases id 2 > client 5 connects, gets id 1 > client 6 connects, gets id 2 > [...] >=20 >=20 > I wondered whether it is possible to have a seperate tunx interface for > each connected client. That would solve the problem and mimic the > behaviour of ppp Connections, where you have a seperated ppp Interface > for each connected client. > Is this easy possible or would that mean to rewrite most parts of > OpenVPN? It's more like the opposite: 1.x supported a specific tunx interface and port for each client. 2.0 was rewritten to allow all clients to share a single tun/tap interface and TCP/UDP port. The 2.0 approach tends to be preferred because it scales better and is easier to manage. James