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

-code <icmp_code>

This ICMP error code is issued when the unreach action is used.

Code Meaning

0unreach net (default)

1unreach host

3unreach port

5unreach srcfail

6unreach net-unknown

7unreach host-unknown

8unreach isolated

9unreach net-prohibited

10unreach host-prohibited

13unreach filter-prohibited

Examples:

addfw reset –o -ifa atm0

addrule 6 -da 216.11.52.34 -dp 23 -p tcp -fw 1

The rules above, results in all attempts via telnet from any host to 216.11.52.34 being reset. First, the addfw command defines the firewall action of reset for the traffic coming from the atm0 interface. The addfw command returns an identifier, suppose for this example that 1 is returned. Next, the addrule command defines telnet from any host to 216.11.52.34 and using the - fw option it

links the reset action as specified with the addfw command.

addfw unreach –o -code 1

addrule 6 -da 192.168.7.25 -p icmp -fw 3

The two rules above specify that all ICMP packets destined to 192.168.7.25 will result in the

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

Page 179
Image 179
USRobotics U.S. Robotics SureConnect ADSL Ethernet/USB Router manual Code icmpcode, Code Meaning