Re: Doubts about the rlm_replicate
Hi, My idea is to add support for "post-proxy" in the rlm_replicate. So I believe it can be sure that the first packet "Acct-Start" received ACK and then I can send the "replicated" packet that became in the "Acct-Interim-Updated" will be sent ok. Aland and Arran, what do you think about my idea? -- Jorge Pereira On Fri, Jun 12, 2015 at 5:47 PM, Jorge Pereira <jpereiran@gmail.com> wrote:
Hi,
I have a situation that I get a packet "Acct-Start" and then is necessary to duplicate and transform in a "Acct-Interim-Update". but, I should send the second packet "Acct-Interim-Update" after I get the "Accounting-Response" from the first sending "Acct-Start". have someone idea about the solution?
My first thought was to add in rlm_replicate the capability to process a "preaccounting" and add some "flag" in the first packet saving in redis cache... but is a madness. I prefer to hear other suggestions!
p.s: my radius is a proxy between two others. -- Jorge Pereira
On Jun 13, 2015, at 8:56 AM, Jorge Pereira <jpereiran@gmail.com> wrote:
My idea is to add support for "post-proxy" in the rlm_replicate. So I believe it can be sure that the first packet "Acct-Start" received ACK and then I can send the "replicated" packet that became in the "Acct-Interim-Updated" will be sent ok.
You can just put this into post-proxy: replicate.authorize Alan DeKok.
Alan, In this case is different. I am the Proxy between two radius. I receive a Acct-Start and I need to replicate and transform in the Acct-Interim-Update. But, I can only send this packet after receives the AcK from the Acct-Start -- Jorge Pereira On Sun, Jun 14, 2015 at 12:48 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Jun 13, 2015, at 8:56 AM, Jorge Pereira <jpereiran@gmail.com> wrote:
My idea is to add support for "post-proxy" in the rlm_replicate. So I believe it can be sure that the first packet "Acct-Start" received ACK and then I can send the "replicated" packet that became in the "Acct-Interim-Updated" will be sent ok.
You can just put this into post-proxy:
replicate.authorize
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Jun 14, 2015, at 7:31 PM, Jorge Pereira <jpereiran@gmail.com> wrote:
In this case is different. I am the Proxy between two radius. I receive a Acct-Start and I need to replicate and transform in the Acct-Interim-Update. But, I can only send this packet after receives the AcK from the Acct-Start
Yes. When you put "replicate.authorize" into the "post-proxy" section, it will run the "authorize" method of the "replicate" module... after the home server has replied. It will replicate the "request" attributes. You can modify them here, too. Alan DeKok.
Hi Alan, As you said... when use for authorize works fine. but not with "accounting", I fix it as described in the issue https://github.com/FreeRADIUS/freeradius-server/pull/1059 -- Jorge Pereira On Sun, Jun 14, 2015 at 8:35 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Jun 14, 2015, at 7:31 PM, Jorge Pereira <jpereiran@gmail.com> wrote:
In this case is different. I am the Proxy between two radius. I receive a Acct-Start and I need to replicate and transform in the Acct-Interim-Update. But, I can only send this packet after receives the AcK from the Acct-Start
Yes. When you put "replicate.authorize" into the "post-proxy" section, it will run the "authorize" method of the "replicate" module... after the home server has replied.
It will replicate the "request" attributes. You can modify them here, too.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Alan DeKok -
Jorge Pereira