ufw update

This commit is contained in:
devdatt 2025-06-17 21:21:44 +05:30
parent a4b3fd2b1f
commit d18a0645d3
3 changed files with 16 additions and 4 deletions

View File

@ -1,7 +1,7 @@
apt update
apt upgrade -y
apt autoremove -y
apt install nginx fail2ban -y;
apt install nginx ufw fail2ban -y;
apt install php-fpm php-cli php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath -y
mkdir /etc/ssl/private;
@ -272,4 +272,8 @@ EOL
systemctl restart nginx;
systemctl enable fail2ban
systemctl restart fail2ban
systemctl restart fail2ban
ufw default allow outgoing
ufw default deny incoming
ufw allow 80
ufw allow 443

View File

@ -1,7 +1,7 @@
apt update
apt upgrade -y
apt autoremove -y
apt install nginx fail2ban -y;
apt install nginx ufw fail2ban -y;
apt install php-fpm php-cli php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath -y
mkdir /etc/ssl/private;
@ -267,3 +267,7 @@ EOL
systemctl restart nginx;
systemctl enable fail2ban
systemctl restart fail2ban
ufw default allow outgoing
ufw default deny incoming
ufw allow 80
ufw allow 443

View File

@ -1,7 +1,7 @@
apt update
apt upgrade -y
apt autoremove -y
apt install nginx fail2ban -y;
apt install nginx ufw fail2ban -y;
apt install php-fpm php-cli php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath -y
mkdir /etc/ssl/private;
@ -254,3 +254,7 @@ EOL
systemctl restart nginx;
systemctl enable fail2ban
systemctl restart fail2ban
ufw default allow outgoing
ufw default deny incoming
ufw allow 80
ufw allow 443