Ошибка по количеству
Добавлено: Сб янв 19, 2013 6:23 pm
в билинге подклучено два подключения на один логин
в ipfw pipe list
06001: 20.480 Mbit/s 0 ms burst 0
q137073 1000 KB 0 flows (1 buckets) sched 71537 weight 0 lmax 0 pri 0 droptail
sched 71537 type FIFO flags 0x1 64 buckets 1 active
mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
24 ip 0.0.0.0/0 10.10.10.12/0 3 945 0 0 0
05001: 20.480 Mbit/s 0 ms burst 0
q136073 1000 KB 0 flows (1 buckets) sched 70537 weight 0 lmax 0 pri 0 droptail
sched 70537 type FIFO flags 0x1 64 buckets 1 active
mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
18 ip 10.10.10.12/0 0.0.0.0/0 4 524 0 0 0
А другого соединеия пользователя нету
test 1 10.10.10.21 02:30:50 123.74 Kb 22.73 Kb 0 Bt 0 Bt
test 2 10.10.10.12 02:29:19 112.13 MB 66.11 MB 0 Bt 0 Bt
[root@superpolka /usr/abills]# ipfw table all list
---table(10)---
10.10.10.12/32 5001
10.10.10.99/32 5001
---table(11)---
10.10.10.12/32 6001
10.10.10.21/32 6001
10.10.10.99/32 6001
/usr/abills/libexec/billd checkspeed NAS_IDS=10 SHOW_SPEED=1
TP: 1 (1)
Traffic Class: 0 Class: 0 IN: 20480 OUT: 20480 Pipe: 5001 / 6001
TP: 2 (2)
TP: 4 (5)
TP: 5 (6)
TP: 6 (7)
TP: 7 (8)
TP: 8 (9)
TP: 9 (10)
TP: 100 (11)
ipfw pipe list
06001: 20.480 Mbit/s 0 ms burst 0
q137073 1000 KB 0 flows (1 buckets) sched 71537 weight 0 lmax 0 pri 0 droptail
sched 71537 type FIFO flags 0x1 64 buckets 0 active
mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
05001: 20.480 Mbit/s 0 ms burst 0
q136073 1000 KB 0 flows (1 buckets) sched 70537 weight 0 lmax 0 pri 0 droptail
sched 70537 type FIFO flags 0x1 64 buckets 0 active
mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
Теперь другие правила !!!! после /usr/abills/libexec/billd checkspeed NAS_IDS=10 SHOW_SPEED=1
в ipfw pipe list
06001: 20.480 Mbit/s 0 ms burst 0
q137073 1000 KB 0 flows (1 buckets) sched 71537 weight 0 lmax 0 pri 0 droptail
sched 71537 type FIFO flags 0x1 64 buckets 1 active
mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
24 ip 0.0.0.0/0 10.10.10.12/0 3 945 0 0 0
05001: 20.480 Mbit/s 0 ms burst 0
q136073 1000 KB 0 flows (1 buckets) sched 70537 weight 0 lmax 0 pri 0 droptail
sched 70537 type FIFO flags 0x1 64 buckets 1 active
mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
18 ip 10.10.10.12/0 0.0.0.0/0 4 524 0 0 0
А другого соединеия пользователя нету
test 1 10.10.10.21 02:30:50 123.74 Kb 22.73 Kb 0 Bt 0 Bt
test 2 10.10.10.12 02:29:19 112.13 MB 66.11 MB 0 Bt 0 Bt
[root@superpolka /usr/abills]# ipfw table all list
---table(10)---
10.10.10.12/32 5001
10.10.10.99/32 5001
---table(11)---
10.10.10.12/32 6001
10.10.10.21/32 6001
10.10.10.99/32 6001
/usr/abills/libexec/billd checkspeed NAS_IDS=10 SHOW_SPEED=1
TP: 1 (1)
Traffic Class: 0 Class: 0 IN: 20480 OUT: 20480 Pipe: 5001 / 6001
TP: 2 (2)
TP: 4 (5)
TP: 5 (6)
TP: 6 (7)
TP: 7 (8)
TP: 8 (9)
TP: 9 (10)
TP: 100 (11)
ipfw pipe list
06001: 20.480 Mbit/s 0 ms burst 0
q137073 1000 KB 0 flows (1 buckets) sched 71537 weight 0 lmax 0 pri 0 droptail
sched 71537 type FIFO flags 0x1 64 buckets 0 active
mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
05001: 20.480 Mbit/s 0 ms burst 0
q136073 1000 KB 0 flows (1 buckets) sched 70537 weight 0 lmax 0 pri 0 droptail
sched 70537 type FIFO flags 0x1 64 buckets 0 active
mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
Теперь другие правила !!!! после /usr/abills/libexec/billd checkspeed NAS_IDS=10 SHOW_SPEED=1