Полисинг абонентского канала

fdpi_ctrl load profile --policing rate_10_night.cfg --profile.name тариф_10
fdpi_ctrl list all --policing | grep 'rrate=1250000(10.00mbit)' | awk '{ print $1}'>ll.tmp; fdpi_ctrl load --policing policing.htb.cng --file ll.tmp;
fdpi_ctrl load --policing policing.htb.cng --file my_rate10_ip.lst

my_rate10_ip.lst

# cat my_rate10_ip.lst 10.64.66.110 10.64.66.112 10.64.66.114

/etc/dpi/fastdpi.conf

plc_trace_ip=109.234.130.131

service fastdpi reload

fdpi_ctrl load --policing rat_HTB.cfg --ip 109.234.130.131

fdpi_ctrl list all --policing

…

grep -A 7 "109.234.130.131" /var/log/dpi/fastdpi_stat.log | more

[STAT ][2014/10/30-19:25:16:441786] HTB : Statistics (IP=109.234.130.131) dscp=7, if 'dna2' :
DSCP_actual stats Rcvd: [358187060 bytes][47.73 Mbit/sec]
[232589 pkts ][3'874.07 pkt/sec]
Drop: [354236960 bytes][98.90 %]
[230024 pkts ][98.90 %]
Send: [0 bytes][0.00 Mbit/sec]
[0 pkts ][0.00 pkt/sec]
Esnd: [0 err_pkts][0.00 %]

[STAT ][2014/10/30-19:25:16:441793] HTB : Statistics (IP=109.234.130.131) dscp=0, if 'dna3' :
DSCP_actual stats Rcvd: [1018 bytes][0.00 Mbit/sec]
[10 pkts ][0.17 pkt/sec]
Drop: [0 bytes][0.00 %]
[0 pkts ][0.00 %]
Send: [828 bytes][0.00 Mbit/sec]
[9 pkts ][0.15 pkt/sec]
Esnd: [0 err_pkts][0.00 %]

[STAT ][2014/10/30-19:25:16:441834] HTB : Statistics (IP=109.234.130.131) dscp=7, if 'dna3' :
DSCP_actual stats Rcvd: [0 bytes][0.00 Mbit/sec]
[0 pkts ][0.00 pkt/sec]
Drop: [0 bytes][0.00 %]
[0 pkts ][0.00 %]
Send: [3950100 bytes][0.53 Mbit/sec]
[2565 pkts ][42.72 pkt/sec]
Esnd: [0 err_pkts][0.00 %]