Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-08-2004, 08:27 AM
|
#1
|
LQ Newbie
Registered: Dec 2004
Posts: 3
Rep:
|
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
|
|
|
12-08-2004, 08:38 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249
Rep:
|
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!
|
|
|
12-08-2004, 09:18 AM
|
#3
|
LQ Newbie
Registered: Dec 2004
Posts: 3
Original Poster
Rep:
|
I wish to close not by firestarter but directly.
Thanks
|
|
|
12-08-2004, 09:33 AM
|
#4
|
Member
Registered: Sep 2003
Distribution: Woody, SuSE, RH, LAS
Posts: 55
Rep:
|
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.
|
|
|
12-08-2004, 02:21 PM
|
#5
|
LQ Newbie
Registered: Dec 2004
Posts: 3
Original Poster
Rep:
|
Please,I wish ports to be closed and not firewall drops the packets.
Thanks
|
|
|
12-08-2004, 02:23 PM
|
#6
|
Member
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 229
Rep:
|
edit /etc/inetd.conf, commenting out lines to services you want closed. When your done use "/etc/init.d/inetd restart".
|
|
|
12-09-2004, 04:24 AM
|
#7
|
Member
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388
Rep:
|
Debian has special a program for this. Check out "man update-inetd". I've used it to close all unnecessary inetd services.
|
|
|
12-09-2004, 07:21 AM
|
#8
|
Member
Registered: Jul 2003
Location: MD USA
Distribution: Slackware
Posts: 137
Rep:
|
"startx -- -nolisten tcp" will close the X Window port.
I had to "chmod -x /etc/init.d/exim4" to get rid of smtp.
|
|
|
All times are GMT -5. The time now is 09:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|