The National Security Agency (NSA) has developed and distributed configuration guidance for operating systems. These guides are currently being used throughout the government and by numerous entities as a security baseline. Very detailed instructions how to do it on your system. Instructions in PDF.