redirect yes | no | on | off [{
preference preference ;
interface interface_list [noredirects | redirects] ;
trustedgateways gateway_list ;
traceoptions trace_options ; } ] ;
This statement controls whether ICMP redirects are allowed to modify
the kernel routing table. It does not prevent a system from sending
redirects, only from listening to them. If no or
off is specified, gated
attempts to remove the effects of ICMP redirects from the kernel
routing table whenever the redirects are detected. Remember that ICMP
is part of IP, and the redirects may be installed in the kernel table
before they are seen by gated. If you disable
redirects, gated actively removes the redirected
routes from the routing table. By default, ICMP redirects are enabled
on hosts that quietly listen to interior routing protocols, and
disabled on gateways that actively participate in interior routing
protocols.
The default preference of a route learned from a redirect is 30,
which can be changed with the preference option.
The interface statement controls how redirects are
handled on an interface-by-interface basis. Redirects are ignored if
noredirects is specified, and are permitted if
redirects, which is the default, is specified. The
trustedgateways statement enables redirects on a
gateway-by-gateway basis. By default, redirects are accepted from all
routers on the local network. If the
trustedgateways statement is used, only redirects
received from a gateway listed in the
gateway_list are accepted. The
gateway_list is simply a list of hostnames
or addresses. The trace_options defined on
the traceoptions statement are the standard
gated trace options.