diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2021-01-23 23:25:17 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2021-01-23 23:25:17 +0100 |
| commit | 122c5be74d6ce62af2bb9878711c23eab501e8da (patch) | |
| tree | 32a548a767ae13ead6123bf3bf0d34e90d80e3c5 /setup_ufw.sh | |
| parent | aee6aeee639bffacdf3e0a2d514a3bde66ed94d2 (diff) | |
| download | dotfiles-server-122c5be74d6ce62af2bb9878711c23eab501e8da.tar.xz dotfiles-server-122c5be74d6ce62af2bb9878711c23eab501e8da.zip | |
ufw setup and apt full update/upgrade
Diffstat (limited to 'setup_ufw.sh')
| -rwxr-xr-x | setup_ufw.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/setup_ufw.sh b/setup_ufw.sh new file mode 100755 index 0000000..0fead6f --- /dev/null +++ b/setup_ufw.sh @@ -0,0 +1,9 @@ +#!/bin/bash +sudo apt install ufw -y +sudo ufw default deny incoming +sudo ufw limit in ssh +sudo ufw allow in 80 +sudo ufw allow in 443 +# ufw allow from $YOUR_IP to any proto tcp port 5432 +sudo ufw enable +sudo ufw status |
