costales / gufw

Linux Firewall
GNU General Public License v3.0
129 stars 33 forks source link

Can't edit existing rules anymore #25

Closed older-pack closed 3 years ago

older-pack commented 3 years ago

I get this message if I try "Immutable Rule. You can't edit a rule from ufw"

I was able to edit rules a week or so ago.

I also noticed all the "Name" columns are blank (I think they've been blank a while, maybe since upgrading to 20.04 LTS) And now any new rules I add are now in blue text. All my old rules are (and always were) in red text.

Any idea whats going on?

Ubuntu 20.04 LTS

costales commented 3 years ago

Hi, Gufw has a log file for knowing if the rule is from ufw or from Gufw. Gufw can't edit a ufw rule. Probably will be a corrupted file, I never saw this issue before. Best regards.

older-pack commented 3 years ago

Probably will be a corrupted file

Hi, thanks for the reply. Is there any way for me to check/fix the log file?

costales commented 3 years ago

Hi, No, you can't repair that file :( Best regards.

older-pack commented 3 years ago

Ok. So I guess the remedy is complete removal with something like $ sudo apt-get purge --autoremove gufw and then reinstall. Thanks.

bryango commented 3 years ago

I find that after toggling the "status" off and on in gufw, the rules become un-editable. I am using gufw 20.04.1-4 with Manjaro.

image

bugith commented 2 years ago

I find that after toggling the "status" off and on in gufw, the rules become un-editable.

Same here in 22.04. For me I disabled Gufw logging when still on 16.04. I'll check with re-enabling it. For you with this issue, maybe disabling Gufw logging would delete the said corrupted file, then re-enable and recreate your rules so that UFW know they are from Gufw. Maybe if the log is not deleted, just delete it manually when the Gufw log is disabled or try when UFW is temporarily disabled ? Edit : this workaround doesn't work