← Back to team overview

gufw-developers team mailing list archive

[Bug 327117] Re: Portranges is done with one rule per port

 

** Description changed:

  When setting port ranges, Gufw adds one rule per port. This takes a long
  time.
  
  Steps to reproduce:
  1. Start Gufw
- 2. Add a long port-range
- 3. Wait
- 4. Check what rules applied with sudo iptables-save
+ 2. Select the Advanced tab
+ 3. Add a rule like Allow tcp from any to Any 8080 8090
+ 4. Click add
  
- Version: 0.20.6-0ubuntu1
+ Expected result:
+ One rule, To=8080:8090
+ Corresponding ufw command:
+ ufw allow proto tcp from any port 8080:8090
+ 
+ 
+ Actual result:
+ 10 rules, {To=8080, Action=Allow, From=Anywhere}, {To=8081, Action=Allow, From=Anywhere}, etc
+ Corresponding ufw command:
+ for port in {8080..8090}; do
+   ufw allow proto tcp from any port $port
+ done
+ 
+ Version: 0.20.7-0ubuntu2

-- 
Portranges is done with one rule per port
https://bugs.launchpad.net/bugs/327117
You received this bug notification because you are a member of Gufw
Developers, which is the registrant for Gufw.

Status in GUI for ufw: Won't Fix

Bug description:
When setting port ranges, Gufw adds one rule per port. This takes a long time.

Steps to reproduce:
1. Start Gufw
2. Select the Advanced tab
3. Add a rule like Allow tcp from any to Any 8080 8090
4. Click add

Expected result:
One rule, To=8080:8090
Corresponding ufw command:
ufw allow proto tcp from any port 8080:8090


Actual result:
10 rules, {To=8080, Action=Allow, From=Anywhere}, {To=8081, Action=Allow, From=Anywhere}, etc
Corresponding ufw command:
for port in {8080..8090}; do
  ufw allow proto tcp from any port $port
done

Version: 0.20.7-0ubuntu2