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

Examples: Configuring Filter-Based Forwarding

Configure a filter to direct traffic to ISP1 or ISP2 based on source address matching:

[edit firewall]
family inet {
filter classify-customers {
term isp1-customers {
from {
source-address 10.1.1.0/24;
source-address 10.1.2.0/24;
}
then {
routing-instance isp1-route-table;
}
}
term isp2-customers {
from {
source-address 10.2.1.0/24;
source-address 10.2.2.0/24;
}
then {
routing-instance isp2-route-table;
}
}
term default {
then {
accept;
}
}
}
}

Configure a filter-based forwarding (FBF) filter for family inet6:

[edit]
firewall {
family inet6 {
filter ftf_fbf {
term 0 {
from {
source-address {
::10.34.1.0/120;
}
}
then {
count ce1;
log;
routing-instance ce1;
}
}
term 1 {
from {
source-address {
::10.34.2.0/120;
}
}
then {
count ce2;
log;
routing-instance ce2;
}
}
term default {
then {
count default;
accept;
}
}
}
}
}

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