* Tru64 Unix and ICMP timestamp requests
@ 2000-03-10 5:00 Jimmy Kelley
2000-03-13 5:00 ` Jeffrey Mogul
0 siblings, 1 reply; 2+ messages in thread
From: Jimmy Kelley @ 2000-03-10 5:00 UTC (permalink / raw)
Is there some way to disable responses to ICMP timestamp requests in Tru64
UNIX v 4.0f?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Tru64 Unix and ICMP timestamp requests
2000-03-10 5:00 Tru64 Unix and ICMP timestamp requests Jimmy Kelley
@ 2000-03-13 5:00 ` Jeffrey Mogul
0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey Mogul @ 2000-03-13 5:00 UTC (permalink / raw)
In article <V3cy4.16878$ys3.106419@telenews.teleline.es>, "Jimmy Kelley" <jimmy@federated.com> writes:
|> Is there some way to disable responses to ICMP timestamp requests in Tru64
|> UNIX v 4.0f?
I checked the source code; there is indeed a way, although it
takes a little explanation.
There's a kernel global variable (in 4.0F; I'm not sure about
earlier releases) called "icmp_rejectcodemask". This is a
bit mask, where each bit corresponds to an ICMP message type
code. If a bit is set, incoming messages with the corresponding
type are not handled by the ICMP protocol code (although they
ARE passed along to the raw-IP input code).
You can set multiple bits, to disable multiple ICMP types.
To disable responses to ICMP timestamp requests, for example,
in C the appropriate assignment would be:
icmp_rejectcodemask |= (1<<ICMP_TSTAMP);
Looking in /usr/include/netinet/ip_icmp.h, we find
#define ICMP_TSTAMP 13 /* timestamp request */
and (1<<13) = 8192. So, to disable responses to ICMP_TIMESTAMP,
you would set icmp_rejectcodemask = 8192.
Currently, the only way to change this variable (so far as I know)
is via dbx; instructions are at
http://www.unix.digital.com/internet/tuning.htm#mod_atts
I was told by the kernel engineers that "we are adding this to the
on-line internet server tuning guide for the next revision. It
keeps coming up lately."
-Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-03-13 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-10 5:00 Tru64 Unix and ICMP timestamp requests Jimmy Kelley
2000-03-13 5:00 ` Jeffrey Mogul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox