i`m using Mikrotik (Hotspot) + Freeradius + Mysql + perl postscript to check auth , on perl script i do check quota based on radacct table. if quota more than xxx Gb then you cant login. the problem are like this what the result of accounting different with value that send to NAS. like this modcall: leaving group session (returns ok) for request 1 radius_xlat: '/usr/local/bin/rmauth.pl ADMIN 00:16:17:52:8F:94 172.1.1.248' Exec-Program: /usr/local/bin/rmauth.pl ADMIN 00:16:17:52:8F:94 172.1.1.248 Exec-Program output: Mikrotik-Xmit-Limit = _*762**2654321*_, Mikrotik-Recv-Limit = _*50000000000*_, Ascend-Data-Rate=_*98304*_, Ascend-Xmit-Rate=_*262144*_, Exec-Program-Wait: value-pairs: Mikrotik-Xmit-Limit = _*762**2654321*_, Mikrotik-Recv-Limit = _*50000000000*_, Ascend-Data-Rate=_*98304*_,, Ascend-Xmit-Rate=_*262144*_, Exec-Program: returned: 0 Sending Access-Accept of id 1 to 10.128.3.3 port 1024 Mikrotik-Xmit-Limit = _*3502655261*_ <= Above value is 7622654321 but it send 3502655261 Mikrotik-Recv-Limit = _*2755359744*_ <= Above value is 5000000000 but it send 2755359744 Ascend-Data-Rate = 98304 Ascend-Xmit-Rate = 262144 Finished request 1 any clue bout this problem ?
Kris wrote:
i`m using Mikrotik (Hotspot) + Freeradius + Mysql + perl postscript to check auth , on perl script i do check quota based on radacct table. if quota more than xxx Gb then you cant login.
the problem are like this what the result of accounting different with value that send to NAS. like this ... Mikrotik-Xmit-Limit = _*3502655261*_ <= Above value is 7622654321 but it send 3502655261 Mikrotik-Recv-Limit = _*2755359744*_ <= Above value is 5000000000 but it send 2755359744
The limits are 32-bit numbers. Don't try to put a number LARGER than 32 bits into a 32-bit number. It doesn't work. Alan DeKok.
how much are 32-bit number ? any possible way to configure it larger than 32-bit number ? Alan DeKok wrote:
Kris wrote:
i`m using Mikrotik (Hotspot) + Freeradius + Mysql + perl postscript to check auth , on perl script i do check quota based on radacct table. if quota more than xxx Gb then you cant login.
the problem are like this what the result of accounting different with value that send to NAS. like this
...
Mikrotik-Xmit-Limit = _*3502655261*_ <= Above value is 7622654321 but it send 3502655261 Mikrotik-Recv-Limit = _*2755359744*_ <= Above value is 5000000000 but it send 2755359744
The limits are 32-bit numbers. Don't try to put a number LARGER than 32 bits into a 32-bit number. It doesn't work.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-+2147483647 I think there's a patch for Giga accounting table somewhere but I'm not sure that this is what you're looking for. Regards, Liran. On 10/11/07, Kris <christian@wanxp.com> wrote:
how much are 32-bit number ?
any possible way to configure it larger than 32-bit number ?
Alan DeKok wrote:
Kris wrote:
i`m using Mikrotik (Hotspot) + Freeradius + Mysql + perl postscript to check auth , on perl script i do check quota based on radacct table. if quota more than xxx Gb then you cant login.
the problem are like this what the result of accounting different with value that send to NAS. like this
...
Mikrotik-Xmit-Limit = _*3502655261*_ <= Above value is
7622654321
but it send 3502655261 Mikrotik-Recv-Limit = _*2755359744*_ <= Above value is 5000000000 but it send 2755359744
The limits are 32-bit numbers. Don't try to put a number LARGER than 32 bits into a 32-bit number. It doesn't work.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
it is not mikrotik issue cause freeradius send incorret values , that mean i must configure freeradius to support more than 32-bit right ? tnt@kalik.co.yu wrote:
how much are 32-bit number ?
2 times 2 times 2 times etc. 32 times. If that's the numer of bytes than 4GB.
any possible way to configure it larger than 32-bit number ?
Ask Mikrotik (it's a vendor attribute). Or use "ordinary" input and output octets.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Wrong. Learn about binary numbers. And read Mikrotik documentation. You will find out that there are attributes containg something called "gigaword". You will also find out that there is also no need for shoehorns, hammer and chisel, rewriting operating systems and such in an attempt to squeeze something into a space it can't fit. Ivan Kalik Kalik Informatika ISP Dana 11/10/2007, "Kris" <christian@wanxp.com> piše:
it is not mikrotik issue cause freeradius send incorret values , that mean i must configure freeradius to support more than 32-bit right ?
tnt@kalik.co.yu wrote:
how much are 32-bit number ?
2 times 2 times 2 times etc. 32 times. If that's the numer of bytes than 4GB.
any possible way to configure it larger than 32-bit number ?
Ask Mikrotik (it's a vendor attribute). Or use "ordinary" input and output octets.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
using freeradius 1.1.7 and use variabel Gigawords, still same problem modcall: leaving group session (returns ok) for request 0 radius_xlat: '/usr/local/bin/rmauth.pl ADMIN 00:16:17:52:8F:94 172.1.1.248' Exec-Program: /usr/local/bin/rmauth.pl ADMIN 00:16:17:52:8F:94 172.1.1.248 Exec-Program output: Mikrotik-Xmit-Limit-Gigawords = 7890652485, Mikrotik-Recv-Limit-Gigawords=5599872474, Ascend-Data-Rate=98304, Ascend-Xmit-Rate=262144, Exec-Program-Wait: value-pairs: Mikrotik-Xmit-Limit-Gigawords =* 7890652485*, Mikrotik-Recv-Limit-Gigawords=*5599872474*, Ascend-Data-Rate=98304, Ascend-Xmit-Rate=262144, Exec-Program: returned: 0 Sending Access-Accept of id 14 to 10.128.3.3 port 1027 Mikrotik-Xmit-Limit-Gigawords = *3595685189* Mikrotik-Recv-Limit-Gigawords = *1304905178* Ascend-Data-Rate = 98304 Ascend-Xmit-Rate = 262144 tnt@kalik.co.yu wrote:
Wrong. Learn about binary numbers. And read Mikrotik documentation. You will find out that there are attributes containg something called "gigaword". You will also find out that there is also no need for shoehorns, hammer and chisel, rewriting operating systems and such in an attempt to squeeze something into a space it can't fit.
Ivan Kalik Kalik Informatika ISP
Dana 11/10/2007, "Kris" <christian@wanxp.com> piše:
it is not mikrotik issue cause freeradius send incorret values , that mean i must configure freeradius to support more than 32-bit right ?
tnt@kalik.co.yu wrote:
how much are 32-bit number ?
2 times 2 times 2 times etc. 32 times. If that's the numer of bytes than 4GB.
any possible way to configure it larger than 32-bit number ?
Ask Mikrotik (it's a vendor attribute). Or use "ordinary" input and output octets.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Try reading what "gigaword" is. Then use it properly. Ivan Kalik Kalik Informatika ISP Dana 11/10/2007, "Kris" <christian@wanxp.com> piše:
using freeradius 1.1.7 and use variabel Gigawords, still same problem
modcall: leaving group session (returns ok) for request 0 radius_xlat: '/usr/local/bin/rmauth.pl ADMIN 00:16:17:52:8F:94 172.1.1.248' Exec-Program: /usr/local/bin/rmauth.pl ADMIN 00:16:17:52:8F:94 172.1.1.248 Exec-Program output: Mikrotik-Xmit-Limit-Gigawords = 7890652485, Mikrotik-Recv-Limit-Gigawords=5599872474, Ascend-Data-Rate=98304, Ascend-Xmit-Rate=262144, Exec-Program-Wait: value-pairs: Mikrotik-Xmit-Limit-Gigawords =* 7890652485*, Mikrotik-Recv-Limit-Gigawords=*5599872474*, Ascend-Data-Rate=98304, Ascend-Xmit-Rate=262144, Exec-Program: returned: 0 Sending Access-Accept of id 14 to 10.128.3.3 port 1027 Mikrotik-Xmit-Limit-Gigawords = *3595685189* Mikrotik-Recv-Limit-Gigawords = *1304905178* Ascend-Data-Rate = 98304 Ascend-Xmit-Rate = 262144
tnt@kalik.co.yu wrote:
Wrong. Learn about binary numbers. And read Mikrotik documentation. You will find out that there are attributes containg something called "gigaword". You will also find out that there is also no need for shoehorns, hammer and chisel, rewriting operating systems and such in an attempt to squeeze something into a space it can't fit.
Ivan Kalik Kalik Informatika ISP
Dana 11/10/2007, "Kris" <christian@wanxp.com> piše:
it is not mikrotik issue cause freeradius send incorret values , that mean i must configure freeradius to support more than 32-bit right ?
tnt@kalik.co.yu wrote:
how much are 32-bit number ?
2 times 2 times 2 times etc. 32 times. If that's the numer of bytes than 4GB.
any possible way to configure it larger than 32-bit number ?
Ask Mikrotik (it's a vendor attribute). Or use "ordinary" input and output octets.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/usershtml
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Kris wrote:
using freeradius 1.1.7 and use variabel Gigawords, still same problem
I don't want to presume, but you do know what "giga" means, don't you?
modcall: leaving group session (returns ok) for request 0 radius_xlat: '/usr/local/bin/rmauth.pl ADMIN 00:16:17:52:8F:94 172.1.1.248' Exec-Program: /usr/local/bin/rmauth.pl ADMIN 00:16:17:52:8F:94 172.1.1.248 Exec-Program output: Mikrotik-Xmit-Limit-Gigawords = 7890652485,
So... you're trying to set the limit to 7.9 billion billion words. That's 2^65 or so, which is probably as much traffic as the entire Internet has carried for the past year. Go read the Mikrotik documentation for the meaning of "gigawords". Alan DeKok.
participants (4)
-
Alan DeKok -
Kris -
liran tal -
tnt@kalik.co.yu