[RADIATOR] Framed-Route maniuplation

Hugh Irvine hugh at open.com.au
Tue Oct 26 09:41:33 CDT 2010


Hello Ian -

You will need to use something like a PostProcessingHook to deal with the reply attributes in the reply packet.

There are numerous examples of various hooks in the file "goodies/hooks.txt".

regards

Hugh


On 27 Oct 2010, at 00:05, Ian Mordey wrote:

> Hi there
> I’m trying to replicate a response from one radiator server to another with a different SQL backend and schema. I’m struggling to get the Framed-Route attribute formatted properly.
>  
> Our client expects a framed route including the gateway like this:
>                 Framed-Route = "1.2.3.4/29 1.2.3.5"
>  
> The new server sends a framed route
>                 Framed-Route = "1.2.3.4/29”
>  
> So I need to rewrite the Framed-Route with “1.2.3.4/29” followed by the Framed-IP-Address.  This is also conditional because the Framed-Route in the reply attributes doesn’t always exist.  
>  
> The problem I’m struggling with is that the reply attributes on the SQL backend are all in one column ReplyAttr for example:
>  
> mysql> select ReplyAttr from UserProfiles where ReplyAttr like '%Route%' limit 1;
> +------------------------------------------------------------------------------------------------------------------------+
> | ReplyAttr                                                                                                              |
> +------------------------------------------------------------------------------------------------------------------------+
> | Service-Type = Framed-User, Framed-Protocol = PPP, Framed-IP-Address = 1.2.3.5, Framed-Route = 1.2.3.4/29  |
>  
> How can I manipulate the Framed-Route attribute when it is all in the same column?
>  
> Cheers
> Ian
> _______________________________________________
> radiator mailing list
> radiator at open.com.au
> http://www.open.com.au/mailman/listinfo/radiator



NB: 

Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/radiator)?
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets), 
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
Includes support for reliable RADIUS transport (RadSec),
and DIAMETER translation agent.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.






More information about the radiator mailing list