[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Configuring JUNOS Filter Conditions
Use the following configuration statements
to configure JUNOS filter conditions.
- policies group name list name rule name traffic-condition name traffic-match-condition
{
- forwarding-class forwarding-class ;
- interface-group interface-group ;
- source-class source-class ;
- destination-class destination-class ;
- allow-ip-options allow-ip-options ;
- }
To add JUNOS 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-condition
- user@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 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;
Related Topics
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]