Skip to contentSkip to conversation

stop uptime and name + version querying

DISCUSSION Brent Clark 2 participants 4 messages Apr 12, 2005

lore
Share & tools
lore
#0 lore raw

Hi

I would like to know if iptables is the correct tool to stop people from retriving data, such as what "NAME" of services I run (e.g vsFTPd) and other things like (Uptime 90.302 days (since Wed Jan 12 03:08:12 2005)) etc

And if so, how would you go about stoping the querys etc.

Does anyone know what service nmap talks to, to determine how long the box has been up and running for. Just something I was thinking, kind regards

Brent Clark

Copy and paste below:
=====================================================

[root@ns root]# nmap -sV -P0 -O 1.2.3.4

Starting nmap 3.48 ( http://www.insecure.org/nmap/ ) at 2005-04-12 11:23 BST Interesting ports on abc.abc.abc (1.2.3.4):
(The 1652 ports scanned but not shown below are in state: closed)

PORT      STATE SERVICE VERSION
21/tcp    open  ftp     vsFTPd
22/tcp    open  ssh     OpenSSH 3.6.1p2 (protocol 1.99)
25/tcp    open  smtp    Exim smtpd 4.50
80/tcp    open  http    Apache httpd 2.0.50 ((Fedora))

10000/tcp open http Webmin httpd
Device type: general purpose
Running: Linux 2.4.X|2.5.X
OS details: Linux Kernel 2.4.0 - 2.5.20 Uptime 90.302 days (since Wed Jan 12 03:08:12 2005)

Nmap run completed -- 1 IP address (1 host up) scanned in 12.841 seconds

#1 lore raw
Quoted 11 lines · Brent Clark

Hi

I would like to know if iptables is the correct tool to stop people from retriving data, such as what "NAME" of services I run (e.g vsFTPd) and other things like (Uptime 90.302 days (since Wed Jan 12 03:08:12 2005)) etc

And if so, how would you go about stoping the querys etc.

Does anyone know what service nmap talks to, to determine how long the box has been up and running for.
Just something I was thinking, kind regards

just a stab in the dark, but what does:

sysctl net.ipv4.tcp_timestamps

have to say?

-j

--
"Janet: Hi. Cookie?
Stewie: Well, it's Stewie, but... you can call me "cookie" if you like. Yes, I also answer to "Artemis," "Agent Buckwald" and "Snake." Yes, I rather like "Snake." Snake."
--Family Guy

#2 lore raw
Quoted 6 lines · Jason Opperisano

just a stab in the dark, but what does:

sysctl net.ipv4.tcp_timestamps

have to say?

[root@ns modules]# sysctl net.ipv4.tcp_timestamps
net.ipv4.tcp_timestamps = 1
[root@ns modules]#

Why
Is this something I can learn from (HOPE SO).

Thanks
Brent Clark

P.s. How do I do this (sysctl net.ipv4.tcp_timestamps) on a Debian box

#3 lore raw
Quoted 11 lines · Brent Clark

[root@ns modules]# sysctl net.ipv4.tcp_timestamps
net.ipv4.tcp_timestamps = 1
[root@ns modules]#

Why
Is this something I can learn from (HOPE SO).

Thanks
Brent Clark

P.s. How do I do this (sysctl net.ipv4.tcp_timestamps) on a Debian box

man 8 sysctl would be a good place to start for that answer, but...

sysctl -w net.ipv4.tcp_timestamps=0

would be a good start. see if that helps with the nmap uptime query.

if so, add the setting to /etc/sysctl.conf (man 5 sysctl.conf for syntax) to survive reboots.

-j

--
"Peter: At least they don't put their feminine ointments next to the
mustard, Lois. That was the worst hot dog I ever ate."
--Family Guy