Alexander Serkin wrote:


...
Thank you, Kostas. that's what i was looking for.
Can you give an example of attr_rewrite block to copy attributes?
The explanations in radiusd.conf are not quite clear for me :)


My acct-session-id comes with value D47761550033DDC3 for example.
I've also copied CLID (15 digits) into NAS-Port attribute because it's missing in request.
But the results are some unpredictable. Four requests with different CLID and acct-session-id shows that allocated addresses are identical for the 1st and 4th requests:


Sending Access-Request of id 148 to 127.0.0.1:1812
        User-Name = "[EMAIL PROTECTED]"
        User-Password = "internet"
        Calling-Station-Id = "250097000002749"
        Framed-Protocol = PPP
        Service-Type = Framed-User
        NAS-IP-Address = xxx.xxx.xxx.85
        Acct-Session-Id = "D47761550033DDBF"
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=148, length=44
        Service-Type = Framed-User
        Framed-Protocol = PPP
        Framed-IP-Address = xxx.xxx.122.69
        Framed-IP-Netmask = 255.255.255.255

Sending Access-Request of id 149 to 127.0.0.1:1812
        User-Name = "[EMAIL PROTECTED]"
        User-Password = "internet"
        Calling-Station-Id = "250097000022752"
        Framed-Protocol = PPP
        Service-Type = Framed-User
        NAS-IP-Address = xxx.xxx.xxx.86
        Acct-Session-Id = "D47761550033DDC3"
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=149, length=44
        Service-Type = Framed-User
        Framed-Protocol = PPP
        Framed-IP-Address = xxx.xxx.125.176
        Framed-IP-Netmask = 255.255.255.255

Sending Access-Request of id 150 to 127.0.0.1:1812
        User-Name = "[EMAIL PROTECTED]"
        User-Password = "internet"
        Calling-Station-Id = "250097000022751"
        Framed-Protocol = PPP
        Service-Type = Framed-User
        NAS-IP-Address = xxx.xxx.xxx.85
        Acct-Session-Id = "D47761550033DDC2"
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=150, length=44
        Service-Type = Framed-User
        Framed-Protocol = PPP
        Framed-IP-Address = xxx.xxx.124.55
        Framed-IP-Netmask = 255.255.255.255

Sending Access-Request of id 151 to 127.0.0.1:1812
        User-Name = "[EMAIL PROTECTED]"
        User-Password = "internet"
        Calling-Station-Id = "250097000002750"
        Framed-Protocol = PPP
        Service-Type = Framed-User
        NAS-IP-Address = xxx.xxx.xxx.86
        Acct-Session-Id = "D47761550033DDC0"
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=151, length=44
        Service-Type = Framed-User
        Framed-Protocol = PPP
        Framed-IP-Address = xxx.xxx.122.69
        Framed-IP-Netmask = 255.255.255.255



--
SY,
Alexander


- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to