ufw

Document UFW's delete, insert and prepend commands as mutually exclusive

Bug #1946084 reported by Greg Atkinson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ufw
Fix Released
Low
Jamie Strandboge

Bug Description

Hi,

From testing various ufw commands, I believe the delete, insert and prepend rule commands are mutually exclusive. These rule commands are currently documented on the man page as:

    [delete] [insert NUM] [prepend]

Where I believe this should be:

    [delete | insert NUM | prepend]

A minor distinction, but one related to a fix required to the community.general.ufw Ansible plugin for the mutually exclusive treatment of delete and insert.

Please let me know if I've missed anything.

Thanks!

# ufw --version
ufw 0.36

# cat /etc/issue
Ubuntu 20.04.3 LTS \n \l

# ufw --dry-run delete insert 1 allow from any to any port 123 proto tcp
ERROR: Invalid syntax

# ufw --dry-run delete prepend allow from any to any port 123 proto tcp
ERROR: Invalid syntax

# ufw --dry-run insert 1 prepend allow from any to any port 123 proto tcp
ERROR: Invalid syntax

Tags: doc patch
Revision history for this message
Greg Atkinson (greg-a-atkinson) wrote :
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Sorry for just getting to this now. Yes, you're right. Thanks for the bug and patch!

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

This was fixed in 0.36.2.

Changed in ufw:
assignee: nobody → Jamie Strandboge (jdstrand)
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.