-
Notifications
You must be signed in to change notification settings - Fork 647
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
[bug] [proxy] Blacklist is evaluated before custom whitelist, groups acl broken #1111
Comments
|
@inetshell perfect bug report, thanks ❤️ |
|
I create the following PR to resolve this issue: |
|
Thanks @fichtner ! |
|
@inetshell nice report indeed, thanks! I'm not using the user-acl plugin myself, so I'm not entirely sure what it's trying to add to the acl at the moment. I understand that for your case you would like the plugin rules to prevail above the core rules, but the question is if that's the most suitable solution. Maybe we should ask @kekek2 first about the intended behaviour for the plugin he wrote and decide what to do next, since his plugin seems to be the only one affected by this change. |
|
General blacklists should take precedence over user-acl. To avoid such issues, I redid the plugin. Now, in the plugin itself, you can set rules similar to the general ones. And you can set their priority relative to each other. You can add rules mixed with the desired priority. |
|
Hi @kekek2, The current plugin can not do this. But if we use the PR I sent, is possible. Is there any other way to solve this? Thanks! |
|
I would love to have a way to use the ACL like this. Its my last requirement to be able to replace a 3 years old pfSense box with OPNsense :) |
|
In the new version of the plugin you can already do all this. I also added support Remote ACL. |
|
The problem is the new version has gained core features and needs redesign because we can't just remove core features. |
|
I can make a simplified version that does not affect core features. |
|
Any news about this? As an alternative solution, is it possible to create a switch so the user can enable/disable this? Thanks! |
|
@inetshell not from our side, it's a problem with the plugin, which isn't maintained by us. |
|
@fichtner whats about plugin simplified version that does not affect core features ? |
|
Everything not touching core has a high chance getting in. I'd also Like to see some progress with the new version of you plugin :) |
|
Thanks anyway |
@kekek2 this new version its available? |
|
pull-request not accepted. 06.09.2019, 14:33, "elvysmarchon" <notifications@github.com>:In the new version of the plugin you can already do all this. I also added support Remote ACL.@kekek2 this new version its available?—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread. --
|
|
Good Morning! @inetshell I have exactly this problem. I did the procedure to try to resolve as pointed out here in this bug, but also did not have good results. @kekek2 Is there a more updated version of plugins? I am wanting to migrate from endian to opnsense and just missing it. |
|
This issue has been automatically timed-out (after 180 days of inactivity). For more information about the policies for this repository, If someone wants to step up and work on this issue, |
|
Is this bug still present? I have setup a remote blacklist and want to whitelist urls for some users/groups via os-web-proxy-useracl and the settings have no effect?! EDIT: In my opinion it would be better to rework the acl-thing. Maybe it would be better to move the general blacklist into plugin or the groups/user-acl in core? @kekek2 can you please give some hints or rework the plugin? @AdSchellevis Could you please consider internally to remove the old plugin and migrate the new one (opnsense/core#2572 and #754) into core? This would also concern #748. |
Issue
Currently, the plugin os-web-proxy-useracl do not work if a local and/or remote blacklist is used. (This is an issue with opnsense core webproxy config).
How to replicate
I tried the following case:
Expected behavior
Actual behavior
No user can access the specified sites in their whitelists.
Cause
In squid.conf, the blacklists (marked in red) are evaluated before the "Auth plugins" include, which has the custom whitelists (marked in blue):

Solution
Move the blacklists after "Auth plugins" include. (Tested in OPNsense 18.7.7-amd64):

The text was updated successfully, but these errors were encountered: