diff options
| author | root | 2022-11-09 14:00:19 +0000 |
|---|---|---|
| committer | root | 2022-11-09 14:00:19 +0000 |
| commit | c339476e0fb6225c2de35193d46f97a3749ce9a1 (patch) | |
| tree | 1c5861eaa820a4a2e5a72c9c28f927d70019ea8b | |
| parent | a4c8a99b6fb9f711c5a2fd6fe1b37bd97aeb0673 (diff) | |
| download | ufw rules-c339476e0fb6225c2de35193d46f97a3749ce9a1.tar.gz | |
| -rwxr-xr-x | ufw.sh | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
