mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 05:06:18 +00:00
- Fix prometheus files path - Fix sciprt allowing to execute w/out username param - Add oh-my-zsh installation - Fix typo un ssh authorized_keys file - Fix PermitRootLogin disabling
12 lines
277 B
Bash
12 lines
277 B
Bash
#!/bin/bash
|
|
|
|
function setup_ufw() {
|
|
echo "[ WEB ]: Started UFW Firewall setup"
|
|
sudo apt-get install -y ufw
|
|
sudo ufw allow 22
|
|
sudo ufw allow 80
|
|
sudo ufw allow 443
|
|
sudo ufw enable
|
|
echo "[ WEB ]: UFW Installed succesfully. Open ports SSH:22 - HTTPS:443 - HTTP:80"
|
|
}
|