USRobotics U.S. Robotics SureConnect ADSL Ethernet/USB Router Deleterule, Ruleid, Actiontype

Models: U.S. Robotics SureConnect ADSL Ethernet/USB Router

1 256
Download 256 pages 30.26 Kb
Page 170
Image 170

U.S. Robotics SureConnect ADSL Ethernet/USB Router User Guide

addrule 6 -o -sa 192.168.2.1 -da 192.168.3.4 -p icmp -dp >2334 -sp 4546 -tc 1 -fw 2

Packets with a source IP address of 192.168.2.1, a destination address of 192.168.3.4, a source port of 4546, and using an ICMP destination port greater than 2334 will have a source portprocessed by Traffic Conditioning action #1 and Firewall action #2.

1.23.2 deleterule

deleterule <rule_id> -[<action_type>]

Deletes a configured rule. The rule_id is a Rule Identifier that is returned by addrule. Rule Identifiers are also listed in the listrules command. If action_type is specified (as tc or fw), then only the action part is deleted and not the rule. If the action type is not specified or if the specified action type is the only action present in the rule, then the rule is also deleted.

<rule_id>

The rule identifier returned by addrule. Rule identifiers are also listed by listrules.

-<action_type>

The action_type option can be tc for Traffic Conditioning or fw for Firewall action. This deletes the action part of the rule.

Note: If the rule has only one action specified with it, the entire rule is deleted as well.

Examples:

deleterule 1

Deletes the rule whose identifier is 1.

deleterule 2 -tc

file:///P/T_WRITER/Documentation/Released/9003%20(Guinness)/User%20Guide/9003%20(Guiness)%20prac%20template/cli.htm (46 of 71) [11/6/2002 8:58:45 AM]

Page 170
Image 170
USRobotics U.S. Robotics SureConnect ADSL Ethernet/USB Router manual Deleterule, Ruleid, Actiontype