Label Commands
label rule add
Add a label rule.
SYNTAX:
label rule add
i
If a value is preceded by a "!", it means NOT.
For example "srcintf=!wan" means "if srcintf is different from WAN".
where:
chain
index
name
clink
srcintf
srcip
dstip
serv
log
state
label
E-DOC-CTC-20061027-0012 v2.0
chain = <chain name>
[index = <number>]
[name = <string>]
[clink = <chain name>]
[srcintf [!]= <string>]
[srcip [!]= <{ip address | private}>]
[dstip [!]= <{ip address | private}>]
[serv [!]= <{service name}>]
[log = <{disabled | enabled}>]
[state = <{disabled | enabled}>]
label = <string>
The name of the chain in which the rule must be inserted.
The index number of the rule before which the new rule must
be added.
Use the command :label rule list to obtain the
Tip
index number of the applicable rule.
The name of the new rule.
The name of the chain to be parsed when this rule applies.
The name of the source interface expression.
The name of the source IP expression.
The name of the destination IP expression.
The name of the service expression.
Disable or enable logging when this rule applies.
The default is disabled.
Disable or enable this rule.
The default is enabled.
Choose between:
>
None
>
link (when clink is used)
>
label name.
REQUIRED
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
REQUIRED
501