LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-18-2010, 07:39 PM   #1
jnojr
Member
 
Registered: Sep 2007
Location: San Diego, CA
Posts: 202

Rep: Reputation: 18
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, 07:58 PM   #2
paulsm4
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:
http://www.linuxforums.org/forum/red...ing-ports.html

http://www.linuxtopia.org/online_boo...ch-server.html

Please post back what you find!
 
Old 02-18-2010, 08:14 PM   #3
jnojr
Member
 
Registered: Sep 2007
Location: San Diego, CA
Posts: 202

Original Poster
Rep: Reputation: 18
Quote:
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, 08:16 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

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

netstat -an | grep <port in question>

to see whether the process is actually up & running.
 
  


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 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 01:11 PM
checkit.com shows 12345 closed (unsecure). Please help to secure it. khurdp Linux - Security 11 01-03-2006 09:38 AM
how closed 6000/tcp - X in MDK 9.1 WannaLearnLinux Linux - Networking 5 02-04-2004 12:14 AM
close port 6000/tcp 515/tcp SchwipSchwap Linux - Newbie 1 09-12-2002 09:24 AM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 01:16 PM


All times are GMT -5. The time now is 03:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration