Re: Disable unuse port

From: Kasper Dupont (kasperd@daimi.au.dk)
Date: 01/21/03


From: Kasper Dupont <kasperd@daimi.au.dk>
Date: Tue, 21 Jan 2003 07:07:28 +0100

wanto wrote:
>
> Folks,
>
> I am using RH8. In order to check the server security level, i used SuperScan
> to check the "Listen" port.
> Finally, I found the following:
>
> 22 [ssh]
> 23 [telnet]
> 25 [smtp]
> 53 [domain]
> 80 [http]
> 110 [pop3]
> 111 [sunrpc]
> 8000 [irdmi]
>
> Except 110, 111 & 8000, the others are needed...
> Therefore, I tried to disable those 3 ports.

Good choice.

> How can i do it?

Disable the service listening on the port. On RH you can
disable a service for the current session by typing:

   service name stop

And you can prevent it from being started at next boot
by typing:

   chkconfig name off

I'm not sure exactly which services are listening on those
ports, but I guess it is sendmail on port 110. As root you
can get the name of the programs by typing:

   netstat -tupl

> Is it related to /etc/services ?

Nope. Don't change /etc/services.

> Thx all you kindly folks!
>
> wanto

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);


Relevant Pages

  • OT--The Plan for Hillary to Win the White House in 2008
    ... Remember the 900 folks who participated in Bill Clinton's annual ... To expand this 'Cruise and Road to the White House' campaign. ... PORT OF CALL COULD ALSO BE A THEME SUBJECT. ... The ship itself can be a special fundraiser in port for 400 to 800. ...
    (rec.outdoors.rv-travel)
  • Re: Best Plan of action for 2 forest.......
    ... PortQry reports the status of a port in one of the following ways: ... ..LISTENING This response indicates that a process is listening on the target ...
    (microsoft.public.windows.server.active_directory)
  • Re: RealVNC
    ... If we are talking about RealVNC it goes this way ... Then there is default Java listening port on port 5800 on the client machine ...
    (microsoft.public.windows.server.sbs)
  • Re: Cant join a domain
    ... Attempting to resolve name to IP address... ... TCP port 42: NOT LISTENING ...
    (microsoft.public.windows.server.active_directory)
  • Re: Cant join a domain
    ... Attempting to resolve name to IP address... ... TCP port 42: NOT LISTENING ...
    (microsoft.public.windows.server.active_directory)