LinuxQuestions.org
Review your favorite Linux distribution.
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 07-13-2009, 01:48 AM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
ports are not visible in /etc/sysconfig/iptables file


hi all

$ nmap localhost

Starting Nmap 4.53 ( http://insecure.org ) at 2009-07-14 11:07 IST
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1705 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
111/tcp open rpcbind
631/tcp open ipp
883/tcp open unknown
938/tcp open unknown
980/tcp open unknown
2049/tcp open nfs
5900/tcp open vnc

is the output.. i am not able to see the ports 883,938 or 980 in the file
/etc/sysconfig/iptables..How to close these ports...

why is this so.........

Thanks in advance...............
 
Old 07-13-2009, 02:05 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Hi, vinaytp. You should probably take a closer look at things. nmap localhost shows all ports open on the loopback interface (127.0.0.1). Those are generally safe -- unless you don't trust your own processes. The ones you have to worry about are ports open to the outside. You can find those by running nmap ip.add.re.ss (subsitute the ip address(es) of your interfaces) or netstat -tuln. If you run netstat, pay attention to the address on which the port is open.
 
  


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
iptables -P vs :OUTPUT in /etc/sysconfig/iptables TomF Linux - Security 2 04-14-2005 11:50 PM
etc/sysconfig/iptables file explinations Junior24 Linux - General 3 12-07-2004 02:35 PM
IPTABLES - rules in /etc/sysconfig/iptables The_JinJ Linux - Newbie 6 11-20-2004 02:40 AM
May I use variables inside /etc/sysconfig/iptables file?...how? leo Linux - Security 2 09-24-2004 10:26 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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