LinuxQuestions.org
Visit Jeremy's Blog.
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-12-2007, 07:35 AM   #1
gubak
Member
 
Registered: Jul 2004
Posts: 332

Rep: Reputation: 30
How to close some ports?


Hi

I have many open ports and I want to close some of them, but don't know how? You have to know, that I use iptables as packet filtering.

So my question is:

What command do I need or what file do I have to edit to close a port (for example port 6000 X11) ?

Thank you

Last edited by gubak; 02-12-2007 at 07:43 AM.
 
Old 02-12-2007, 07:45 AM   #2
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
In general, you need to find the service that is using the port and configure your system not to run that service. How you do that depends on your distribution and the service concerned.

In the particular case of the X11 port, you need to change the configuration of the X Server to include the option "-nolisten tcp" I think. Again, how you do this depends on your distribution, but you can usually pass options to startx or xinit.

HTH.
 
  


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 Close Ports janderson622 Linux - Security 21 01-04-2007 06:59 PM
close all my ports pixelV Slackware 18 12-30-2004 06:49 AM
how to close ports hudy Linux - Security 4 06-23-2004 01:07 PM
Ports, and how to close them? davee Linux - Networking 2 07-24-2003 09:10 AM
how do i close ports. KidTonz Linux - Security 3 12-18-2001 03:43 AM

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

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