LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-12-2004, 09:45 AM   #1
novkhan
Member
 
Registered: Jan 2004
Posts: 59

Rep: Reputation: 15
Question Is my Redhat 9 safe with all this ports Open?


Is my Redhat 9 safe with all this ports Open?

Goodday.

I have a Aztech 4 port router a RH9 behind it.

I did a NMAP on the Router and i got this results:

Interesting ports on
adslXXX.dynXXX.pacific.net.sg (210.24.XXX.XXX.):

(The 1599 ports scanned but not shown below are in state: closed)
Port State Service
80/tcp open http
255/tcp open unknown

Are this ports safe or do i have to close them.

And i did a NMAP scan on my RH9

Interesting ports on (10.0.0.X):
(The 1594 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
80/tcp open http
111/tcp open sunrpc
139/tcp open netbios-ssn
443/tcp open https
901/tcp open samba-swat
6000/tcp open X11

By the way i have amule running, i wonder if the ports are reflected here.

Please advise on what uncessary port i have to close to secure my PC .
Thanks.
Oh yah... Additional info I am also sharing files between my RH9 and Win 2000.
 
Old 05-12-2004, 10:11 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
your redhat and windowz are located behind the router. and they connect internet via NAT, right? check your router config if DMZ exist. if there is no DMZ dont worry about these ports. because your computers are already behind a firewall (router) so they cant be accessed from internet easyly. they are already in secure network.
 
Old 05-12-2004, 10:16 AM   #3
specter
LQ Newbie
 
Registered: Nov 2003
Posts: 17

Rep: Reputation: 0
For your router port 80 is probably the web interface. In most routers there is an option to turn this interface off for users outside your local network...do that.

As for port 255 I dont know. Maybe look around in your router settings and see if there is a reference to that. Maybe its the routers telnet port? You could turn telnet off if you really want. If you cant find a reference to port 255 email the people who make the router and ask them.

For your RH9 box...
If you want to ssh into your box keep ssh (port 22) running...if not shut it down.
If your not using the box as a web server (port 80) shut down apache (httpd).
Shutting down apache will also take care of port 443.
If I remember correctly swat is a web gui interface for samba. If you dont use samba shut it down too. Samba is mostly used for windows sharing across networks. It does have other uses.

You probably want 6000 open cause most likely your running X11 with gnome or kde on top.

Leave everything else, it wont hurt.

to see a list of startup scripts look at the chkconfig utility. The scripts are located under /etc/init.d/

And Maxut is right, unless your using port forwarding or have a PC in the DMZ you really dont have much to worry about.
 
Old 05-12-2004, 11:03 AM   #4
-Nw- neX
Member
 
Registered: Apr 2004
Distribution: Gentoo, RHL, CentOS, Ubuntu, FreeBSD,
Posts: 88

Rep: Reputation: 15
you have ssh, samba, samba-swat, remote X11 open on your linux system.

you could start by shutting down the services you dont need, if you dont need samba running, its just using up memory. you can use chkconfig to control the rc startup scripts. for example, to turn samba off in rulevels 3/4/5...

chkconfig --level 345 smb off

to list the services that you have running in whatever runlevels...

chkconfig --list

and if you do want these services avalible, but only want them avalible to certain networks, you should probably make some adjustments to /etc/hosts.allow and /etc/hosts.deny.

so make hosts.deny look like this to deny access to everything...

ALL : ALL

and hosts.allow to make spesific services avalible...

# make all services avalible on 127.0.0.1, [very important!!]
ALL : localhost
# make sshd avalible to every network.
sshd : ALL
# make samba avalible on a 192 private net.
smb : 192.168.
nmb : 192.168.
# make the SWAT samba admin util only usable on the private net [good idea]
swat : 192.168.
 
Old 05-12-2004, 11:36 AM   #5
JohnLinx
LQ Newbie
 
Registered: Jan 2004
Posts: 27

Rep: Reputation: 15
Just an FYI,
Normally SWAT is configured to only run on the local system and not accross the network. There is a FAQ on the SAMBA site on how to set SWAT up for a secure session.

John
 
  


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
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
Help with RedHat firewall open ports Linux6574 Red Hat 2 04-24-2004 08:20 AM
How do you open ports on Linux Redhat 7.3 number1talent Linux - Newbie 3 03-18-2004 03:39 PM
Finding Open Ports using RedHat 9 PionexUser Linux - Newbie 2 08-16-2003 11:56 PM
open ports redhat centr0 Linux - Newbie 2 05-15-2003 08:58 PM

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

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