1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-29 03:27:05 +00:00
mailinabox/scripts/system.sh

23 lines
619 B
Bash
Raw Normal View History

# Base system configuration.
apt-get -q update
apt-get -q -y upgrade
# Turn on basic services:
#
# ntp: keeps the system time correct
#
# fail2ban: scans log files for repeated failed login attempts and blocks the remote IP at the firewall
#
# These services don't need further configuration and are started immediately after installation.
apt-get install -q -y ntp fail2ban
# Turn on the firewall. First allow incoming SSH, then turn on the firewall. Additional open
# ports will be set up in the scripts that set up those services.
2013-08-26 21:01:48 +00:00
if [ -z "$DISABLE_FIREWALL" ]; then
ufw allow ssh;
ufw --force enable;
fi