Mar 28, 2019
What will this script do?
Set up Connection Tracking
More information about CHKROOTKIT is available at
: <http://www.chkrootkit.org/>
Downloading the Script:
cd /root
wget http://mirror.lstn.net/scripts/hardening/centos.sh
chmod +x centos.sh
Modifying the Variables:
vim centos.sh
You may customize TCPPORTS and UDPPORTS, however
the defaults in there now should cover most common processes.
Run the Script:
./centos.sh
What to do afterwards
After it completes, you will get a message like:
******************************************
YOUR SERVER IS NOW HARDENED
------------------------------------------
SSH User: admin
SSH Pass: 254457cb9448226
SSH Port: 5575
Admin Email: admin@fake.lstn.net
******************************************
You must now reconnect to this server using the information above
Changing the SSH port has caused this connection to freeze.
BEFORE CLOSING THIS WINDOW please note your information above.