Forum Discussion

BKNwe_10326's avatar
BKNwe_10326
Icon for Nimbostratus rankNimbostratus
Oct 14, 2011

Forward The Radius Authentication Request To A URL

The following isn't working. Does anyone know why, or how to get it working?

 

If a Raduis request comes from 10.185.186.1, to this F5, forward the connetion to the URL.

 

 

when CLIENT_LINE {

 

if { [IP::addr [IP::client_addr] equals 10.185.186.1] } {

 

set URL ""

 

log local0. "Client redirected, IP: [IP::client_addr]"

 

}

 

}
  • Hi BKNwe

     

     

    First of all where did you see when client_line, I am unfamilair with this event, see link before. Maybe try when client_accept

     

     

    http://devcentral.f5.com/wiki/iRules.Events.ashx

     

     

    also consider

     

    IP::remote_addr depending on the direction of travel

     

     

    for a redirect user http:redirect or http:uri depending on your need

     

     

    http://devcentral.f5.com/wiki/iRules.HTTP.ashx

     

  • Is it the redirect or the IP matching that is failing ?

     

     

    I always have trouble with syntax for IP address, so usually create a data group (rad_client in this case) to match against. Always helps if you need to add more IP to match against later:

     

     

    when CLIENT_ACCEPTED {

     

    if {([class match [IP::client_addr] equals rad_client] } {

     

    set URL "http://radius.app.mycompany.ha:1812"

     

    log local0. "Client redirected, IP: [IP::client_addr]"

     

    }

     

    }

     

  • Posted By BKNwe on 10/14/2011 12:03 PM

     

    The following isn't working. Does anyone know why, or how to get it working?

     

    If a Raduis request comes from 10.185.186.1, to this F5, forward the connetion to the URL.

     

     

     

    Hi,

     

     

    there are some substantial problems with the iRule. Before we can fix it, we need to know what you are trying to do. So, can you please elaborate a bit more.

     

     

    Regards

     

    Kurt Knochner