Implementing FUP with FreeRadius and Mikrotik

Randeep randeep123 at gmail.com
Tue Jun 23 19:23:20 CEST 2015


Hi,

I was testing the system with NAS and clients. When the client logs out I'm
getting the following.

rad_recv: Accounting-Request packet from host 192.168.1.1 port 36651,
id=32, length=184
        Acct-Status-Type = Stop
        Acct-Terminate-Cause = User-Request
        NAS-Port-Type = Ethernet
        Calling-Station-Id = "74:E6:E2:07:AE:E4"
        Called-Station-Id = "server1"
        NAS-Port-Id = "LAN"
        User-Name = "bharath"
        NAS-Port = 2148532247
        Acct-Session-Id = "80100017"
        Framed-IP-Address = 192.168.1.42
        Mikrotik-Host-IP = 192.168.1.181
        Event-Timestamp = "Jan  2 1970 06:14:26 IST"
        Acct-Input-Octets = 659849
        Acct-Output-Octets = 7835208
        Acct-Input-Gigawords = 0
        Acct-Output-Gigawords = 0
        Acct-Input-Packets = 5488
        Acct-Output-Packets = 6684
        Acct-Session-Time = 120
        NAS-Identifier = "MikroTik"
        Acct-Delay-Time = 0
        NAS-IP-Address = 192.168.1.1

It is not sending any values for  Acct-Input-Gigawords = 0  and
Acct-Output-Gigawords = 0. It will send only if the usage value is greater
than the max size of  Acct-Input-Octets and   Acct-Output-Octets?

Please advice.

Regards,
Randeep

On Tue, Jun 23, 2015 at 4:23 PM, Randeep <randeep123 at gmail.com> wrote:

> Hi,
>
> We are doing the implementation with FreeRadius+mysql+mikrotik.
>
> for a starter plan we have 30G usage limit @4mbps(d)/4mbps(u). After this
> limit, we need to scale down the speed to @2mbps(d)/2mbps(u).
>
> I have configured
> Mikrotik-Rate-Limit = '4096k/4096k'
>
> Is it mandatory to give the burst rates and burst time? Does it really
> help?
>
> And once the 30G is reached I need to send
>
> Mikrotik-Xmit-Limit
> Mikrotik-Recv-Limit
>
> In a pre-auth condition right?
>
> But I am confused with the following:
> Mikrotik-Recv-Limit-Gigawords
> Mikrotik-Xmit-Limit-Gigawords
>
> I read about it. But I'm not getting the thing 32 bit and 64 bit. Maximum
> 4G limit we can give?
>
> Can someone help me on this.
>
> --
> Best Regards,
> Randeep
>
> Mob: +919447831699[kerala]
> Mob: +919880050349[B'lore]
> http://twitter.com/Randeeppr
> http://in.linkedin.com/in/randeeppr
>
> [image: --]
> Randeep Raman
> [image: http://]about.me/Randeeppr
> <http://about.me/Randeeppr>
>
>



-- 
Randeep
Mob: +919447831699[kerala]
Mob: +919880050349[B'lore]
http://twitter.com/Randeeppr
http://in.linkedin.com/in/randeeppr

[image: --]
Randeep Raman
[image: http://]about.me/Randeeppr
<http://about.me/Randeeppr>


More information about the Freeradius-Users mailing list