tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Derk Tegeler <derk.tegeler () cmg ! nl>
To: tru64-unix-managers
Subject: SUMMARY: Preventing ICMP redirects
Date: Fri, 23 Mar 2001 13:33:36 +0000	[thread overview]
Message-ID: <98535433522433.tru64-unix-managers.marc@archive.invalid> (raw)

With thanks to Bryan Lavelle for the dbx part.

The problem: many network devices that may act as router believe that they
are alone (Brands Apollo access server, some 3com devices,...) and broadcast
ICMP-redirect packets, thus modifying the default route on hosts. Although
the ICMP-redirect mechanism is correct behaviour from a host point of vue it
is a many cases not desired and is a security risk.

The solution: on a running kernel set icmp_rejectcodemask=0x20 as follows

dbx -k /vmunix
...
(dbx) assign icmp_rejectcodemask=0x20
32
(dbx)

An alternative to the above is to use "patch" instead of "assign", making
the modification impermanent, i.e. the kernel will resume normal behaviour
at the next reboot.

The ICMP_REDIRECT bit is the 6th bit in the icmp part of the IP header (bit
number 5). By setting the 6th bit in the mask above, the kernel will reject
(ignore, drop) all icmp redirect packets.

Regards,

Derk Tegeler

-----Original Message-----
From: Derk Tegeler [mailto:derk.tegeler@cmg.nl]
Sent: Friday, March 23, 2001 10:09
To: 'tru64-unix-managers@ornl.gov'
Subject: Preventing ICMP redirects


Hi,

Does anybody know how to prevent ICMP-redirect from modifying a default
(static) route?

Note the M flag on the default route, in the routing table below.

PS: t64 v4.0f

Regards,

Derk Tegeler

# netstat -rn
Routing tables
Destination      Gateway            Flags     Refs     Use  Interface
Netmasks:
Inet             0.0.0.0
Inet             255.255.255.0

Route Tree for Protocol Family 2:
default          192.168.102.233    UGMS        2   108267  tu0
...

                 reply	other threads:[~2001-03-23 13:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox