I first plan on making this projected towards cpanel, but I will soon expand to other admin panels.
######################
Things I know for sure to install/ do on my server in order of importance:
- Full Cpanel (stable) upgrade [Already installed Cpanel Feature]
This should upgrade openssh and all of that good stuff so all those locks show locked.
- Recompile Apache [Already installed Cpanel Feature]
- Disable Telnet
# pico -w /etc/xinetd.d/telnet
# (change disable = no to yes)
# /etc/init.d/xinetd restart
- Bind sshd to only 1 ip, and make it a different ip then my main site, and on a different high level port.
- Chroot/Jail [Link]
Then this is where a few questions come up:
Firewalls, I hear of: PMFirewall, Kiss my firewall, APF, Bastille etc.. Whats the best?
Ipchains.. Iptables.. What are these? I'm pretty sure they are something the firewalls look at for instructions on what to do, but i'm not sure if they are, or if they are some type of program.
Also, I heard portsentry was bad, but what is it? Is it a type firewall?
- Tripwire [Link]
- Anti-Virus Scanner [Link]
- Email Anti-Virus Scanner (MailScanner) [Link]
- chkrootkit [Link]
- Disable direct root login [Link]
- PRM (Process Resource Monitor) [Link]
- MRTG bandwidth monitor
- Mask apache server & services version numbers [Link]
I hear alot about programs that check logs for you, but they all trail off and don't help at all. Help on that?
######################
Thats about all I have, other then a set of 'always do this' rules.
1.) Always try to use sftp.
2.) Always use ssh2
3.) Never ever have passwords lying around or use easily crackable passwords. Nice password holder and gen program is Personal Vault. You can check it out and download it here [Link]
This is all I have for now, and I plan on making a defintive howto when i'm done, on howto properly secure your cpanel box to its fullest. I'd really like to help the community once I find all of this stuff out, but I need help.
Thanks for understanding and helping!
Btw, I posted this in the security forum and general forum, but it got no response at all.