LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-28-2012, 09:41 AM   #1
Antares.Liu
LQ Newbie
 
Registered: Mar 2012
Distribution: Fedora 16 XFCE
Posts: 19

Rep: Reputation: 3
Question how to close port which is not necessary?


I have found some opened port with nmap, I have closed the tcp port 25 and 111 by stop the sendmail and rpcbind service. the problem now is how to close the 631 port , the port was detected as ipp (internet printint protocol) by nmap .

Last edited by Antares.Liu; 03-28-2012 at 09:54 AM.
 
Old 03-28-2012, 10:09 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
631 is the CUPS server.

Either you can disable/uninstall CUPS, but you also disable printing.

Or you can HTTP to localhost:631 and configure CUPS such that it doesn't allow connections from localhost.

Or you can install iptables and deny all connections as a policy and then open only the ports you need specifying which hosts are allowed to connect etc.

jlinkels
 
1 members found this post helpful.
Old 03-28-2012, 06:24 PM   #3
Antares.Liu
LQ Newbie
 
Registered: Mar 2012
Distribution: Fedora 16 XFCE
Posts: 19

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by jlinkels View Post
631 is the CUPS server.

Either you can disable/uninstall CUPS, but you also disable printing.

Or you can HTTP to localhost:631 and configure CUPS such that it doesn't allow connections from localhost.

Or you can install iptables and deny all connections as a policy and then open only the ports you need specifying which hosts are allowed to connect etc.

jlinkels
Thanks for your hints, can you tell me how to stop the server, because I find all the services(rpcbind service and sendmail service) I had stopped still running when my laptop reboot.
 
Old 03-28-2012, 08:12 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Try chkconfig http://linux.die.net/man/8/chkconfig
 
1 members found this post helpful.
Old 03-28-2012, 11:27 PM   #5
Antares.Liu
LQ Newbie
 
Registered: Mar 2012
Distribution: Fedora 16 XFCE
Posts: 19

Original Poster
Rep: Reputation: 3
thanks chrism's help
 
  


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 port 1050 please help how to close it. mr norm Linux - General 1 09-12-2008 07:57 AM
Which port should I close? schneemann Linux - Networking 5 11-15-2005 03:15 AM
close a port mfrangos79 Linux - Security 7 11-03-2005 01:32 AM
cant get port 21 to close crosswire Linux - Newbie 4 09-14-2004 06:17 PM
Close port 25 smtp sapphirewolf Linux - Security 4 03-22-2004 05:19 PM

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

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