LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-01-2001, 07:47 AM   #1
Ricardo77uk
Member
 
Registered: Jun 2001
Location: London England
Distribution: Suse 7.1
Posts: 45

Rep: Reputation: 15
a question of ports?


I want to close all unnecessary ports on my linux box, i.e. other than 80, 21, 25, i want all the others closed.

I want telnet to be disabled as I want only SSH

I use apache,mysql,modssl,php,ftp,smtp... so please advise me of the most amount of ports i may lock.

Oh and please include info on how to actually close the ports!

Cheers
 
Old 08-01-2001, 08:36 AM   #2
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
For a start:

You'll have to set up a script file named firewall.rc.config in /etc/rc.d/ in which you configure your firewall. This is done using ipchains or iptables (since Kernel 2.4) I haven't figured out the exact syntax of the tools yet, but you'll probably have a good start reading the manuals in /usr/lib/... That's at least what I will do in the near future. (I'm working on the same task)

Concerning the ports: You do have to know which services you want to provide on the server. There is already some sort of list typed down in SuSe Linux so you can use commands like

Accept port_FTP (This for sure isn't the right syntax though.) Also try checking out linuxdoc.org for howtos on firewalling. They provide some simple setups using IPChains.

Hope this will get you going!
 
Old 08-01-2001, 09:38 AM   #3
cinnix
Member
 
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
The easiest way to shut down a port is to remove the software completely. If these is no software to open the port you will NEVER have a problem. Otherwise just turn off the services that you don't use.

If you don't want telnet then by shutting it down or removing the package you will have effectively shut down port 23.

And then when you set up your firewall, block these ports anyways for good measure.
 
  


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
ports question on updating tw001_tw *BSD 2 04-09-2005 01:06 AM
question about udp ports mcd Linux - Networking 3 03-15-2005 04:13 AM
iptables question about ports XPediTioN Slackware 13 08-10-2004 06:09 PM
Question about switch ports... WeNdeL Linux - Networking 3 04-14-2004 08:44 AM
sendmail and ports question Robert0380 Linux - Networking 1 06-06-2003 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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