Nmap Development mailing list archives

Choosing appropiate src ip address


From: SuD <sud_NOSPAM () latinsud com>
Date: Sun, 09 Jul 2006 17:23:42 +0200

Hi, i'm using nmap 3.81 (debian sarge, kernel 2.6.15.6) and i have a 
problem when i have several ip addresses on interface.

For example, if i have this configuration:

eth1      Link encap:Ethernet
          inet addr:192.168.0.33  Bcast:192.168.0.255  Mask:255.255.255.0

eth1:1    Link encap:Ethernet
          inet addr:192.168.1.36  Bcast:192.168.1.255  Mask:255.255.255.0

And i try nmap -n -sP 192.168.1.1, i get no reply, nmap cannot ping it.
When i take a closer look with tcpdump i see that it is sending from 
192.168.0.33 to 192.168.1.1, which won't work, as it should have choosen 
192.168.1.36 as src address.

# tcpdump -n
17:10:38.059336 IP 192.168.0.33 > 192.168.1.1: ICMP echo request, id 
32944, seq 21607, length 8
17:10:38.059507 IP 192.168.0.33.37145 > 192.168.1.1.80: . ack 2472138014 
win 4096

Shouldn't nmap autochoose interface and/or src address? Is my version 
too old?
Thanks



_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev


Current thread: