QUICKSTART LINUX VPS

This Quick Start Guide provides all the information you need to get your VPS up and running.

Quickstart Linux VPS

Preparation
apt-get update && apt-get install nano mc htop -y
Install Fail2Ban to block (SSH) bruteforce attempts
apt-get update && apt-get install fail2ban -y
update-rc.d fail2ban defaults
nano   /etc/fail2ban/jail.d/apache.conf
[apache-auth]
enabled = true
[apache-badbots]
enabled = true
[apache-noscript]
enabled = true
[apache-overflows]
enabled = true
[apache-nohome]
enabled = true
[apache-botsearch]
enabled = true
[apache-fakegooglebot]
enabled = true
[apache-modsecurity]
enabled = true
[apache-shellshock]
enabled = true
nano   /etc/fail2ban/jail.d/sshd.conf
[sshd]
enabled = true
[sshd-ddos]
enabled = true
fail2ban-client status
Firewall UFW
sudo apt-get install ufw
ufw allow 53
ufw allow 123/udp
ufw allow 68/udp
ufw allow 22
ufw allow 80
ufw allow 443
ufw allow out 53
ufw allow out 80
ufw allow out 443
sudo ufw default deny outgoing
sudo ufw default deny incoming
sudo ufw enable´╗┐
Add new user with sudo permissions
apt-get install sudo
adduser username
adduser username sudo´╗┐


Source:https://pastebin.com/SvFEssuL

This site uses Akismet to reduce spam. Learn how your comment data is processed.