|
Navigate to the Policy options level in
the configuration hierarchy.
|
- In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
- Next to Policy options, click Configure or Edit.
|
From the [edit] hierarchy level, enter
edit policy-options
|
|
Define the prefix list trusted-addresses.
|
- Next to Prefix list, click Add new entry.
- In the Name box, type trusted-addresses.
- Next to Prefix list item, click Add new entry.
- In the Prefix box, type 192.168.122.0/24.
- Click OK.
- Next to Prefix list item, click Add new entry.
- In the Prefix box, type 10.2.1.0/24.
- Click OK three times.
|
Set the prefix list:
set prefix-list trusted-addresses 192.168.122.0/24
set prefix-list trusted-addresses 10.2.1.0/24
|
|
Navigate to the Firewall level in the configuration
hierarchy.
|
On the main Configuration page next to Firewall, click Configure or Edit.
|
From the [edit] hierarchy level, enter
edit firewall
|
|
Define protect-RE and tcp-connection-term,
and define the source prefix list match condition.
|
- Next to Filter, click Add new
entry.
- In the Filter name box, type protect-RE.
- Next to Term, click Add New Entry.
- In the Rule name box, type tcp-connection-term.
- Next to From, click Configure.
- Next to Source prefix list, click Add new entry.
- In the Name box, type trusted-addresses.
- Click OK.
|
Set the term name and define the source address match condition:
set family inet filter protect-RE term tcp-connection-term
from source-prefix-list trusted-addresses
|
|
Define the TCP flags and protocol match conditions for tcp-connection-term.
|
- In the TCP flags box, type (syn & !ack) | fin | rst.
- In the Protocol choice list, select Protocol.
- Next to Protocol, click Add new
entry.
- In the Value keyword list, select tcp.
- Click OK.
|
Set the TCP flags and protocol and protocol match conditions
for the term:
set family inet filter protect-RE term tcp-connection-term
from protocol tcp tcp-flags "(syn & !ack) | fin | rst"
|
|
Define the actions for tcp-connection-term.
|
- On the Term tcp-connection-term page,
next to Then, click Configure.
- In the Policer box, type tcp-connection-policer.
- In the Designation list, select Accept.
- Click OK twice.
|
Set the actions:
set family inet filter protect-RE term tcp-connection-term
then policer tcp-connection-policer accept
|
|
Define icmp-term, and define the protocol.
|
- On the Filter protect-RE page, next
to Term, click Add New Entry.
- In the Rule name box, type icmp-term.
- Next to From, click Configure.
- In the Protocol choice list, select Protocol.
- Next to Protocol, click Add new
entry.
- In the Value keyword list, select icmp.
- Click OK.
|
Set the term name and define the protocol:
set family inet filter protect-RE term icmp-term
from protocol icmp
|
|
Define the ICMP type match conditions.
|
- In the Icmp type choice list, select Icmp type.
- Next to Icmp type, click Add new
entry.
- In the Value keyword list, select echo-request.
- Click OK.
- Next to Icmp type, click Add new entry.
- In the Value keyword list, select echo-reply.
- Click OK.
- Next to Icmp type, click Add new entry.
- In the Value keyword list, select unreachable.
- Click OK.
- Next to Icmp type, click Add new entry.
- In the Value keyword list, select time-exceeded.
- Click OK.
|
Set the ICMP type match conditions:
set family inet filter protect-RE term icmp-term
from icmp-type [echo-request echo-reply unreachable time-exceeded]
|
|
Define the actions for icmp-term.
|
- On the icmp-term page, next to Then,
click Configure.
- In the Count box, type icmp-counter.
- In the Policer box, type icmp-policer.
- In the Designation list, select Accept.
- Click OK four times.
|
Set the actions:
set family inet filter protect-RE term icmp-term
then policer icmp-policer count icmp-counter accept
|