mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-07-16 01:10:53 +00:00
14 lines
444 B
Bash
Executable File
14 lines
444 B
Bash
Executable File
# 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
|
|
|
|
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.
|
|
if [ -z "$DISABLE_FIREWALL" ]; then
|
|
ufw allow ssh;
|
|
ufw --force enable;
|
|
fi
|
|
|