Operation Manual

253
Label Commands
E-DOC-CTC-20040210-0030 v1.0
label rule create
Create a rule.
Note If a value is preceded by a “!”, it means "NOT".
E.g. "srcintfgrp=!wan" means "if srcintfgrp is different from WAN".
SYNTAX:
where:
label rule create chain = <string>
[index = <number>]
[srcintf [!]= <string>]
[srcintfgrp [!]= <{wan|local|lan} or number>]
[src [!]= <ip-range>]
[dst [!]= <ip-address>]
[tos [!]= <number{0-255}>]
[precedence [!]= <number{0-7}>]
[dscp [!]= <number{0-63}>]
[prot = <{<supported IP protocol name>|<number>}>]
[srcport [!]= <{<supported TCP/UDP port name>|<number>}>]
[srcportend = <{<supported TCP/UDP port name>|<number>}>]
[dstport [!]= <{<supported TCP/UDP port name>|<number>}>]
[dstportend = <{<supported TCP/UDP port name>|<number>}>]
[clink = <string>]
[log = <{no|yes}>]
label = <{None|link|<string>}>
chain The name of the chain in which the rule must be inserted. REQUIRED
index The number of the rule before which the new rule must be added. OPTIONAL
srcintf The name of the interface the packet should arrive on to make this
rule apply.
OPTIONAL
srcintfgrp The interface group the packet should arrive on. OPTIONAL
src The source IP address (range) the packet should come from.
(Supports ip/mask notation).
OPTIONAL
dst The destination IP address (range) the packet should be going to.
(Supports ip/mask notation).
OPTIONAL
tos A number between 0 and 255.
Represents the Type Of Service specification which should be
expected in the IP packet. The Type of Service numbering
specification is in accordance to the latest version of RFC1700:
Assigned numbers.
OPTIONAL
precedence A number between 0 and 7.
Represents the precedence in the IP packet (is part of tos).
OPTIONAL
dscp A number between 0 and 63.
Represents the DSCP in the IP packet (part of tos).
OPTIONAL