Portranges is done with one rule per port

Bug #327117 reported by Kim Alvefur
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gufw
Won't Fix
Undecided
costales

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

Revision history for this message
costales (costales) wrote :

Hi!
ufw can't add a range without protocol.
Gufw add the improvement for add rules for both protocols at same time.
Sorry, maybe in the future I change this.
thanks by bug ;)

Changed in gui-ufw:
assignee: nobody → marcos.alvarez.costales
status: New → Won't Fix
Kim Alvefur (zash)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.