[Eug-lug] shut down unneeded ports in Gentoo?
Bob Miller
kbob at jogger-egg.com
Tue Jan 25 11:00:50 PST 2005
Rob Hudson wrote:
> I ran nmap on a server of mine and found a few open that I'd rather not
> be open (the ones with "filtered" in the list)... How can I shut those
> down in Gentoo?
>
> 22/tcp open ssh
> 25/tcp open smtp
> 80/tcp open http
> 135/tcp filtered msrpc
> 139/tcp filtered netbios-ssn
> 445/tcp filtered microsoft-ds
> 993/tcp open imaps
> 4444/tcp filtered krb524
On the box in question, run "netstat -pant" to find out what program
has each one opened. The name of the program is at the far right.
Then use rc-update to disable each service. And then stop the service
by typing "/etc/init.d/<servicename> stop".
--
Bob Miller K<bob>
kbobsoft software consulting
http://kbobsoft.com kbob at jogger-egg.com
More information about the EUGLUG
mailing list