beautypg.com

Expr add, Add a subexpression to an expression, Expr commands – Technicolor - Thomson ST585 V6 User Manual

Page 344

background image

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

Expr Commands

320

expr add

Add a subexpression to an expression.

SYNTAX:

where:

expr add

name =
type = <{intf | ip | serv}>
addr [!]=
[intf [!]= ]
[intfgroup [!]= <{wan|local|lan|tunnel|dmz|guest} or number>]
[tos [!]= ]
[precedence [!]= or ]
[dscp [!]= or ]
[proto = or ]
[srcport [!]= or ]
[srcportend = or ]
[dstport [!]= or ]
[dstportend = or ]
[icmptype [!]= or ]
[icmpcode [!]= ]
[icmpcodeend = ]

i

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

name

The name of an existing expression.

REQUIRED

type

The expression type.
Choose between:

>

intf

>

ip

>

serv.

REQUIRED

addr

The IP address (or range). Supports ip/mask notation.

Note

Only for expression type

ip

.

REQUIRED

intf

The IP interface name.

Note

Only for expression type

intf

.

OPTIONAL