LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-20-2005, 08:01 AM   #1
taggy
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Closing ports


how to disable all ports except a very few which i want to be open ?
 
Old 08-20-2005, 10:57 AM   #2
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
Stop the services which have those ports open.
 
Old 08-20-2005, 01:03 PM   #3
bambeklis
Member
 
Registered: Aug 2005
Posts: 58

Rep: Reputation: 15
you can filter ports with iptables:

iptables -A INPUT -p TCP -i <device> --dport <port number> -j REJECT
 
  


Reply



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
Closing ports??? NCC-1701&NCC-1701-D Linux - Security 6 05-29-2005 09:23 AM
Closing these ports... greygoose80 Slackware 2 12-19-2004 11:12 PM
Closing Some Ports wonderpun Linux - Security 8 08-17-2003 03:09 PM
closing ports im1crazyassmofo Linux - Security 2 01-02-2003 09:50 PM
CLOSING PORTS Stephanie Linux - Security 9 05-23-2001 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:55 AM.

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
Open Source Consulting | Domain Registration