<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Le mardi 30 novembre 2010 à 21:01 +0100, Alan DeKok a écrit :
<BLOCKQUOTE TYPE=CITE>
<PRE>
Alexandre Chapellon wrote:
> Hi every body,
> While all the documentation on the web seems to answer *NO*, and because
> I feel like i need to talk to someone today, I was wondering if there is
> any way to allocate IP address to wifi user using radius Attributes
> instead of DHCP?

  Nope.  The only way this would work is if the AP cached the
Framed-IP-Address from the Access-Accept, and then grabbed the DHCP
packet, and put the Framed-IP-Address in it as a DHCP response.

> Or maybe I should ask... How can i allocate IP address from differents
> Pools based on login (final goal would be to have transparent squid
> treat user differently )?

  Run FreeRADIUS as a DHCP server. :)  It works, and you can put session
information from RADIUS into an SQL DB, and then query that data when it
receives a DHCP packet.
</PRE>
</BLOCKQUOTE>
<BR>
Am not sure to understand... Once the wifi user entered the network (level2: no IP yet), I have an entry for its sessions in my accouting database, with username, sessionID, maybe mac_address and so on...<BR>
But when the user sends a DHCP request to obtain IP address (gain level3 access), that request may not contain any reference to the username, but to the mac address... that's it?<BR>
<BR>
So the trick would be to get the username from the mac address querying the accouting database?<BR>
And then?  Can I use any ippool module in the freeradius DHCP server? or Do I have to use static mapping mac2ip?<BR>
<BR>
Hope I am clear enough, Thks<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
  Alan DeKok.
-
List info/subscribe/unsubscribe? See <A HREF="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</A>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
<A HREF="https://www.twitter.com/manainternet">Follow us on: twitter https://www.twitter.com/manainternet</A>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>