Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot delete firewall rule in firewall module #711

Closed
gnadelwartz opened this issue Dec 3, 2017 · 16 comments
Closed

cannot delete firewall rule in firewall module #711

gnadelwartz opened this issue Dec 3, 2017 · 16 comments

Comments

@gnadelwartz
Copy link
Contributor

I'm not able to delete or move selected firewall rules in firewall module. If I klick on delete or move it calls save_policy.cgi but the rules are not delete/moved and diplayed again. I'm using direct mode.

grafik

create edit is working, also delete from edit form.
can pls someone test and confirm it?

I had a look at save_policy (deslsel/movesel) and save_table() in firewall_lib but can't locate the issue.

@iliajie
Copy link
Collaborator

iliajie commented Dec 3, 2017

Did it happen before?

@gnadelwartz
Copy link
Contributor Author

gnadelwartz commented Dec 3, 2017

did not test it for some time, but when I go back to 1.860 its the same. So please can someone test if its my setup (proxy/updates from repo) or a general error.

Test should really simple: add a new rule, select it in the table and try to delete it.

@iliajie
Copy link
Collaborator

iliajie commented Dec 3, 2017

I also couldn't delete it on my Debian Linux.

Looks like a bug. I wish you told me that before the release. It's nothing but I'll only be able to look at it in the morning.

@gnadelwartz
Copy link
Contributor Author

sorry, noticed it a few minutes ago as my server sudently reboots an I wanted to delete some duplicate rules from fail2ban.

@iliajie
Copy link
Collaborator

iliajie commented Dec 3, 2017

You mean Linux Firewall module or Fail2Ban?

@gnadelwartz
Copy link
Contributor Author

linux firewall

@iliajie
Copy link
Collaborator

iliajie commented Dec 3, 2017

It will need a fix. This module has issues with HTML output. It's not directly theme issue.

@gnadelwartz
Copy link
Contributor Author

gnadelwartz commented Dec 3, 2017

I know, thats why I post it ro webmin :-)

@jcameron
Copy link
Collaborator

jcameron commented Dec 4, 2017

Ilia, what's the HTML issue exactly?

@iliajie
Copy link
Collaborator

iliajie commented Dec 4, 2017

Jamie, I still see the issue but it's not what I saw last night.

Anyway, right now, after further investigation, I have noticed that Gray Theme passes input[name="table"] and input[name="chain"] values to save_policy.cgi.

screenshot from 2017-12-04 12-27-12
screenshot from 2017-12-04 12-27-39


Again, right before posting this comment, I remembered that I had issue request in this regard, that addressed issue with not working Showing IP table and Add a new chain named button at the very top of the page.

My patch had broken table and chain inputs exactly as it was applied to all of them, instead to only first ones.

Here is what I mean by omitted/empty forms (Gray Theme, same as Authentic Theme):

screenshot from 2017-12-04 12-55-09

Look, you see the form is soaring somewhere else, all empty? Well, it's not going to work with AJAX calls properly.

I made a fix to my fix (just now) to make it look/work properly, so the form will contain needed elements unambiguously.

To address this issue, I will fix my code for now, because it still needs a fix anyway. In the future, we'd better fix server part or/and not build modules this way.

I will go with 19.05 just in a bit for upcoming Webmin release. I will also try to beautify buttons above for switching IPv4/IPv6 protocols.

iliajie pushed a commit to webmin/authentic-theme that referenced this issue Dec 4, 2017
@iliajie
Copy link
Collaborator

iliajie commented Dec 4, 2017

It's been fixed. Jamie, you can just git pull to include these changes for upcoming Webmin release.

@gnadelwartz
Copy link
Contributor Author

as already stated in private chat this fixed the issue at least for me. thanks for investigating and sorry for the last minute report.

@jcameron
Copy link
Collaborator

jcameron commented Dec 4, 2017

Fix in Webmin is here : f5a4dcb

@iliajie
Copy link
Collaborator

iliajie commented Dec 4, 2017

Alright, Jamie. I have pushed force update for 19.04. Please pull the latest changes.

@gnadelwartz Could you please pull the latest changes for the theme and Jamies and try again to be fully sure?

@gnadelwartz
Copy link
Contributor Author

its working for me...

@gnadelwartz
Copy link
Contributor Author

ipv6 is also working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants