From: Charles-Edouard Ruault <cruault@724.com>
To: linux-kernel@vger.kernel.org
Subject: [UPDATED] Problem on Linux 2.4 with usage of ip_default_ttl
Date: Wed, 20 Mar 2002 16:56:52 -0800 [thread overview]
Message-ID: <3C992FD4.6010705@724.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1672 bytes --]
attached is an updated patch fixing the following problem ( i missed one
place where a change was needed in the patch that was posted yesterday ... )
--------------------------------original message -----------------------
Here's a small bug i've discovered yesterday in linux 2.4.18 :
On Linux you can "customize" the default ttl that will be used in all
the IP packets that the box will be sending ( using
/proc/sys/net/ipv4/ip_default_ttl ) .
One of the main reasons to do that , as it has been said in many
articles, is to make your machine a little bit more difficult to
fingerprint.
However, while playing with this feature, i've discovered that the
current kernel ( 2.4.18 ) and probably earlier versions, don't use this
default value when generating the following packets :
- ICMP reply ( of any kind ) and ICMP error messages
- TCP RST .
They instead use hardcoded values ( MAXTTL ).
From what i've seen all the other IP packets are using the value set by
/proc/sys/net/ipv4/ip_default_ttl ( provided that the socket has been
created after changing the value ).
Therefore, changing the ip_default_ttl on a standard kernel might do the
opposite of what you're trying to achieve : make it much easier for an
attacker to fingerprint your os....
By sending a few packets to the target host, you can see wether the
default ttl has been changed on the machine and therefore enforce other
findings about the host.
I've written a small patch ( against kernel 2.4.18 ) that fixes this
behaviour. I'm attaching it to this email.
comments are welcome.
PS : please CC me in replies to this email, i have not subscribed to the
list.
--
Charles-Edouard Ruault
[-- Attachment #2: default_ttl.patch.gz --]
[-- Type: application/x-gzip, Size: 711 bytes --]
next reply other threads:[~2002-03-21 1:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-21 0:56 Charles-Edouard Ruault [this message]
2002-03-22 5:49 ` [UPDATED] Problem on Linux 2.4 with usage of ip_default_ttl David S. Miller
2002-03-22 6:42 ` Charles-Edouard Ruault
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C992FD4.6010705@724.com \
--to=cruault@724.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox