mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 05:06:18 +00:00
Refactor | Add Utils, Firewall & Monitoring
This commit is contained in:
10
web/setup_ufw.sh
Normal file
10
web/setup_ufw.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
function setup_ufw() {
|
||||
echo "[ WEB ]: Started UFW Firewall setup"
|
||||
sudo apt-get install -y ufw
|
||||
sudo ufw allow 22
|
||||
sudo ufw allow 443
|
||||
sudo ufw enable
|
||||
echo "[ WEB ]: UFW Installed succesfully. Open ports SSH:22 - HTTPS:443"
|
||||
}
|
||||
Reference in New Issue
Block a user