Проблемы с ограничением скорости по сетям

Ответить
MaLeha
Сообщения: 27
Зарегистрирован: Пн сен 26, 2005 3:00 pm

Проблемы с ограничением скорости по сетям

Сообщение MaLeha »

Есть две сети - городская (10.0.0.0/8) и инет. Скорость в инет каждому пользователю выставил в тарифе на 250 а в городскую 1000. Еще есть pipe общий а в нем очереди в которые уже попадают пакеты из пайпов который создает билинг. Так вот проблема - что траф из городской попадает и в пайп городской и в пайп инета. Получается что инетовский пайп делиться на городской и инетовский траф.
Вот что показывает ipfw show

Код: Выделить всё

00001        0           0 queue 1 ip from 11.5.102.0/24 to 10.0.0.0/8
00002        0           0 queue 11 ip from 10.0.0.0/8 to 11.5.102.0/24
00003        0           0 queue 2 ip from 11.5.103.0/24 to 10.0.0.0/8
00004        0           0 queue 22 ip from 10.0.0.0/8 to 11.5.103.0/24
00005    14010     1091946 queue 3 ip from 11.5.104.0/24 to 10.0.0.0/8
00006       56        3510 queue 33 ip from 10.0.0.0/8 to 11.5.104.0/24
00007        0           0 queue 4 ip from 11.5.105.0/24 to 10.0.0.0/8
00008        1          56 queue 44 ip from 10.0.0.0/8 to 11.5.105.0/24
00009     6577      810379 queue 5 ip from 11.5.102.0/24 to not 10.0.0.0/8
00010     3191     2402237 queue 55 ip from not 10.0.0.0/8 to 11.5.102.0/24
00011    30745     4186546 queue 6 ip from 11.5.103.0/24 to not 10.0.0.0/8
00012    14416     8950171 queue 66 ip from not 10.0.0.0/8 to 11.5.103.0/24
00013    57531     5876956 queue 7 ip from 11.5.104.0/24 to not 10.0.0.0/8
00014    26709     8783405 queue 77 ip from not 10.0.0.0/8 to 11.5.104.0/24
00015    62820     3920340 queue 8 ip from 11.5.105.0/24 to not 10.0.0.0/8
00016    58551    64471368 queue 88 ip from not 10.0.0.0/8 to 11.5.105.0/24
[b]00022        0      13450 pipe 22 ip from 10.0.0.0/8 to any via tun2 in
00023        4         56240 pipe 23 ip from 10.0.0.0/8 to any via tun2 out
00054      520       88759 pipe 54 ip from any to any via tun2 in
00055      536      487655 pipe 55 ip from any to any via tun2 out[/b]00090  1873986   734207449 divert 8670 ip from 11.5.102.0/24,11.5.103.0/24,11.5.104.0/24,11.5.105.0/24 to 10.0.0.0/8 out via rl1
00091  2102499  1868083270 divert 8670 ip from any to 10.5.16.93 in via rl1
00092  3782743   291524695 divert 8671 ip from 11.5.102.0/24,11.5.103.0/24,11.5.104.0/24,11.5.105.0/24 to any out via rl2
00093  5589942  5122793079 divert 8671 ip from any to 11.11.11.1 in via rl2
дальше не дивертов не пайпов. Что я сделал неправильно ?

MaLeha
Сообщения: 27
Зарегистрирован: Пн сен 26, 2005 3:00 pm

Сообщение MaLeha »

да если поможет вот мой

Код: Выделить всё

> ipfw pipe show
00001:  10.000 Mbit/s    0 ms  32 KB 0 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
00002: 510.000 Kbit/s    0 ms   20 sl. 0 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
00003: 320.000 Kbit/s    0 ms   20 sl. 0 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
00004: 120.000 Kbit/s    0 ms   20 sl. 0 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
00022:   1.000 Mbit/s    0 ms  10 KB 0 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
00023:   1.000 Mbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 icmp     10.5.23.254/0        11.5.104.216/0        4      240  0    0   0
00050: 250.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 tcp      11.5.104.67/62069  62.129.164.197/80    35182  3247856  0    0   0
00051: 250.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 tcp   62.129.164.197/80        11.5.104.67/62069 20439  2661777  0    0  18
00052: 250.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 udp      11.5.104.77/137   255.255.255.255/137   1089   115463  0    0   0
00053: 250.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 udp      11.11.11.11/53        11.5.104.77/1058  1073  1000982  0    0  33
00054: 250.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 udp     11.5.104.216/137   255.255.255.255/137   1730   237892  0    0   0
00055: 250.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 udp      11.11.11.11/53       11.5.104.216/1085  1770  1512385  0    0   9
00056: 250.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 tcp       11.5.104.5/1058      64.4.52.189/80     185    25263  0    0   0
00057: 250.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 tcp      64.4.52.189/80         11.5.104.5/1058   181   141255  0    0   0
00060: 220.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 udp     11.5.105.144/68    255.255.255.255/67    43585  2652723  0    0   0
00061: 220.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 udp      11.11.11.11/53       11.5.105.144/1091  79793 89913965  6 8400 21755
00062: 250.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 udp     11.5.104.142/68    255.255.255.255/67    1466   186720  0    0   0
00063: 250.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 tcp    194.67.23.196/443      11.5.104.142/1501  1755  1521831  0    0  15
00070: 200.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 udp      11.5.105.24/137   255.255.255.255/137     32     3739  0    0   0
00071: 200.000 Kbit/s    0 ms  10 KB 1 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  0 udp      11.11.11.11/53        11.5.105.24/1053     9     3986  0    0   0
q00001: weight 75 pipe 1   50 sl. 0 queues (64 buckets) droptail
    mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
q00002: weight 50 pipe 1   50 sl. 0 queues (64 buckets) droptail
    mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
q00003: weight 50 pipe 1   50 sl. 2 queues (64 buckets) droptail
    mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  3 ip       11.5.104.67/0             0.0.0.0/0     20950  1634100  0    0   0
 53 ip      11.5.104.216/0             0.0.0.0/0       42     2442  0    0   0
q00004: weight 50 pipe 1    1 sl. 0 queues (64 buckets) droptail
    mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
q00005: weight 75 pipe 4   50 sl. 3 queues (64 buckets) droptail
    mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
 33 ip       11.5.102.18/0             0.0.0.0/0     4119   531039  0    0   0
 37 ip       11.5.102.16/0             0.0.0.0/0     1007    83709  0    0   0
 41 ip      11.5.102.118/0             0.0.0.0/0       68    11754  0    0   0
q00006: weight 50 pipe 4   50 sl. 2 queues (64 buckets) droptail
    mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
 15 ip       11.5.103.69/0             0.0.0.0/0     36644  9683279  0    0   0
 29 ip      11.5.103.236/0             0.0.0.0/0     2011   107277  0    0   0
q00007: weight 40 pipe 4   50 sl. 6 queues (64 buckets) droptail
    mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  3 ip       11.5.104.67/0             0.0.0.0/0     52923  5151967  0    0 3004
 15 ip        11.5.104.5/0             0.0.0.0/0      353    47784  0    0   0
 25 ip      11.5.104.142/0             0.0.0.0/0     2958   375195  0    0   0
 31 ip       11.5.104.77/0             0.0.0.0/0     2284   242614  0    0   0
 41 ip       11.5.104.22/0             0.0.0.0/0      896    36478  0    0   0
 53 ip      11.5.104.216/0             0.0.0.0/0     10283  1176249  0    0   0
q00008: weight 30 pipe 4   50 sl. 2 queues (64 buckets) droptail
    mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
 37 ip      11.5.105.144/0             0.0.0.0/0     87110  5296678  0    0   4
 53 ip       11.5.105.24/0             0.0.0.0/0      288    74298  0    0   0
q00011: weight 50 pipe 1   50 sl. 0 queues (64 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
q00022: weight 50 pipe 1   50 sl. 0 queues (64 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
q00033: weight 50 pipe 1   50 sl. 2 queues (64 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  9 ip           0.0.0.0/0         11.5.104.67/0       54     3024  0    0   0
 18 ip           0.0.0.0/0        11.5.104.216/0       19     1438  0    0   0
q00044: weight 50 pipe 1    1 sl. 1 queues (64 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
 26 ip           0.0.0.0/0        11.5.105.144/0        2      112  0    0   0
q00055: weight 50 pipe 2   50 sl. 4 queues (64 buckets) droptail
    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         11.5.102.18/0     1996  1487496  0    0   0
 26 ip           0.0.0.0/0         11.5.102.16/0      482   417925  0    0   0
 28 ip           0.0.0.0/0         11.5.102.22/0      714   496856  0    0   0
 60 ip           0.0.0.0/0        11.5.102.118/0      451   320325  0    0   0
q00066: weight 50 pipe 2   50 sl. 2 queues (64 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
 15 ip           0.0.0.0/0         11.5.103.69/0     17064  9447826  0    0   0
 38 ip           0.0.0.0/0        11.5.103.236/0      940   271781  0    0   0
q00077: weight 40 pipe 2   50 sl. 6 queues (64 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
  4 ip           0.0.0.0/0        11.5.104.142/0     1769  1523556  0    0   0
  7 ip           0.0.0.0/0         11.5.104.77/0     1132  1027177  0    0   0
  9 ip           0.0.0.0/0         11.5.104.67/0     22183  2841762  0    0   0
 15 ip           0.0.0.0/0          11.5.104.5/0      184   141989  0    0   0
 18 ip           0.0.0.0/0        11.5.104.216/0     5516  5295203  0    0   0
 28 ip           0.0.0.0/0         11.5.104.22/0      468    46920  0    0   0
q00088: weight 30 pipe 2   50 sl. 2 queues (64 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
 18 ip           0.0.0.0/0         11.5.105.24/0      124    57515  0    0   0
 26 ip           0.0.0.0/0        11.5.105.144/0     80021 90171178  0    0   0

Хотя тут столько всего :)
просто мож кто то с похожим сталкивался
Freebsd 5.4

~AsmodeuS~
Site Admin
Сообщения: 5749
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Сообщение ~AsmodeuS~ »

были ещё внесены правка в шейпер попробуйте обновиться

но думаю это гедто у Вас трабла

Ответить