Proxying CoA
    Zsolt Tripolszky 
    tripolszkyzs at gmail.com
       
    Wed Dec 15 12:11:05 CET 2010
    
    
  
Hello,
I'm trying to figure out how to proxy CoA packets. I have read through a
similar thread on this list (
http://lists.freeradius.org/mailman/htdig/freeradius-users/2010-July/msg00335.html
),
but somehow I cannot get it to work.
My setup is the following:
In my proxy.conf:
home_server nas_coa {
    type = coa
    ipaddr = 10.0.0.2
    port = 3799
    coa {
        irt = 2
        mrt = 16
        mrc = 5
        mrd = 30
    }
    secret = testing123
}
home_server_pool to_coa_nas {
    home_server = nas_coa
}
I have updated the sites-enabled/coa to look as below:
listen {
        type = coa
        ipaddr = *
        port = 3799
        server = coa
}
server coa {
        recv-coa {
            update control {
                Home-Server-Pool := "to_coa_nas"
            }
        }
        send-coa {
                #  Sample module.
                ok
        }
}
When I'm sending a Disconnect packet, I get the following:
Wed Dec 15 12:06:41 2010 : Info: Ready to process requests.
rad_recv: Disconnect-Request packet from host 127.0.0.1 port 56343, id=51,
length=50
Framed-IP-Address = 91.83.148.2
Acct-Session-Id = "D94F82E3300682B3"
NAS-IP-Address = 10.0.0.2
Wed Dec 15 12:06:43 2010 : Info: server coa {
Wed Dec 15 12:06:43 2010 : Info: # Executing section recv-coa from file
/Users/tripy/Devel/test-servers/freeradius-2.1.10/etc/raddb.proxy/sites-enabled/coa
Wed Dec 15 12:06:43 2010 : Info: +- entering group recv-coa {...}
Wed Dec 15 12:06:43 2010 : Info: ++[control] returns noop
Wed Dec 15 12:06:43 2010 : Info: # Executing section send-coa from file
/Users/tripy/Devel/test-servers/freeradius-2.1.10/etc/raddb.proxy/sites-enabled/coa
Wed Dec 15 12:06:43 2010 : Info: +- entering group send-coa {...}
Wed Dec 15 12:06:43 2010 : Info: ++[ok] returns ok
Wed Dec 15 12:06:43 2010 : Info: } # server coa
Sending Disconnect-ACK of id 51 to 127.0.0.1 port 56343
Clearly I am missing something obvious, but I cannot find what it is.
Any idea?
Thanks,
tripy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20101215/2b2b25cf/attachment.html>
    
    
More information about the Freeradius-Users
mailing list