LinuxQuestions.org
Visit Jeremy's Blog.
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 12-17-2001, 11:15 AM   #1
KidTonz
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.

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

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.

HTH.

Last edited by unSpawn; 12-17-2001 at 12:49 PM.
 
Old 12-17-2001, 02:28 PM   #3
JimKyle
Member
 
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, 02:43 AM   #4
KidTonz
LQ Newbie
 
Registered: Dec 2001
Posts: 2

Original Poster
Rep: Reputation: 0
Thanx..

thanx. all ports. stealth. hahehehe.

---Tonz
 
  


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

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

All times are GMT -5. The time now is 06:18 PM.

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