HP VPN Firewall Appliances Access Control Command Reference

Table Of Contents
14
time-range time-range-name: Specifies a time range for the rule. The time-range-name argument is a
case-insensitive string of 1 to 32 characters. It must start with an English letter. If the time range is not
configured, the system creates the rule. However, the rule using the time range can take effect only after
you configure the timer range.
Usage guidelines
Within an ACL, the permit or deny statement of each rule must be unique. If the ACL rule you are creating
or editing has the same deny or permit statement as another rule in the ACL, your creation or editing
attempt fails.
To view rules in an ACL and their rule IDs, use the display acl all command.
Examples
# Create a rule in ACL 4000 to permit ARP packets and deny RARP packets.
<Sysname> system-view
[Sysname] acl number 4000
[Sysname-acl-ethernetframe-4000] rule permit type 0806 ffff
[Sysname-acl-ethernetframe-4000] rule deny type 8035 ffff
Related commands
acl
display acl
step
time-range
rule (IPv4 advanced ACL view)
Use rule to create or edit an IPv4 advanced ACL rule. You can edit ACL rules only when the match order
is config.
Use undo rule to delete an entire IPv4 advanced ACL rule or some attributes in the rule. If no optional
keywords are provided, this command deletes the entire rule. If optional keywords or arguments are
provided, this command deletes the specified attributes.
Syntax
rule [ rule-id ] { deny | permit } protocol [ { { ack ack-value | fin fin-value | psh psh-value | rst rst-value
| syn syn-value | urg urg-value } * | established } | counting | destination { dest-address dest-wildcard
| any } | destination-port operator port1 [ port2 ] | dscp dscp | fragment | icmp-type { icmp-type
[ icmp-code ] | icmp-message } | logging | precedence precedence | reflective | source
{ source-address source-wildcard | any } | source-port operator port1 [ port2 ] | time-range
time-range-name | tos tos | vpn-instance vpn-instance-name ] *
undo rule rule-id [ { { ac
k | fin | psh | rst | syn | ur
g } * | established } | counting | destination |
destination-port | dscp | fragment | icmp-type | logging | precedence | reflective | source |
source-port | time-range | tos | vpn-instance ] *
Default
An IPv4 advanced ACL does not contain any rule.
Views
IPv4 advanced ACL view