<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 1, 2013 at 1:22 PM,  <span dir="ltr"><<a href="mailto:A.L.M.Buxey@lboro.ac.uk" target="_blank">A.L.M.Buxey@lboro.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<div class="im"><br>
>    sorry alan, perhaps I'm mixing up my examples in an attempt to get this<br>
>    working...<br>
<br>
</div>run your freeradius is full debug mode. LOOK at what is going on<br>
<div class="im"><br>
>    1. where (or in which file) do I add the unlang code?<br>
<br>
</div>as you have<br></blockquote><div style><br></div><div style>I have made the changes in  the file proxy-inner-tunnel -- i'm not sure if this is where i'm supposed to be adding the change.</div><div style><br>
</div><div style><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im"><br>
>    2. how do i update the reply?<br>
<br>
</div>by updating the reply<br>
<div class="im"><br>
>    I currently have the following code in my proxy-inner-tunnel file :-<br>
>    post-proxy {<br>
>            eap<br>
>            if (proxy-reply:Access-Accept) {<br>
>           update proxy-reply { Framed-IP-Address := "%{sql:SELECT Value FROM<br>
>    `radreply` WHERE UserName ='%{User-Name}' AND Attribute =<br>
>    'Framed-IP-Address'}"  }<br>
<br>
</div>thats not updating the reply is it. thats updating the proxy-reply.<br></blockquote><div><br></div><div style>I changed the proxy-inner-tunnel file with the following :-</div><div style><div>post-proxy {</div><div>
        #</div><div>        #  This is necessary for LEAP, or if you set:</div><div>        #</div><div>        #  proxy_tunneled_request_as_eap = no</div><div>        #</div><div>        eap</div><div><br></div><div>        if (proxy-reply:Acct-Interim-Interval = 900) {</div>
<div>       update reply {</div><div>             Framed-IP-Address := "%{sql:SELECT Value FROM `radreply`</div><div>        WHERE UserName ='%{User-Name}' AND Attribute = 'Framed-IP-Address'}"</div>
<div>                        }</div><div>                                                        }</div><div style>I am not sure what I should be using for the IF statement as the reply coming back from the upstream proxy looks  like this :-</div>
<div style><div><br></div><div>rad_recv: Access-Accept packet from host 168.172.64.224 port 1812, id=61, length=125</div><div>        Proxy-State = 0x313634</div><div>        Acct-Interim-Interval = 900</div><div>        Class = 0xc24109ed0000013700010200a8ac40e040e0000000000000a8ac40e001ce46617c0576420000000000002fcb</div>
<div>        MS-Link-Utilization-Threshold = 50</div><div>        MS-Link-Drop-Time-Limit = 120</div><div>        MS-MPPE-Encryption-Policy = 0x00000002</div><div>        MS-MPPE-Encryption-Types = 0x0000000e</div><div><br>
</div><div style>There is no IP Address in the reply, and I need to insert it at this stage before sending it back to the 3g carrier radius server.</div><div style><br></div><div style><br></div></div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class=""><div class="h5"><br>
alan<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br></div></div>