Label rule add, Add a label rule, Label commands – Technicolor - Thomson ST585 V6 User Manual

Page 519: Syntax

Advertising
background image

E-DOC-CTC-20061027-0004 v1.0

Label Commands

495

label rule add

Add a label rule.

SYNTAX:

where:

label rule add

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>

i

If a value is preceded by a “!”, it means NOT.
For example “srcintf=!wan” means “if srcintf is different from WAN”.

chain

The name of the chain in which the rule must be inserted.

REQUIRED

index

The index number of the rule before which the new rule must
be added.

Tip

Use the command

:label rule list to obtain the

index number of the applicable rule.

OPTIONAL

name

The name of the new rule.

OPTIONAL

clink

The name of the chain to be parsed when this rule applies.

OPTIONAL

srcintf

The name of the source interface expression.

OPTIONAL

srcip

The name of the source IP expression.

OPTIONAL

dstip

The name of the destination IP expression.

OPTIONAL

serv

The name of the service expression.

OPTIONAL

log

Disable or enable logging when this rule applies.
The default is

disabled

.

OPTIONAL

state

Disable or enable this rule.
The default is

enabled

.

OPTIONAL

label

Choose between:

>

None

>

link (when clink is used)

>

label name.

REQUIRED

Advertising