Скажите как верно завести тарифные планы?
Делаю все как в этом видео:
http://www.youtube.com/watch?v=MBiHmTHqL38
1.Cистема-> интернет тарифные планы->ввожу номер(произвольно) и название тарифного плана и жму добавить.
2.Клацаю внизу в списке на этом тарифном плане на значке интервалы(часы) просто жму добавить.
3.Далее в строке интервала(вверху) жму на значке трафика(диаграмма) в строепх IN и OUT указываю к примеру 1024 и жму кнопку добавить.
4.Затем выполняю:
/usr/abills/libexec/billd checkspeed mikrotik
На микротике появляются (очереди)правила:
Код: Выделить всё
/queue type
add kind=pcq name=TP_4_in_global_speed pcq-classifier=src-address pcq-rate=5144576
add kind=pcq name=TP_4_out_global_speed pcq-classifier=dst-address pcq-rate=5144576
5. Завожу pool в abills:
6.Далее завожу пользователя, выбираю ему этот тарифный план.
radiusd -X при авторизации:
Код: Выделить всё
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 145
NAS-Port-Type = Ethernet
User-Name = "SOMEUSERLOGIN"
Calling-Station-Id = "C0:4A:00:34:AB:6F"
Called-Station-Id = "service1"
NAS-Port-Id = "bridge-local"
Acct-Session-Id = "81100084"
Framed-IP-Address = 10.0.0.22
Acct-Authentic = RADIUS
Event-Timestamp = "Mar 3 2014 06:26:30 UTC"
Acct-Session-Time = 0
Acct-Input-Octets = 72
Acct-Input-Gigawords = 0
Acct-Input-Packets = 6
Acct-Output-Octets = 94
Acct-Output-Gigawords = 0
Acct-Output-Packets = 7
Acct-Status-Type = Stop
Acct-Terminate-Cause = NAS-Error
NAS-Identifier = "MikroTik"
Acct-Delay-Time = 0
NAS-IP-Address = 192.168.0.5
# Executing section preacct from file /usr/local/etc/raddb/sites-enabled/abills_default
+- entering group preacct {...}
++[preprocess] returns ok
# Executing section accounting from file /usr/local/etc/raddb/sites-enabled/abills_default
+- entering group accounting {...}
rlm_perl: Added pair Acct-Input-Octets = 72
rlm_perl: Added pair NAS-Port-Type = Ethernet
rlm_perl: Added pair Acct-Session-Id = 81100084
rlm_perl: Added pair Acct-Output-Gigawords = 0
rlm_perl: Added pair Service-Type = Framed-User
rlm_perl: Added pair Called-Station-Id = service1
rlm_perl: Added pair Acct-Authentic = RADIUS
rlm_perl: Added pair Acct-Status-Type = Stop
rlm_perl: Added pair Acct-Output-Packets = 7
rlm_perl: Added pair NAS-IP-Address = 192.168.0.5
rlm_perl: Added pair NAS-Port-Id = bridge-local
rlm_perl: Added pair Acct-Output-Octets = 94
rlm_perl: Added pair Acct-Terminate-Cause = NAS-Error
rlm_perl: Added pair Acct-Session-Time = 0
rlm_perl: Added pair Calling-Station-Id = C0:4A:00:34:AB:6F
rlm_perl: Added pair Framed-Protocol = PPP
rlm_perl: Added pair User-Name = "SOMEUSERLOGIN"
rlm_perl: Added pair NAS-Identifier = MikroTik
rlm_perl: Added pair Event-Timestamp = Mar 3 2014 06:26:30 UTC
rlm_perl: Added pair Acct-Input-Gigawords = 0
rlm_perl: Added pair Framed-IP-Address = 10.0.0.22
rlm_perl: Added pair Acct-Input-Packets = 6
rlm_perl: Added pair NAS-Port = 145
rlm_perl: Added pair Acct-Delay-Time = 0
++[perl] returns ok
Sending Accounting-Response of id 157 to ABILLSSRVIPADDRESS port 32910
Finished request 5.
Cleaning up request 5 ID 157 with timestamp +6
Going to the next request
Waking up in 1.1 seconds.
Cleaning up request 0 ID 152 with timestamp +2
Waking up in 3.7 seconds.
при попытке авторизации в логах микротика:
Код: Выделить всё
19:05:19 pppoe,info PPPoE connection established from 11:AE:ED:83:D0:0F
19:05:19 pppoe,ppp,info <pppoe-0>: waiting for call...
19:05:19 pppoe,ppp,info <pppoe-0>: authenticated
19:05:19 pppoe,ppp,info <pppoe-0>: terminating... - could not determine remote IP address
19:05:19 pppoe,ppp,info <pppoe-0>: disconnected
Подскажите что пропустил! или выполнил не верно!