General Tools
Speedtest CLI
Follow the Speedtest CLI installation tutorial.
NCDU
For getting the size of folders in servers, we can use ncdu:
sudo apt-get update && sudo apt install -qy ncdu
Syncthing
Follow this tutorial to install. Then, do the following (replace nima with the user you want). Syncthing will start on http://127.0.0.1:8384
# source: https://docs.syncthing.net/users/autostart.html#linux
sudo systemctl enable syncthing@nima.service
sudo systemctl start syncthing@nima.service
Fail2Ban
sudo apt-get -qy install fail2ban
Then, config:
sudo tee /etc/fail2ban/jail.local << EOF
[DEFAULT]
banaction = iptables-allports
bantime = 1h
findtime = 10m
maxretry = 5
ignoreip = 127.0.0.1/8 ::1
[sshd]
enabled = true
port = {{ ssh_port }}
filter = sshd
EOF
sudo service fail2ban restart
sleep 5
sudo service fail2ban status
# to see a list of jailed IPs:
sudo iptables -S | grep fail2ban
# result would be like: -A fail2ban-SSH -s 10.0.1.124/32 -j REJECT --reject-with icmp-port-unreachable