summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot2022-11-09 14:00:19 +0000
committerroot2022-11-09 14:00:19 +0000
commitc339476e0fb6225c2de35193d46f97a3749ce9a1 (patch)
tree1c5861eaa820a4a2e5a72c9c28f927d70019ea8b
parenta4c8a99b6fb9f711c5a2fd6fe1b37bd97aeb0673 (diff)
downloadufw rules-c339476e0fb6225c2de35193d46f97a3749ce9a1.tar.gz
-rwxr-xr-xufw.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/ufw.sh b/ufw.sh
index 739d279..687d66b 100755
--- a/ufw.sh
+++ b/ufw.sh
@@ -3,10 +3,11 @@
main() {
ufw --force reset
- ufw default deny incoming on enp2s0
+ ufw default deny incoming
ufw default allow outgoing
ufw allow in on virbr0
+ # ssh
ufw allow in on enp2s0 to any port 22
# nginx
@@ -16,8 +17,7 @@ main() {
# dovecot
ufw allow in on enp2s0 to any port 143
ufw allow in on enp2s0 to any port 993
- ufw allow in on enp2s0 to any port 4190
- ufw allow in on enp2s0 to any port 12302
+ ufw allow in on enp2s0 to any port 4190 # sieve
# postfix
ufw allow in on enp2s0 to any port 25
@@ -26,3 +26,4 @@ main() {
}
main
+ufw enable