From 61d5fe148c5b85c3980c0dff032b3bd7d90ad7fa Mon Sep 17 00:00:00 2001 From: Onni Hakala Date: Fri, 12 Aug 2016 09:01:01 +0300 Subject: [PATCH] Added example to add a port range (#2712) I tried to google for this a bit and then figured out how it actually works. --- system/ufw.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/ufw.py b/system/ufw.py index 6b7fb6a7657..c70f51f88b8 100644 --- a/system/ufw.py +++ b/system/ufw.py @@ -153,6 +153,9 @@ ufw: rule=allow name=OpenSSH delete=yes # Deny all access to port 53: ufw: rule=deny port=53 +# Allow port range 60000-61000 +ufw: rule=allow port=60000:61000 + # Allow all access to tcp port 80: ufw: rule=allow port=80 proto=tcp