(table 80 - интернет пользователи)
Код: Выделить всё
#Traffic restrictions for socks
ipfw pipe 1080 config bw 512Kbit/s queue 50
ipfw queue 1 config pipe 1080 weight 10 mask dst-ip 0xffffffff
queue 1 ip from me 1080 to table\(80\)
pass tcp from table\(80\) to any dst-port 1080 limit src-addr 10
Код: Выделить всё
# ipfw pipe show
01080: 512.000 Kbit/s 0 ms burst 0
q132152 50 sl. 0 flows (1 buckets) sched 66616 weight 0 lmax 0 pri 0 droptail
sched 66616 type FIFO flags 0x0 0 buckets 0 active
#
Код: Выделить всё
# ipfw queue show
q00001 50 sl. 2 flows (64 buckets) sched 1080 weight 10 lmax 0 pri 0 droptail
mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
85 ip 0.0.0.0/0 192.168.1.4/0 44880 48125702 45 57657 3025
105 ip 0.0.0.0/0 192.168.1.5/0 32548 47762561 34 49540 170
#