Ok,
I implemented a list. Everytime a user connects he gets the least number
which is free or a new number is added to the list.

But how do you want to create the ip address pool?
Every client needs two ip addresses for one interface. 
I get the framed ip address from the radius answer packet.
The first ip address is the ip address in framed ip address attribute, the 
second ip address is generated by incrementing the last byte of the address:

Example:
framed ip address: 10.8.0.20
second ip address: 10.8.0.21
client config file => ifconfig-push 10.8.0.20 10.8.0.21

I have no I idea what happens if an other client gets the ip pair
10.8.0.21 & 10.8.0.22. 
On windows both ip address must be out of one /30-subnet. 

Can you make this assignment with freeradius?
If the framed ip attribute is set in the users configuration file it will be 
task of the admin to set the right ip addresses. 

Greetings
Ralf






Am Dienstag, 31. Mai 2005 12:24 schrieb Torge Szczepanek:
> Am Dienstag, den 31.05.2005, 10:09 +0000 schrieb Ralf Lübben:
> > If a client connects the nas port number is locked , if a client
> > disconnect the port number is freed.
> > A new client will always get the least number of the array.
> >
> > Would this behaviour ok?
>
> Yes. That would be OK.
>
> > How many nas port numbers will I need?
> > I think 1000 will be enough or can there be more than 1000 clients at
> > the same time?
>
> Hmm. Must there be a limit? I am asking since I had some troubles with a
> PPTP VPN pushing this to more than 100 or 256 users. So software
> hardlimits aren't really a good choice. If this isn't to much work I
> would suggest to put in a dynamic variable. Since you are using C++ you
> might just use a STL type? I don't know whether STLs are portable across
> platforms...
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Yahoo.
> Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> Search APIs Find out how you can build Yahoo! directly into your own
> Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
> _______________________________________________
> Openvpn-devel mailing list
> Openvpn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to