Click to See Complete Forum and Search --> : Really need help on ports


linuxluis
10-15-2001, 12:17 AM
Hello all. I have a problem understand about ports. I just finished installing linux on my box. I'm running red hat 7.0 kernal 2.2.16-22

One of my friends gave me a firewall that runs ipchains.

Heres were I'm having trouble , I download nmap and did a scan on my machine.

heres the resault that I got ..

Port State Service
22/tcp open ssh
23/tcp open telnet
79/tcp open finger
111/tcp open sunrpc
113/tcp open auth
1024/tcp open kdm
6000/tcp open X11

I would like to close all of them but not ssh.

Can someone show me or tell me were I could read something regarding this.

Thank you for all the help

Bishop :rolleyes:

slacker_x
10-15-2001, 12:28 AM
I would just remove telnetd and fingerd from the system completely.

I think you might want to keep port 113 open. I don't really know the details of this....perhaps someone else can step in. I know it is required for IRC in many cases.

MaxWave
10-15-2001, 12:48 AM
telnet and finger can be found in /etc/xinetd.d/* or in the /etc/inetd.conf file. For port 113 I disable portmap, nfs, and nfslock in /etc/init.d by renaming the scripts.

linuxluis
10-15-2001, 05:28 PM
I look at the finger file and commented everything out plus also looked in the chkconf --list and changed the level on it. But I still want to close these out.

21/tcp open ftp
22/tcp open ssh
23/tcp open telnet
80/tcp open http
113/tcp open auth
443/tcp open https


plus what is port 443 https ?

So can someone show me or point me in the right direction..

Bishop

7
10-15-2001, 05:37 PM
Edit the file /etc/inetd.conf and make sure every line starts with a #.

Port 443 is the secure web server port. I think it's for SSL (secure socket layer), but im not sure.

If you use IRC then do as slacker_x says and leave port 113 (auth/identd) open.