Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-17-2001, 12:15 PM   #1
LQ Newbie
Registered: Dec 2001
Posts: 2

Rep: Reputation: 0
Cool how do i close ports.

installed Mandrake 8.1 in a server config. with internet connection sharing. using the default wizards.. scanned ports from a win95 client on the network and i have 139,80,21,25, how do i lock these down. any help will be greatly appreciated.

Old 12-17-2001, 01:46 PM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
First of all disable all the services you don't need (dunno which tools Mandrake has for this).
If you aint serving webpages, disable Apache.
If you ain't serving ftp, turn off ftpd.
If you don't want people to use your server as a mailserver (eg, to send mail *to*) turn off sendmail.
If you ain't *providing* cross-platform sharing turn of samba and any "r" services like portmapper and the like.
Disable telnetd and fingerd anyway, identd may be needed by some mailservers.
For any of these you do use that are started from (x)inetd, you can use "TCP Wrappers" to allow/deny access to these services from /etc/hosts.(deny|allow) for a more fine-grained control who may access these.
Then add rules to your firewall config to block access and log attempts.

Get some basic understanding of security issues from the UNIX Security Checklist v2.0, same for Packet Filtering for Firewall Systems. Since Mandrake is based on Red Hat you might also like Securing and Optimizing Linux (RedHat Edition) or, more appropriate Securing Linux Mandrake, or more general (but a wee bit older) Elementary security for your Linux box.


Last edited by unSpawn; 12-17-2001 at 01:49 PM.
Old 12-17-2001, 03:28 PM   #3
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 214
Blog Entries: 1

Rep: Reputation: 39
Closing ports in Mandrake 8.1

Use the Mandrake Control Center (not the KDE control center) and click on the Services item of the menu (under the lowest icon). This gives you a list of all the services Mandrake knows about. You'll see whether they are running or stopped, and there's a persistent button beside "On boot" for each of them. If that button is pressed down, that service will run at boot time. Just click it to turn it off. Try this a time or two with any service to see how it works, then make sure that all of them you don't need are turned off. If you turn off one that was on, then click the Stop button for that service to stop it. If you're not sure of one, though, leave it on. 80 will be apached, 21 will be either proftpd or wu-ftpd, and 25 will be a mail daemon.

You can also configure the firewall from the MCC's Security icon, and I'd recommend that you do so. Two of my Win9x boxes got clobbered by the Chernobyl virus while I was installing because I didn't understand how to configure Samba, so now I'm paranoid about security!!!
Old 12-18-2001, 03:43 AM   #4
LQ Newbie
Registered: Dec 2001
Posts: 2

Original Poster
Rep: Reputation: 0

thanx. all ports. stealth. hahehehe.



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
Which of these ports can I close? buddhahat Linux - Security 6 06-13-2005 08:40 AM
How can I close ports? nectron101 Linux - Networking 3 11-28-2004 12:22 AM
how to close ports hudy Linux - Security 4 06-23-2004 01:07 PM
How do I close ports ksgill Linux - Newbie 9 10-09-2003 10:06 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration