OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: gonzo on March 01, 2018, 09:56:37 am

Title: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 01, 2018, 09:56:37 am
Hi :)

How to delete an entry from:  Firewall => Diagnostics => pfTables ?

gonzo
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 04, 2018, 06:05:08 pm

seriously, no one knows the answer to this simple question ?
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: dcol on March 04, 2018, 06:51:49 pm
I would think that if you remove the Alias it should remove the pfTable entry.
If it doesn't, then report the issue on github https://github.com/opnsense/core/issues (https://github.com/opnsense/core/issues)
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 04, 2018, 08:30:00 pm

Yes, I have removed all aliases, but pFTables entries are still visible

https://github.com/opnsense/core/issues/2240
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: elektroinside on March 05, 2018, 12:36:12 am
@gonzo
Try this: start by giving feedback to your older posts. You know, just to let people know that they are not talking to empty walls. Maybe then they will be willing to help you. This is not a charity event nor a paid support to just demand and receive help right when you clap your hands. Seriously.
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 05, 2018, 07:00:46 am
hi :)

Do you know any older post with this problem ?
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: elektroinside on March 05, 2018, 07:49:32 am
hi :)

Do you know any older post with this problem ?

That's not the point. The point is, all your older posts are left hanging in the air. When people actually invest their time in helping you (or at least trying), it would be nice to provide feedback, for at least two reasons:

1. Others with the same problem might find a solution there. If you stay silent, it helps absolutely nobody
2. If an issue is fixed by the devs (or anybody else) and a patch is provided, or at least attempted, or a helpful hint was given to you, they need confirmation that it actually worked so that they can improve OPNsense not just for you, but for everybody else
3. Bonus: to thank them for their efforts
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: franco on March 05, 2018, 08:23:21 am
May I interrupt to ask: why?
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 05, 2018, 08:27:44 am
Yes, I agree with you, and that's why I reported this problem yesterday as a mistake. A moment ago Franco wrote that it is enough to do a reboot. I can check it out tomorrow around 7 am. As soon as I know something, I will let you know if it works
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: franco on March 05, 2018, 08:32:49 am
Thanks. :)

The table exists as a separate entity and it's not necessarily tied to the current rules / does not have to be used in them.

It makes at least some sense to not purge tables, because:

1. If we only disable the alias usage in the rules we still want to update the table for when it's being used again.
2. If we delete the alias it cannot be used anyway.
3. Cleaning up the table for (1) or (2) adds more code.


Cheers,
Franco
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 05, 2018, 08:57:54 am

Franco, so I can delete tables that are now empty without performing a reboot ?
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: franco on March 05, 2018, 09:13:00 am
No, that's not what I said. In (3) I stated that explicitly deleting tables would require more code (and research as to how it works). In (1) and (2) it was said that it's allegedly better to keep the tables instead of deleting them.
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 05, 2018, 09:28:44 am

OK, but in my opinion it is good to remove unnecessary tables due to aesthetic and maintaining order reasons  :)
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: franco on March 05, 2018, 09:52:05 am
But you do also realise that this adds no operational value for the cost of coding and testing time that could be spent elsewhere?
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 05, 2018, 10:09:12 am

Of course, you are right.
Due to the fact that my firewall is already operating in a production environment, I have to patch up the restart, I have to inform users about the interruption in the operation of services, etc. From my point of view this is a big inconvenience.
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: franco on March 05, 2018, 10:16:10 am
I'm not sure why. Which bad side-effect does the lingering table have on your end?
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 05, 2018, 10:23:25 am
Franco, I do not want to take your precious time. Perhaps this is just a matter of aesthetics. On Wednesday, around 7am, I planned a firewall reboot. I'll let you know if everything worked out. Thank you very much for your help and time. :)
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: franco on March 05, 2018, 10:28:42 am
I'm being persistent for a reason:

If the table not being deleted immediately causes a problem in your operational setup it's something we should know because that makes a fix here valuable.

Just want to make sure we don't miss this opportunity.


Cheers,
Franco
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 05, 2018, 10:37:51 am

OK, I will restart the firewall on Wednesday at 7 am, I will write to this post immediately.
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: dcol on March 05, 2018, 03:06:03 pm
You could always backup the configuration and restore to a fresh install. That's what I do when things get too messy. Only takes about 15 minutes or less.
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: elektroinside on March 05, 2018, 09:34:58 pm
Maybe you could upgrade/update/reboot outside of the working hours?
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 06, 2018, 08:49:05 pm

servers work around the clock. I planned a firewall reboot tomorrow at around 7 am.
Title: Re: how to delete an entry from: Firewall => Diagnostics => pfTables
Post by: gonzo on March 07, 2018, 07:31:43 am

After firewall reboot, "my" entries in pfTables have been removed. I made an update to the latest version 18.1.3.

It's like Franco said, thank you very much for your help.