LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 12-08-2004, 07:27 AM   #1
lancillotto4648
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
Question Port to be closed.


Please,I do not know how to close the following:

1. Ports TCP opened by Xwindow.

2. Ports and services as:
sunrpc
auth
947
smtp
957

Your help is appreciated.
Thanks
 
Old 12-08-2004, 07:38 AM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,176

Rep: Reputation: 54
Just:
Code:
apt-get install firestarter
Type "firestarter" as root and it will open a graphical program to configure your firewall. After running the setup wizard, click edit>preferences>services and you can select which services you want open to the network. Click on "rules" to select specific ports to open or block. Once you do that, the firewall will automatically be started at boot up unless you specifically configure it not to.

Edit: Dang typos!
 
Old 12-08-2004, 08:18 AM   #3
lancillotto4648
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I wish to close not by firestarter but directly.
Thanks
 
Old 12-08-2004, 08:33 AM   #4
andguent
Member
 
Registered: Sep 2003
Distribution: Woody, SuSE, RH, LAS
Posts: 55

Rep: Reputation: 15
The following code closes port 23 (telnet):
Code:
iptables -I INPUT 1 -p tcp --destination-port 23 -j DROP
Check out http://iptables-tutorial.frozentux.n...-tutorial.html for more info on iptables. Section 6.3 - Commands is the meat of the article.
 
Old 12-08-2004, 01:21 PM   #5
lancillotto4648
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Please,I wish ports to be closed and not firewall drops the packets.
Thanks
 
Old 12-08-2004, 01:23 PM   #6
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 225

Rep: Reputation: 30
edit /etc/inetd.conf, commenting out lines to services you want closed. When your done use "/etc/init.d/inetd restart".
 
Old 12-09-2004, 03:24 AM   #7
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
Debian has special a program for this. Check out "man update-inetd". I've used it to close all unnecessary inetd services.
 
Old 12-09-2004, 06:21 AM   #8
wallison
Member
 
Registered: Jul 2003
Location: MD USA
Distribution: Slackware
Posts: 136

Rep: Reputation: 18
"startx -- -nolisten tcp" will close the X Window port.
I had to "chmod -x /etc/init.d/exim4" to get rid of smtp.
 
  


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
port 25 is closed? abd_bela Red Hat 3 04-12-2005 03:58 PM
is the 25 port closed abd_bela Linux - Networking 5 08-18-2004 08:27 AM
Port 25 Closed karuna Linux - Newbie 0 03-02-2004 02:17 PM
port closed hotrodowner Linux - Networking 2 12-02-2002 05:06 AM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 12:16 PM


All times are GMT -5. The time now is 03:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration