The following parameter values must be set in the configuration file /etc/dpi/fastdpi.conf:
netflow=12 netflow_dev=vlan200 netflow_timeout=10 netflow_rate_limit=900 netflow_full_collector=10.0.0.0:1500 netflow_passive_timeout=5 netflow_active_timeout=20 netflow_full_collector_type=2 ipfix_reserved=1
where:
netflow=12 – statistics collection and export: 8 + 4 = fullnetflow + billnetflow (accounting).netflow_dev=vlan200 – where vlan200 is the name of the interface from which statistics will be exported.netflow_timeout=10 – export interval in seconds.netflow_rate_limit=900 – IPFIX rate limit.netflow_full_collector=10.0.0.0:1500 – statistics collector address – specify the correct QoE IP.netflow_passive_timeout=5 – inactivity timeout for a session. If no activity is detected during this period, the session is considered finished and its information is exported.netflow_active_timeout=20 – interval for reporting long sessions (i.e., long sessions are split into fragments of this duration).netflow_full_collector_type=2 – export IPFIX to a TCP collector.ipfix_reserved=1 – reserves the required memory to allow enabling/changing IPFIX/Netflow parameters.After modifying the parameters, restart the service:
service fastdpi restart
cp /etc/dpi/aslocal.bin /etc/dpi/aslocal.bin.backup
bin2as /etc/dpi/aslocal.bin > /etc/dpi/list.txt
If the aslocal.bin file is missing in /etc/dpi/, create it:
vi /etc/dpi/list.txt
10.0.0.1/32 64525 172.16.0.0/12 64525 192.168.0.0/16 64525
Where 64525 is the AS that will later need to be blocked.
cat /etc/dpi/list.txt | as2bin /etc/dpi/aslocal.bin
service fastdpi reload
cp /etc/dpi/asnum.dscp /etc/dpi/asnum.dscp.backup
dscp2as /etc/dpi/asnum.dscp > /etc/dpi/asnum.txt
64525 drop
cat /etc/dpi/asnum.txt | as2dscp /etc/dpi/asnum.dscp
service fastdpi reload