A forwarding table filter allows you to filter data packets based on their components and to perform an action on packets that match the filter.
To configure a forwarding table filter, do the following:
For more information about configuring firewall filters, see Configuring Firewall Filters.
For more information about configuring firewall filters, see Configuring Firewall Filters.
To define a forwarding table filter, include the firewall statement at the [edit] hierarchy level:
- [edit]
- firewall {
-
- family family-name {
-
- filter filter-name {
-
- term term-name {
-
- from {
-
match-conditions;
- }
-
- then {
-
action;
-
action-modifiers;
- }
- }
- }
- }
- }
To create a forwarding table, include the instance-type statement at the [edit routing-instance instance-name] hierarchy level:
- [edit]
- routing-instance instance-name {
- instance-type forwarding;
- }
To apply a forwarding table filter to a VPN routing and forwarding (VRF) table, include the filter input statement at the [edit routing-instance instance-name forwarding-options family family-name] hierarchy level:
- [edit]
- routing-instance instance-name {
- instance-type forwarding;
-
- forwarding-options {
-
- family family-name {
-
- filter {
- input filter-name;
- }
- }
- }
- }
To apply a forwarding table filter to a forwarding table, include the filter input statement at the [edit forwarding-options family family-name] hierarchy level:
- [edit forwarding-options family family-name]
- filter {
- input filter-name;
- }
To apply a forwarding table filter to the default forwarding table inet.0, which is not associated with a specific routing instance, include the filter input statement at the [edit forwarding-options family inet] hierarchy level:
- [edit]
- filter {
- input filter-name;
- }
For information about the routing-instance and routing-options statements, see the JUNOS Routing Protocols Configuration Guide.