I've configured it this way:<br><br>        if (Framed-Protocol == PPP) {<br> <br>                sqlippool<br>        }<br><br>It's working so far, I'll do some more tests.<br><br>Thanks a lot.<br><br><div class="gmail_quote">
2012/8/21 Antonio Modesto <span dir="ltr"><<a href="mailto:modesto@isimples.com.br" target="_blank">modesto@isimples.com.br</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div><div class="h5">2012/8/21 Phil Mayers <span dir="ltr"><<a href="mailto:p.mayers@imperial.ac.uk" target="_blank">p.mayers@imperial.ac.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>On 21/08/12 16:20, Antonio Modesto wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Hi,<br>
<br>
I'm testing sqlippool, so far it's working well, but I'm with a<br>
exception that I haven't thought about it before. We use  radius to<br>
authenticate the clients on wireless access points and with PPPoE, and<br>
now I started using sqlippool to dynamically distribute the IP's and BGP<br>
to announce the routes through the NAS'es. The problem is that radius<br>
allocates a IP for the client when he associates to an access point,<br>
(the wireless authentication is done with the MAC Address as the<br>
UserName and Password) and another IP when he connects on PPPoE, of<br>
course the IP allocated for the MAC is not used, but the record stays on<br>
the radippool table, and cannot be allocated to another user. Is there a<br>
way to do a regex or something like that before selecting a pool for the<br>
client?<br>
</blockquote>
<br></div></div>
sqlippool only runs if you tell it to. So, you need to conditionally run it in post-auth. For example:<br>
<br>
post-auth {<br>
  ...<br>
  if (Huntgroup-Name == PPPoE) {<br>
    # only allocate an IP on PPPoE<br>
    sqlippool<br>
  }<br>
}<br>
<br>
Alternatively, use virtual servers and client/listen statements to break the wireless and PPPoE policies out, and just don't use sqlippool in the wireless virtual server.<div><div><br></div>
</div></blockquote></div></div><div><br>Can I test this 'if' statement against a radius attribute, such as Service-Type? <br><br>Anyway, I had another idea, though it doesn't seem to be the best one. As I have two servers and just one is running  radius 2.X with sqlippool, I could use one for wireless authentication and another for ppp authentication. Bad Idea?<br>

<br><br></div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/<u></u>list/users.html</a><br>
<br>
</div></div></blockquote></div></div><br><br clear="all"><br><br>
</blockquote></div><br><br clear="all"><br>-- <br><span style="color:rgb(51,51,51)">Atenciosamente,</span><br style="color:rgb(51,51,51)"><b style="color:rgb(51,51,51)"><br>Antônio Modesto<br><br>Gerente de TI</b><br><br>
<br><img src="http://www.isimples.com.br/2011/Imagens/modelo2_logomarca.png"><br><br><font size="1"><br>Praça Getúlio Vargas, 77 – Sala 308 – Centro <br><br>Santo Antônio do Monte – MG – CEP: 35560-000<br>Tel:(37) 3281-2800</font><br>
<br>Contato: <a href="mailto:isimples@isimples.com.br" target="_blank">isimples@isimples.com.br </a><br><a href="http://www.isimples.com.br" target="_blank">http://www.isimples.com.br</a><br><br><br><span style="color:rgb(102,102,102)">Aviso:Esta mensagem e quaisquer arquivos em anexo podem conter informações confidenciais e/ou </span><br style="color:rgb(102,102,102)">
<br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">privilegiadas. Se você não for o destinatário ou a pessoa autorizada a receber esta mensagem, por favor, não </span><br style="color:rgb(102,102,102)">
<br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">leia, copie, repasse, imprima, guarde, nem tome qualquer ação baseada nessas informações. Notifique o </span><br style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)">
<span style="color:rgb(102,102,102)">remetente imediatamente por e-mail e apague a mensagem permanentemente. Atenção: embora a Isimples </span><br style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Telecom, tome seus cuidados para garantir a ausência de vírus neste e-mail, a empresa não se responsabiliza </span><br style="color:rgb(102,102,102)">
<br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">por quaisquer perdas ou danos decorrentes do uso da mensagem e seus anexos. A segurança e ausência de </span><br style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)">
<span style="color:rgb(102,102,102)">erros na transmissão do e-mail não podem ser garantidas, já que as informações podem ser interceptadas, </span><br style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">corrompidas, perdidas, destruídas, atrasadas, chegarem incompletas, ou, ainda, conter vírus. Recomendamos </span><br style="color:rgb(102,102,102)">
<br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">checar se o e-mail e seus anexos contém vírus, uma vez que nem a Isimples Telecom ou o remetente se </span><br style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)">
<span style="color:rgb(102,102,102)">responsabilizam pela transmissão destes.</span><br>