Firewall Commands
firewall rule modify
Modify a firewall rule.
SYNTAX:
firewall rule modify
i
If a value is preceded by a "!", it means NOT.
For example "srcintf=!wan" means "if the source interface is different from WAN".
where:
chain
index
newindex
name
clink
srcintf
srcip
dstintf
dstip
serv
log
state
action
RELATED COMMANDS:
firewall rule delete
expr list
E-DOC-CTC-20061027-0012 v2.0
chain = <string>
index = <number>
[newindex = <number>]
[name = <string>]
[clink = <chain name>]
[srcintf [!]= <string>]
[srcip [!]= <string>]
[dstintf [!]= <string>]
[dstip [!]= <string>]
[serv [!]= <string>]
[log = <{disabled | enabled}>]
[state = <{disabled | enabled}>]
[action = <action>]
The name of the chain which contains the rule.
The number of the rule in the chain.
The number of the rule in the chain.
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 interface expression.
The name of the destination IP expression.
The name of the service expression.
Disable or enable logging when this rule applies.
Disable or enable this rule.
The action to be taken when this rule applies ('link' when clink
is used).
Delete a firewall rule.
List the expressions.
REQUIRED
REQUIRED
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
371