sudo install fail2ban
sudo install ufw
sudu ufw default deny incomoing
sudo ufw default allow outgoins
sudo ufw allow 22,25,80,110,143,443,465,587,993,995,4190/tcp
sudo ufw enable
sudo apt install curl git -y
su
curl -sSL https://get.docker.com/ | CHANNEL=stable sh
systemctl enable --now docker
curl -sSL https://github.com/docker/compose/releases/download/v$(curl -Ls https://www.servercow.de/docker-compose/latest)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
su
cd /opt
git clone https://github.com/mailcow/mailcow-dockerized
cd mailcow-dockerized
./generate_config.sh
docker-compose pull
docker-compose up -d
It throw error
I think you need
sudo apt-get install fail2ban
sudo apt-get install ufw
sudo ufw default deny incoming
sudo ufw default allow outgoing
Also somebody know how to fix this error?
ubuntu@ip-172-26-0-78:~$ systemctl enable --now docker
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: Ubuntu (ubuntu)
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to reload daemon: Access denied
I use AWS and I don't know my password