ufw

Remove syntax incorrect

Bug #262975 reported by costales
2
Affects Status Importance Assigned to Milestone
Gufw
Fix Released
High
costales
ufw
Fix Released
Undecided
Jamie Strandboge

Bug Description

Hi!
If I have a rule, sometimes I can remove as man ufw say, but sometimes not.

Picture: A terminal with the problem and other terminal with man ufw:

Best regards.

Version ufw 0.20.0
Intrepid Ibex alpha 4.

Related branches

Revision history for this message
costales (costales) wrote :
Revision history for this message
costales (costales) wrote :

Others rules that I can't remove:

costales (costales)
Changed in gui-ufw:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thank you for using Ubuntu and taking the time to report a bug. You are trying to delete a different rule than the one you added. The first allow command does not specify a port, but the delete command does. This may be fixed in a future release of ufw.

Changed in ufw:
status: New → Confirmed
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Also, in looking at 'rules not removed.txt', your syntax is incorrect in some of the rules (eg, 'to port 21' should be 'to any port 21').

Revision history for this message
costales (costales) wrote :

Hi Jamie ;)

Man ufw:
       ufw [--dry-run] [delete] allow|deny PORT[/protocol]

       ufw [--dry-run] [delete] allow|deny [proto protocol] [from ADDRESS
       [port PORT]] [to ADDRESS [port PORT]]

I think my syntax is correct.
If I added a rule: ufw allow 21.
In the log I can see tcp or udp.
I can not remember if I create a rule with protocol or not... (this is the problem).
Then I try remove the rule that ufw show (21 for tcp & 21 for udp)...

Same for the 'rules not removed.txt'.

This bug affect to Gufw project too.
Best regards.

costales (costales)
Changed in gui-ufw:
importance: High → Critical
costales (costales)
Changed in gui-ufw:
assignee: nobody → marcos.alvarez.costales
importance: Critical → High
costales (costales)
Changed in gui-ufw:
status: Confirmed → Fix Released
Changed in ufw:
assignee: nobody → jdstrand
status: Confirmed → Triaged
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

A recent commit will make this go away, as status will now show a rule without a protocol specified as one rule, rather than two.

Changed in ufw:
status: Triaged → Fix Committed
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This was fixed in ufw 0.27.

Changed in ufw:
status: Fix Committed → Fix Released
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.