Portranges is done with one rule per port
Bug #327117 reported by
Kim Alvefur
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
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 ;)