mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-13 21:06:16 +00:00
Modify UFW setup
- Add DENY ingoing by default - Add ALLOW outgoing by default
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
function setup_ufw() {
|
||||
echo "[ WEB ]: Started UFW Firewall setup"
|
||||
sudo apt-get install -y ufw
|
||||
sudo ufw default deny incoming
|
||||
sudo ufw default allow outgoing
|
||||
sudo ufw allow 22/tcp
|
||||
sudo ufw allow 80/tcp
|
||||
sudo ufw allow 443/tcp
|
||||
|
||||
Reference in New Issue
Block a user