* SUMMARY: Preventing ICMP redirects
@ 2001-03-23 13:33 Derk Tegeler
0 siblings, 0 replies; only message in thread
From: Derk Tegeler @ 2001-03-23 13:33 UTC (permalink / raw)
To: tru64-unix-managers
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
...
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-23 13:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-23 13:33 SUMMARY: Preventing ICMP redirects Derk Tegeler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox