LinuxQuestions.org
Review your favorite Linux distribution.
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 05-20-2003, 02:51 PM   #1
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Rep: Reputation: 30
Arrow Locking down ports in Debian


I just switched over to Debian Woody from Redhat 8 and I'm trying to lock down all the unneeded posts on my system...

A couple are starting to bug me that I would be able to (I think) turn off in Redhat but I have no idea how to do in Debian (I got a little too used to all of RH's GUI's).

Here is the NMAP scan:
(The 65522 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
901/tcp filtered samba-swat
1723/tcp open pptp
6000/tcp filtered X11
6001/tcp filtered X11:1
6002/tcp filtered X11:2
6003/tcp filtered X11:3
6004/tcp filtered X11:4
6005/tcp filtered X11:5
6006/tcp filtered X11:6
6007/tcp filtered X11:7
6008/tcp filtered X11:8
6009/tcp filtered X11:9

First of all. I know it is saying that 901 and the X11 ports are being filtered (and they are by my firewall), but I would prefer that they not even listen on my external NIC...

How do I get SWAT so stop listening for a connection if I am not using Inetd (which I am not)? If I do have to use Inetd to do this, what is the line I would have to add to my inetd.conf file? (Or am I just in left field with all this inetd stuff???)

About the X11 ports. I know about the "-nolisten tcp" option you can put after startx, and in the xserverrc file, and the serverargs="-nolisten tcp" option you can stuck in the /usr/X11R6/bin/startx file. And I have done this. My system does have X installed, but I do not boot to an X login screen. I don't even have any startup scripts for it in my rc directories...

Any idea how I can stop X from loading at startup or how to make it really not listen (externally) on those ports???

Andy
 
Old 05-20-2003, 08:44 PM   #2
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,903

Rep: Reputation: 90
Install firestarter.
Note that you are not running any services in the firewall wizard.

Tweak the firewall config files by hand.

Good Luck.
 
Old 05-21-2003, 05:20 AM   #3
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Original Poster
Rep: Reputation: 30
I'm already running gShield. Why do I have to install another firewall? Or is firestarter not a firewall? :\
 
Old 05-21-2003, 07:46 AM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,903

Rep: Reputation: 90
Quote:
I'm already running gShield. Why do I have to install another firewall? Or is firestarter not a firewall?
With Linux one is generally assuming that any "firewall" is a configuration tool for the firewall in the Linux kernel. (Am I right here?)
I mention firestarter as it has a very simple GUI setup and log.
I will leave it to others more expert than I to direct you to config files to edit.
 
  


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
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Redriecting ports (Debian 3.1) Master Fox Linux - General 1 04-07-2005 07:05 PM
debian locking at screen but still running Silent1 Debian 2 12-29-2004 11:52 PM
Opening/Closing Ports on Debian 3.0 addowen Linux - Newbie 0 04-22-2004 06:43 PM
Locking Down Ports... bfloeagle Linux - Networking 2 08-08-2002 12:05 PM

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

All times are GMT -5. The time now is 03:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration