[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Sampling All FTP Traffic

The following configuration gathers statistical information about a moderate percentage of packets using the FTP data transfer protocol in the output path of a specific T3 interface, and collects the information in a file named t3-ftp-traffic.txt.

Create a filter:

[edit firewall family inet]
filter ftp-stats {
term ftp-usage {
from {
destination-port [ftp ftp-data];
}
then {
sample;
accept;
}
}
}

Apply the filter to the T3 interface:

[edit interfaces]
t3-7/0/2 {
unit 0 {
family inet {
filter {
input ftp-stats;
}
address 10.35.78.254/32 {
destination 10.35.78.4;
}
}
}
}

Finally, gather statistics on 10 percent of the candidate samples:

[edit forwarding-options]
sampling {
input {
family inet {
rate 10;
}
}
output {
file {
filename t3-ftp-traffic.txt;
files 50;
size 1m;
}
}
}

[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]