LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-31-2009, 03:23 AM   #1
prakash0106
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Rep: Reputation: 1
how to close a open port?


how to close a open port?

how to open a closed port
 
Old 01-31-2009, 04:40 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
prakash0106, I've moved your post to a thread of its own. A port is opened when a process listens on it (it is closed when nothing is listening). So the answer to your question is: You close a port by stopping whatever process is listening on it.
 
Old 01-31-2009, 08:41 AM   #3
rhesa
LQ Newbie
 
Registered: Jan 2009
Posts: 6

Rep: Reputation: 0
daemon

I have example for you.
we want open port 80 (http)
we can using /etc/init.d/httpd start
or /etc/init.d/httpd stop

thank you.
 
Old 01-31-2009, 12:52 PM   #4
Udi
Member
 
Registered: Jan 2009
Posts: 165

Rep: Reputation: 44
If you mean closing/opening ports in the firewall - use gufw to configure what you want.
 
Old 02-02-2009, 02:39 AM   #5
prakash0106
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 1
i need command for closing open port also open closed port

pls not use iptables......... i need only command like nmap(port listening)
 
Old 02-02-2009, 03:10 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
Quote:
Originally Posted by prakash0106 View Post
i need command for closing open port also open closed port

pls not use iptables......... i need only command like nmap(port listening)
prakash0106, AFAICT, your question has already been answered. You open a port by making a process listen on it. You close a port by making sure nothing is listening on it. Nmap has nothing to do with any of this, other than it's a tool you can use to make sure the port in question appears as open or closed.
 
  


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
How to open & close printer PORT 515 kapu Linux - Newbie 2 08-31-2008 07:37 PM
How to open/close a particular port ??? b0nd Linux - Networking 1 12-22-2005 03:11 AM
nmap reports port 21 (ftp) open - how to close it? shazam75 Linux - Security 3 09-23-2005 08:13 PM
Can I just leave port 80 open, close everthing else? Andknig Linux - Security 1 05-05-2005 04:59 PM
open and close network port abd_bela Linux - Security 5 08-19-2004 04:40 PM


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