LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-27-2006, 05:36 AM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 636

Rep: Reputation: 34
Cant nmap from but can nmap to


Hi

I have a machine redhat es3 with updat 7, tried to nmap from this machine A to machine B and it gives a error

"host is down or it is blocking the ping messages ....."

Lets say

A 192.168.11.11
B 192.168.11.76

From A

I can ping any machine

I can nmap localhost and nmap 192.168.11.11

But from A I cant nmap to any host

From B

I can ping any machine

I can nmap 192.168.11.11 or nmap 192.168.11.76 any host and its works

Why is this happening


Thanks

Regards

Asanka
 
Old 07-27-2006, 10:36 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Does machine A perhaps have iptables rules blocking certain types of outbound traffic?
 
Old 07-30-2006, 10:46 PM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 636

Original Poster
Rep: Reputation: 34
Hi Matir

No there are no Itables running,

I just change the NIC card it seems to work. Can this happen like for some type of packets to pass (ping, nfs share etc) and like nmap to be blocked by a defective NIC

Thank you
Regards

Asanka
 
Old 07-31-2006, 06:31 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
As described on the nmap man page, ping scans (icmp echo request messages) are used.
If A's NIC doesn't work properly or if the pings are blocked, then nmap won't work.
 
Old 07-31-2006, 01:33 PM   #5
ckin2001
LQ Newbie
 
Registered: Jul 2006
Location: Chambana
Distribution: debian
Posts: 17

Rep: Reputation: 0
nmap by default will not scan any host that does not respond to a ping request. In order to get around this restriction - use the option -P0 when invoking nmap, i.e.

nmap -P0 -O remotehost
 
Old 07-31-2006, 09:45 PM   #6
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 636

Original Poster
Rep: Reputation: 34
Thats the thing I can ping from A to B and B to A and I tried nmap -P0 -O hostname but it still th esame.

I can nmap to A from B and to A localhost but not from B to A
 
Old 08-01-2006, 02:08 AM   #7
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
You do know that A's localhost interface isn't in any way reachable from B, right?
If A's services are listening on the localhost interface, then B can't use them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nmap ? how do i do nmap in linux ? command not found abbasakhtar Linux - Newbie 2 01-02-2011 01:08 AM
Nmap h4z Yoper 4 12-09-2004 02:09 AM
Nmap 3.50 igor8 Linux - Software 5 06-03-2004 12:00 PM
nmap -O sopiaz57 Linux - Security 3 01-04-2004 09:09 AM
nmap sopiaz57 Linux - Software 2 09-16-2003 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration