Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-18-2010, 06:39 PM   #1
Registered: Sep 2007
Location: Chandler, AZ
Posts: 225

Rep: Reputation: 20
TCP port shows as closed, but no firewall

nmap is showing a port as closed. I have the firewall stopped on both hosts. It shows as closed on localhost as well. The process that's listening to that port is not started from xinetd so i doubt hosts.allow/deny is the issue. I can't help but feel that I'm forgetting some other access control mechanism. Both hosts are RHEl5.4
Old 02-18-2010, 06:58 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. Definitely focus on getting it to work on "localhost" first.

2. I assume this is probably a TCP port (rather than UDP). If so, you can use "telnet localhost PORT#" to check connectivity. Taking a wireshark trace might also be helpful.

3. Yes, your firewall/iptables is definitely the first thing to look at.

Perhaps SELinux might be the second thing to look at.

4. In any case, these links might help:

Please post back what you find!
Old 02-18-2010, 07:14 PM   #3
Registered: Sep 2007
Location: Chandler, AZ
Posts: 225

Original Poster
Rep: Reputation: 20
Originally Posted by paulsm4 View Post

Perhaps SELinux might be the second thing to look at.
Screw me, that's probably it.

Always Blame SElinux.
Old 02-18-2010, 07:16 PM   #4
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Well ... the first thing will always be:

netstat -an | grep <port in question>

to see whether the process is actually up & running.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
firefox get closed when downloading anything from net, shows no err(rhel5) cool47 Linux - Newbie 2 03-29-2008 12:11 PM shows 12345 closed (unsecure). Please help to secure it. khurdp Linux - Security 11 01-03-2006 08:38 AM
how closed 6000/tcp - X in MDK 9.1 WannaLearnLinux Linux - Networking 5 02-03-2004 11:14 PM
close port 6000/tcp 515/tcp SchwipSchwap Linux - Newbie 1 09-12-2002 08:24 AM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 12:16 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:30 AM.

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