LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Yoper
User Name
Password
Yoper This forum is for the discussion of Yoper Linux.

Notices


Reply
  Search this Thread
Old 11-28-2004, 07:26 AM   #1
h4z
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Rep: Reputation: 0
Nmap


I need your help guys , i am trying to use nmap on yoper , but it seems the GuardDog is blocking its port , i just need to know which port must i let access so that nmap can work
 
Old 11-30-2004, 01:01 AM   #2
steve_v
LQ Newbie
 
Registered: Aug 2004
Distribution: Gentoo
Posts: 28

Rep: Reputation: 16
Nmap by it's very nature scans the ports you tell it to scan. It is a port scanner after all :-)
So... If you want to scan port X on a remote machine, you need to unblock port X on yours.

I sincerley hope you are not one of those try hard "hackers", if you don't know what nmap does or how it works then you don't need to use it. No offence intended if you have a legit reason to be port scanning people :-)


Steve.
 
Old 11-30-2004, 07:13 AM   #3
kernowyon
Member
 
Registered: Nov 2004
Location: Cornwall, UK
Distribution: Yoper
Posts: 43

Rep: Reputation: 15
Quote:
Originally posted by steve_v
Nmap by it's very nature scans the ports you tell it to scan. It is a port scanner after all :-)
So... If you want to scan port X on a remote machine, you need to unblock port X on yours.

I sincerley hope you are not one of those try hard "hackers", if you don't know what nmap does or how it works then you don't need to use it. No offence intended if you have a legit reason to be port scanning people :-)


Steve.
Seconded Nmap is a very useful program, but it can also be used for less useful purposes - as can any of the port scanning tools available.
Its worth remembering that if you decide to scan outside your own network, then any half decent sysadmin will detect your attempts and report any unrequested scan to your ISP - thus losing your account . Always ensure you get written permission from whoever is in charge of any network you scan - its very easy to end up accused of illegal activities.
 
Old 12-07-2004, 10:30 AM   #4
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
Quote:
Originally posted by steve_v
So... If you want to scan port X on a remote machine, you need to unblock port X on yours.
This is not true. The outgoing port on the machine where nmap is run does definitely not have to be the same as the one you scan. You would need a lot of ports open for that What you do need is a firewall which lets out (in iptables lingo) NEW and, in fact (since nmap can construct really odd packets for certain scan modes), INVALID packets, and lets in ESTABLISHED and (for nmap purposes possibly, for general purposes definitely) RELATED packets. Of course a firewall like this would not be very useful unless you also let out ESTABLISHED and RELATED packets.

This sets up a rudimentary iptables firewall for a stand-alone box not running any services:
Code:
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

iptables -A OUTPUT -o lo -j ACCEPT
iptables -A OUTPUT -o eth0 -m state --state NEW,ESTABLISHED,RELATED,INVALID -j ACCEPT

iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
 
Old 12-09-2004, 02:09 AM   #5
steve_v
LQ Newbie
 
Registered: Aug 2004
Distribution: Gentoo
Posts: 28

Rep: Reputation: 16
I stand corrected :-)
 
  


Reply



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 Off
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 lgilleran Linux - Newbie 1 07-27-2005 05:50 AM
nmap -O sopiaz57 Linux - Security 3 01-04-2004 09:09 AM
nmap sopiaz57 Linux - Software 2 09-16-2003 08:32 PM
nmap psyklops Linux - General 4 08-27-2003 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Yoper

All times are GMT -5. The time now is 11:01 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