USRobotics U.S. Robotics SureConnect ADSL Ethernet/USB Router User Manual

Page 179

Advertising
background image

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
0 unreach net (default)
1 unreach host
3 unreach port
5 unreach srcfail
6 unreach net-unknown
7 unreach host-unknown
8 unreach isolated
9 unreach net-prohibited
10 unreach host-prohibited
13 unreach 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]

Advertising