flow
Syntax
flow { discard-action-for-unresolved-redir-addr; (fast-lookup-filter | no-fast-lookup-filter); firewall-install-disable; interface-group (Routing Options) group-name <exclude>; (per-route-accounting | no-per-route-accounting); route name match { destination prefix; destination-port (afs | bgp | biff | bootpc | bootps | cmd | cvspserver | dhcp | domain | eklogin | ekshell | exec | expression | finger | ftp | ftp-data | http | https | ident | imap | kerberos-sec | klogin | kpasswd | krb-prop | krbupdate | kshell | ldap | ldp | login | mobileip-agent | mobilip-mn | msdp | netbios-dgm | netbios-ns | netbios-ssn | nfsd | nntp | ntalk | ntp | pop3 | pptp | printer | radacct | radius | rip | rkinit | smtp | snmp | snmptrap | snpp | socks | ssh | sunrpc | syslog | tacacs | tacacs-ds | talk | telnet | tftp | timed | who | xdmcp | zephyr-clt | zephyr-hm | zephyr-srv)>; dscp [ dscp ... ]; fragment (dont-fragment | first-fragment | is-fragment | last-fragment | not-a-fragment); icmp-code (communication-prohibited-by-filtering | destination-host-prohibited | destination-host-unknown | destination-network-prohibited | destination-network-unknown | expression | fragmentation-needed | host-precedence-violation | host-unreachable | host-unreachable-for-tos | ip-header-bad | network-unreachable | network-unreachable-for-tos | port-unreachable | precedence-cutoff-in-effect | protocol-unreachable | redirect-for-host | redirect-for-network | redirect-for-tos-and-host | redirect-for-tos-and-net | required-option-missing | source-host-isolated | source-route-failed | ttl-eq-zero-during-reassembly | ttl-eq-zero-during-transit);; icmp-type (echo-reply | echo-request | expression | info-reply | info-request | mask-reply | mask-request | parameter-problem | redirect | router-advertisement | router-solicit | source-quench | time-exceeded | timestamp | timestamp-reply | unreachable);; packet-length [ packet-length ... ]; port (afs | bgp | biff | bootpc | bootps | cmd | cvspserver | dhcp | domain | eklogin | ekshell | exec | expression | finger | ftp | ftp-data | http | https | ident | imap | kerberos-sec | klogin | kpasswd | krb-prop | krbupdate | kshell | ldap | ldp | login | mobileip-agent | mobilip-mn | msdp | netbios-dgm | netbios-ns | netbios-ssn | nfsd | nntp | ntalk | ntp | pop3 | pptp | printer | radacct | radius | rip | rkinit | smtp | snmp | snmptrap | snpp | socks | ssh | sunrpc | syslog | tacacs | tacacs-ds | talk | telnet | tftp | timed | who | xdmcp | zephyr-clt | zephyr-hm | zephyr-srv);; protocol (ah | egp | esp | expression | gre | icmp | icmp6 | igmp | ipip | ospf | pim | rsvp | sctp | tcp | udp); source prefix; source-port (afs | bgp | biff | bootpc | bootps | cmd | cvspserver | dhcp | domain | eklogin | ekshell | exec | expression | finger | ftp | ftp-data | http | https | ident | imap | kerberos-sec | klogin | kpasswd | krb-prop | krbupdate | kshell | ldap | ldp | login | mobileip-agent | mobilip-mn | msdp | netbios-dgm | netbios-ns | netbios-ssn | nfsd | nntp | ntalk | ntp | pop3 | pptp | printer | radacct | radius | rip | rkinit | smtp | snmp | snmptrap | snpp | socks | ssh | sunrpc | syslog | tacacs | tacacs-ds | talk | telnet | tftp | timed | who | xdmcp | zephyr-clt | zephyr-hm | zephyr-srv); tcp-flags (ack | expression | fin | push | rst | syn | urgent); } no-install; then (accept | discard | rate-limit rate-limit) { community name; mark mark; next-term; redirect [ redirect ... ]; routing-instance routing-instance; sample; } } term-order (legacy | standard); validation { traceoptions { file filename <files files> <size size> <(world-readable | no-world-readable)>; flag (all | flash | general | normal | policy | resolution | route | state | task | timer)<detail> <disable><receive> <send>; } } }
Hierarchy Level
[edit routing-options], [edit routing-instances routing-instance-name routing-options]
Description
Configure a flow route.
Default
legacy
Options
discard-action-for-unresolved-redir-addr |
For action redirect IP if redirect address is unresolved install discard action filter. |
fast-lookup-filter | Enable fast lookup filter. Note:
The option fast-lookup-filter is supported on MX Series devices only. |
no-fast-lookup-filter | Disable fast lookup filter. Note:
The option no-fast-lookup-filter is supported on MX Series devices only. Default: no-fast-lookup-filter |
firewall-install-disable —(PTX Series routers only) |
The firewall-install-disable statement appears in the
default configuration, preventing installation of flow-specification
firewall filters into dfwd. For other models, this setting is omitted from
the default configuration, allowing installation of flow-specification
firewall filters into dfwd. |
interface-group group |
Interface-group for applying flowspec filter.
|
per-route-accounting |
Enable traffic accounting per flowspec route. |
no-per-route-accounting |
Disable traffic accounting per flowspec route. |
route name |
Name of the flow route. |
match match-conditions |
Match packets to these conditions. |
destination prefix |
IP destination address field. |
destination-port
destination-port-names |
TCP or User Datagram Protocol (UDP) destination port field. You cannot
specify both the In place of the numeric value, you can specify one of the following text
synonyms (the port numbers are also listed):
|
dscp value |
Differentiated Services code point (DSCP). The DiffServ protocol uses the
type-of-service (ToS) byte in the IP header. The most significant six bits
of this byte form the DSCP.
|
fragment fragment-value |
IP header Fragment field. The keywords are grouped by the fragment type with which they are associated:
|
icmp-code icmp-code-value |
ICMP code field. This value or keyword provides more specific information
than In place of the numeric value, you can specify one of the following text synonyms (the field values are also listed). The keywords are grouped by the ICMP type with which they are associated:
|
icmp-type icmp-type-value |
ICMP packet type field. Normally, you specify this match in conjunction
with the In place of the numeric value, you can specify one of the following text
synonyms (the field values are also listed):
|
packet-length packet-length |
Total IP packet length value can range from 0 through 65535. |
port port-names |
TCP or UDP source or destination port field. You cannot specify both the
In place of the numeric value, you can specify one of the text synonyms
listed under |
protocol number |
In place of the numeric value, you can specify one of the following text
synonyms (the field values are also listed): |
source prefix |
IP source address field. |
source-port source-port-names |
TCP or UDP source port field. You cannot specify the
In place of the numeric field, you can specify one of the text synonyms
listed under |
tcp-flags tcp-flags |
TCP header format. |
no-install |
Prohibit installing received routes in the forwarding table. |
then |
Actions to take on matching packets. |
accept |
Accept a packet. This is the default value. |
community name |
Replace any communities in the route with the specified communities. |
discard |
Discard a packet silently, without sending an Internet Control Message Protocol (ICMP) message. |
mark value |
Set a DSCP value for traffic that matches this flow. Specify a value from 0 through 63. This action is supported only on Junos devices with MPCs that are
configured for |
redirect |
Redirect (tunnel) this flow's traffic to given next-hop address. |
next-term |
Continue to the next match condition for evaluation. |
rate-limit rate-limit |
Limit the bandwidth on the flow route. Express the limit in bits per second (bps). |
routing-instance
route-target-extended-community |
Specify a routing instance to which packets are forwarded. |
sample |
Sample the traffic on the flow route. |
term-order (legacy | standard) |
Default: legacy |
validation |
Flow route validation options. Flow specifications received from peers are validated such that it is considered feasible. |
traceoptions |
Define tracing operations that track all routing protocol functionality in the routing device. |
file |
Trace file options.
|
flag |
Tracing parameters.
|
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced before Junos OS Release 7.4.
term-order
option introduced in Junos OS Release 10.0
firewall-install-disable
option introduced in Junos OS Releases
12.1X48 and 12.3 for PTX Series routers.
interface-group
option introduced in Junos OS Release 16.1R1.
per-route-accounting
option introduced in Junos OS Release
21.1R1