You can apply a stateless firewall to the input or output sides, or both, of an interface. To filter packets transiting the device, apply the firewall filter to any non-Routing Engine interface. To filter packets originating from, or destined for, the Routing Engine, apply the firewall filter to the loopback (lo0) interface.
For example, to apply the firewall filter protect-RE to the input side of the Routing Engine interface, follow this procedure:
Table 173: Applying a Firewall Filter to the Routing Engine Interface
|
Task |
J-Web Configuration Editor |
CLI Configuration Editor |
|---|---|---|
|
Navigate to the Inet level in the configuration hierarchy. (See the interface naming conventions in Network Interface Naming.) |
|
From the [edit] hierarchy level, apply the filter to the interface: set interfaces lo0 unit 0 family inet filter input protect-RE |
|
Apply protect-RE as an input filter to the lo0 interface. |
|
To view the configuration of the Routing Engine interface, enter the show interfaces lo0 command. For example:
- user@host# show interfaces lo0
- unit 0 {
-
- family inet {
-
- filter {
- input protect-RE;
- }
- address 127.0.0.1/32;
- }
- }