Related Documentation
- J, M, MX, T Series
- Example: Configuring Layer 3 Services and the Services SDK on Two PICs
- M, MX, T Series
- Example: BOOTP and Broadcast Addresses
- Example: NAT Between VRFs Configuration
- Example: Dynamic Source NAT as a Next-Hop Service
- Example: VPN Routing and Forwarding (VRF) and Service Configuration
- Example: Service Interfaces Configuration
Examples: Configuring Stateful Firewall Rules
The following example show a stateful firewall configuration containing two rules, one for input matching on a specified application set and the other for output matching on a specified source address:
The following example has a single rule with two terms. The first term rejects all traffic in my-application-group that originates from the specified source address, and provides a detailed system log record of the rejected packets. The second term accepts Hypertext Transfer Protocol (HTTP) traffic from anyone to the specified destination address.
The following example shows use of source and destination prefix lists. This requires two separate configuration items.
You configure the prefix list at the [edit policy-options] hierarchy level:
You reference the configured prefix list in the stateful firewall rule:
This is equivalent to the following configuration:
You can use the except qualifier with the prefix lists, as in the following example. In this case, the except qualifier applies to all prefixes included in prefix list p2.
For additional examples that combine stateful firewall configuration with other services and with virtual private network (VPN) routing and forwarding (VRF) tables, see the configuration examples.
Related Documentation
- J, M, MX, T Series
- Example: Configuring Layer 3 Services and the Services SDK on Two PICs
- M, MX, T Series
- Example: BOOTP and Broadcast Addresses
- Example: NAT Between VRFs Configuration
- Example: Dynamic Source NAT as a Next-Hop Service
- Example: VPN Routing and Forwarding (VRF) and Service Configuration
- Example: Service Interfaces Configuration
Published: 2013-02-15
Related Documentation
- J, M, MX, T Series
- Example: Configuring Layer 3 Services and the Services SDK on Two PICs
- M, MX, T Series
- Example: BOOTP and Broadcast Addresses
- Example: NAT Between VRFs Configuration
- Example: Dynamic Source NAT as a Next-Hop Service
- Example: VPN Routing and Forwarding (VRF) and Service Configuration
- Example: Service Interfaces Configuration