Navigate to the Firewall level in the
configuration hierarchy.
|
- In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
- Next to Firewall, click Configure or Edit.
|
From the [edit] hierarchy level, enter
edit firewall
|
Define a firewall filter dest-all and a
filter term—for example, dest-term—to
capture packets with a particular destination address—for example, 192.168.1.1/32.
|
- Next to Filter, click Add new
entry.
- In the filter name box, type dest-all.
- Next to Term, click Add new entry.
- In the Rule name box, type dest-term.
- Next to From, click Configure.
- Next to Destination address, click Add new entry.
- In the Address box, type 192.168.1.1/32.
- Click OK until you return
to the Configuration page.
|
Set the filter and term name, and define the match condition
and its action.
set firewall filter dest-all term dest-term from destination-address
192.168.1.1/32
set firewall filter dest-all term dest-term then sample
accept
|
Navigate to the Interfaces level in the
configuration hierarchy.
|
In the configuration editor hierarchy, select Interfaces.
|
Enter
set interfaces fe-0/0/1 unit 0 family inet filter output
dest-all
|
Apply the dest-all filter to all the outgoing
packets on the interface—for example, fe-0/0/1.0.
(See the interface naming conventions in the JUNOS Software Interfaces and Routing Configuration Guide.)
|
- In the Interface name box, click fe-0/0/1.
- In the Interface unit number box, click 0.
- Next to Inet, select Yes,
and click Edit.
- Next to Filter, click Configure.
- In the Output box, type dest-all.
- Click OK until you return
to the Interfaces page.
|