示例:为订阅者访问配置快速更新过滤器
此示例说明如何配置快速更新过滤器,该过滤器是一种输入过滤器,用于对来自订阅者的 HTTP 和非 HTTP 数据包进行计数。在此示例中,您使用防火墙部分创建过滤器,并使用接口部分来附加过滤器。
[edit dynamic-profiles myProfile]
firewall {
family inet {
fast-update-filter httpFilter {
interface-specific;
match-order [source-address protocol destination-port];
term term1 {
from {
protocol tcp;
source-address $junos-subscriber-ip-address;
destination-port http;
}
then {
count http-cnt;
}
}
term term2 {
from {
protocol tcp;
source-address $junos-subscriber-ip-address;
}
then {
count non-http-cnt;
}
}
}
}
}
interfaces {
"$junos-interface-ifd-name" {
unit "$junos-underlying-interface-unit" {
family inet {
filter {
input httpFilter;
}
}
}
}
}