Networking Forums

Networking Forums > Computer Networking > Linux Networking > What services to shutdown?

Reply
Thread Tools Display Modes

What services to shutdown?

 
 
Fritz Bayer
Guest
Posts: n/a

 
      06-16-2005, 07:49 AM
Hello,

I used nmap to see, which ports are open. Can somebody tell me which
programs listen on those ports and which ones I can disable/remove?

111/tcp open rpcbind
113/tcp open auth
867/tcp open unknown
4444/tcp open krb524

Is it dangerous that they can be access from the outside? rpcbind for
example looks like some kind of remote procedure call broker.

Fritz
 
Reply With Quote
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      06-16-2005, 12:10 PM
In comp.os.linux.networking Fritz Bayer <fritz-(E-Mail Removed)>:
> Hello,


> I used nmap to see, which ports are open. Can somebody tell me which


You don't need nmap, 'man netstat'.

> programs listen on those ports and which ones I can disable/remove?


> 111/tcp open rpcbind
> 113/tcp open auth

grep "11[13]/" /etc/services
sunrpc 111/tcp portmapper # RPC 4.0 portmapper TCP
sunrpc 111/udp portmapper # RPC 4.0 portmapper UDP
auth 113/tcp authentication tap ident
auth 113/udp authentication tap ident

> 867/tcp open unknown


Unsure, not officially assigned (IIRC), often used by
nsrexecd/veritas, check using netstat/lsof what's using the port.

> 4444/tcp open krb524


Kerberos

> Is it dangerous that they can be access from the outside? rpcbind for
> example looks like some kind of remote procedure call broker.


That's portmapper, if you aren't using nfs/etc you can safely
shutdown the service.

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 201: RPC_PMAP_FAILURE
 
Reply With Quote
 
Menno Duursma
Guest
Posts: n/a

 
      06-16-2005, 01:21 PM
On Thu, 16 Jun 2005 00:49:28 -0700, Fritz Bayer wrote:

> Can somebody tell me which programs listen on those ports


Try one of the following commands:

socklist
netstat -antup
lsof -i

> and which ones I can disable/remove?
>
> 111/tcp open rpcbind


Sun RPC portmapper.
Have a look for other RPC services with:

rpcinfo -p

If you aren't an NFS client and/or part of a NIS domain: disable them.

> 113/tcp open auth


Ident RFC1413 - probably you want (to keep) this running. As some commonly
used servers query it. Most distros ship Pidentd which can be run under a
seperate account i.e.:

groupadd identd
gpasswd -R identd
useradd -g identd -c Pidentd -d / -s /bin/false identd
passwd -l identd

Then change /etc/identd.conf to have the following (rather then "nobody"):

server:user = identd

And maybe restrict access to some hosts/networks (using iptables you want
to send an TCP RST in return to the SYN rather then ICMP deny packet) like:

/usr/sbin/iptables -A INPUT ! -i lo -p tcp --syn --dport auth \
-j REJECT --reject-with tcp-reset

And/or patch it with libwrap then setup hosts.{allow,deny} ACLs:
http://www.usenetlinux.com/archive/i.../t-116375.html

You want to read this page also:
http://www.tldp.org/HOWTO/Security-H...ty.html#AEN917

(But maybe just switch to like: "fakeidentid", "nullidentd", or similar.)

> 867/tcp open unknown


Uuh, idunno. To get a clue about this, try something like:

fuser -v -n tcp -4 867

> 4444/tcp open krb524


Kerberos v4 support for a v5 KDC. Probably you have port 88/udp open as
well, maybe also the admin stuff. Try scanning your box for UDP services:

nc -u -v -z localhost 1-1024
nmap -sU -Tinsane localhost -p1-65535

> Is it dangerous that they can be access from the outside?


Maybe, maybe not. (Depends on their configuration and up-to-date status.)

> rpcbind for example looks like some kind of remote procedure call
> broker.


man rpc.portmap

HTH

--
-Menno.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown.exe Andrew Windows Networking 1 07-21-2009 11:16 PM
shutdown Rami Wireless Internet 0 04-03-2004 07:01 AM
shutdown Rami Wireless Internet 0 04-03-2004 07:01 AM
shutdown Rami Wireless Internet 0 04-03-2004 07:01 AM



1 2 3 4 5 6 7 8 9 10 11