Supported Platforms
Related Documentation
- LN, M, MX, SRX, T Series
- Configuring the Filter Profile
- Configuring the Interface Profile
Example: Configuring Interface-Specific Firewall Counters and Filter Profiles
To collect and log count statistics collected by firewall filters on a per-interface basis, you must configure a filter profile and include the interface-specific statement at the [edit firewall filter filter-name] hierarchy level.
Configure the firewall filter accounting profile:
Configure the interface-specific firewall counter:
Apply the firewall filter to an interface:
The following example shows the contents of the cust1_accounting file in the /var/log folder that might result from the preceding configuration:
#FILE CREATED 995495212 2001-07-18-22:26:52 #hostname host #profile-layout cust1_profile,epoch-timestamp,interfaces,filter-name, counter-name,packet-count,byte-count cust1_profile,995495572,xe-1/0/0.0,f3-xe-1/0/0.0-i,r1-xe-1/0/0.0-i,5953,1008257 cust1_profile,995495602,xe-1/0/0.0,f3-xe-1/0/0.0-o,r1-xe-1/0/0.0-o,5929,1006481 ...
If the interface-specific statement is not included in the configuration, the following output might result:
#FILE CREATED 995495212 2001-07-18-22:26:52 #hostname host #profile-layout cust1_profile,epoch-timestamp,interfaces,filter-name, counter-name,packet-count,byte-count cust1_profile,995495572,xe-1/0/0.0,f3,r1,5953,1008257 cust1_profile,995495632,xe-1/0/0.0,f3,r1,5929,1006481
Related Documentation
- LN, M, MX, SRX, T Series
- Configuring the Filter Profile
- Configuring the Interface Profile
Published: 2015-02-25
Supported Platforms
Related Documentation
- LN, M, MX, SRX, T Series
- Configuring the Filter Profile
- Configuring the Interface Profile