ufw

Remove syntax incorrect

Bug #262975 reported by costales on 2008-08-30
2
Affects Status Importance Assigned to Milestone
Gufw
High
costales
ufw
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

costales (costales) wrote :
costales (costales) wrote :

Others rules that I can't remove:

costales (costales) on 2008-08-31
Changed in gui-ufw:
importance: Undecided → High
status: New → Confirmed
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
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').

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) on 2008-09-02
Changed in gui-ufw:
importance: High → Critical
costales (costales) on 2008-09-11
Changed in gui-ufw:
assignee: nobody → marcos.alvarez.costales
importance: Critical → High
costales (costales) on 2008-09-12
Changed in gui-ufw:
status: Confirmed → Fix Released
Changed in ufw:
assignee: nobody → jdstrand
status: Confirmed → Triaged
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
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  Edit
Everyone can see this information.

Other bug subscribers