Configuring Junos OS Filter Conditions (SRC CLI)
Use the following configuration statements to configure Junos OS filter conditions.
To add Junos OS filter conditions to a classify-traffic condition:
From configuration mode, enter the application protocol configuration. For example:
user@host# edit policies group junos list bodVpn rule pr traffic-condition ctc traffic-match-condition(Optional) Configure the name of a forwarding class to match.
[edit policies group junos list bodVpn rule pr traffic-condition ctc traffic-match-condition]user@host# set forwarding-class forwarding-class(Optional) Configure the condition to match packets based on the interface group on which the packet was received.
[edit policies group junos list bodVpn rule pr traffic-condition ctc traffic-match-conditionuser@host# set interface-group interface-group(Optional) Configure the condition to match packets based on source class. A source class is a set of source prefixes grouped together and given a class name. You usually match source and destination classes for output firewall filters.
You cannot match on both source class and destination class at the same time. You must choose one or the other.
[edit policies group junos list bodVpn rule pr traffic-condition ctc traffic-match-condition]user@host# set source-class source-class(Optional) Configure the condition to match packets based on destination class. A destination class is a set of destination prefixes grouped together and given a class name. You usually match source and destination classes for output firewall filters.
You cannot match on both source class and destination class at the same time. You must choose one or the other.
[edit policies group junos list bodVpn rule pr traffic-condition ctc traffic-match-condition]user@host# set destination-class destination-class(Optional) Configure the condition to match packets based on IP options.
[edit policies group junos list bodVpn rule pr traffic-condition ctc traffic-match-condition]user@host# set allow-ip-options allow-ip-options(Optional) Verify the Junos OS filter condition configuration.
[edit policies group junos list bodVpn rule pr traffic-condition ctc traffic-match-condition] user@host# show forwarding-class fc_expedited; interface-group 42; source-class gold-class; destination-class gold-class; allow-ip-options strict-source-route;