LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-20-2007, 01:38 PM   #1
Lola Kews
Member
 
Registered: May 2004
Posts: 549

Rep: Reputation: 38
How to see exactly what "External" ports are open?


SUSE Open 10.3
Is there a way to see exactly what external ports are open in a software firewall?
 
Old 11-20-2007, 01:51 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Try using nmap.
 
Old 11-21-2007, 12:56 PM   #3
Lola Kews
Member
 
Registered: May 2004
Posts: 549

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by pljvaldez View Post
Try using nmap.
I don't know how to use it, can you explain?
 
Old 11-21-2007, 01:06 PM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Code:
man nmap
scroll down to "examples"
Quote:
nmap -sS -O scanme.nmap.org/24

Launches a stealth SYN scan against each machine that is up out of the
255 machines on "class C" network where Scanme resides. It also tries
to determine what operating system is running on each host that is up
and running. This requires root privileges because of the SYN scan and
OS detection.
That way then..

If you refer to iptables, a software firewall installed on the machine you're working on, then the answer is: everything that's not specifically declared to be something else than policy, is dealt with as the policy says. Or "if policy is to drop/deny, everything is dropped that is not explicitly allowed", or "if policy is to allow, then everything is allowed that is not explicitly denied".
Code:
/sbin/iptables -L
shows you the current iptables configuration. Empty tables mean no rules, which means no policies, which means everything can go without restrictions.

Just as a note, I don't always get what people refer to with "software" firewalls (or their counterparts, "hardware" firewalls). After all if the bits are inspected and dealt with, it's software that does it - a hardware firewall would mean, to me, a physical machine that would inspect the currents that run trough the cables, or light if optics is used instead, and then either stop it from getting where it wants or allowing it to continue. As most firewalls probably don't ask the electrons or photons where they might be going, I consider most firewalls software firewalls even if they carry a "Cisco" logo and come in heavy green steel boxes.
 
Old 11-22-2007, 10:30 AM   #5
Lola Kews
Member
 
Registered: May 2004
Posts: 549

Original Poster
Rep: Reputation: 38
Hate to be pestering you but when I tried to run nmap -sS -O scanme.nmap.org/24 I get a command not found.
 
Old 11-22-2007, 02:13 PM   #6
wet
Member
 
Registered: Jul 2007
Distribution: Slackware 12, Fedora 8, Gentoo. (NO MORE MANDRIVA, GO AWAY EVIL THING)
Posts: 37

Rep: Reputation: 15
try downloading it then?

http://insecure.org/nmap/

and when you got it, just do a:
Code:
$ nmap localhost
best do that as root, since root does a SYN scan (that's the -sS flag, no need to supply it if you're root) by default, instead of the ugly connect() scan used by normal users

Last edited by wet; 11-22-2007 at 02:20 PM.
 
  


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
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Ubuntu's "No Open Ports!" policy questioned by Avahi developer LXer Syndicated Linux News 0 07-27-2006 05:33 AM
Display open ports "Confused :S" ALInux Linux - Networking 8 12-13-2005 06:09 AM
"How to check and open ports in Linux" tux4j Linux - Networking 4 09-14-2005 04:56 PM
USB external CD-RW: cdrecord "cannot open SCSI driver" Avatar Linux - Hardware 10 04-07-2004 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:28 AM.

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