OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: defaultuserfoo on June 09, 2022, 03:31:27 PM

Title: undo firewall rule deletion?
Post by: defaultuserfoo on June 09, 2022, 03:31:27 PM
Hi,

is there a way to undo the deletion of a firewall rule (at least before applying the changes)?

I wanted to delete a rule after it was disabled since some time, and either I must have clicked the wrong trashcan, or something else went wrong: The rule I wanted to delete is still there, and I can't see if anything has been deleted.  Now I want to undo ...

PS:

Ok, I found it in the history and recreated the rule.  But still, what good is a trashcan when you can't take the trash back out?
Title: Re: undo firewall rule deletion?
Post by: Mondmann on June 09, 2022, 09:48:28 PM
@defaultuserfoo

System->History->
Look for the date and time when you made the change.
-> if found then press the buttonin the line: restore

Hint:
- in the upper window you can see the changes roughly
- Attention: all changes above will be undone...

Greetings from Germany
Title: Re: undo firewall rule deletion?
Post by: defaultuserfoo on June 11, 2022, 01:54:59 AM
Thanks!  You mean the "leave" button that reverts?

I didn't scroll down to where the buttons are after I already found on top what I had been looking for ...

That's probably because nowadays they make the scroll bars so ridiculously small that you can't really see them anymore, and way too difficult to use :(  And it's probably too late make bug reports against that now ...