Re: closeing open ports
On Sun, Apr 29, 2001 at 01:13:07AM -0700, Michael Earls wrote:
> What file do i need to edit to close open ports,
>
> ex, port 111 /tcp sunrpc
> 515/ tcp printer
> 2000/ tcp callback
Run the command -
# lsof | grep LISTEN
This is another option -
$ less /etc/services | grep 111
sunrpc 111/tcp portmapper # RPC 4.0 portmapper TCP
sunrpc 111/udp portmapper # RPC 4.0 portmapper UDP
kx 2111/tcp # X over Kerberos
As you can see it's portmap. Kill the running process and -
# update-rc.d -f portmap remove
Take a look at the man pages "lsof" and "update-rc.d"
for more detail.
hth,
kent
--
From seeing and seeing the seeing has become so exhausted
First line of "The Panther" - R. M. Rilke
Reply to: