在 M、MX 或 T Series 路由器上指定防火墙过滤器,以选择要监控的流量
定义防火墙过滤器时,选择要监控的初始流量。要配置防火墙过滤器,请在[edit firewall family inet]层次结构级别包含filter语句。必须接受所有要监控的过滤流量。
[edit]
firewall {
family inet {
filter input-monitoring-filter {
term 1 {
from {
destination-address {
10.7.0.0/16;
}
}
then {
count counter1;
accept;
}
}
term 2 {
from {
destination-address {
10.6.0.0/16;
}
}
then {
count counter2;
accept;
}
}
}
}
}