-
Notifications
You must be signed in to change notification settings - Fork 759
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
Add PAC support to proxy #2018
Add PAC support to proxy #2018
Conversation
| @@ -32,7 +32,6 @@ | |||
| <field> | |||
| <id>blacklist.filter</id> | |||
| <label>categories (if available)</label> | |||
| <type>text</type> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should break this out and merge it immediately?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not important at the moment - it is overwritten in the next line but it should be removed in the future as it might cause problems in the future (if for some reasons the other element is used).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge glitch
|
@fichtner the only thing still missing is a template reload button on all three tabs. |
| @@ -466,7 +466,6 @@ | |||
| <td></td> | |||
| <td> | |||
| <button data-action="add" type="button" class="btn btn-xs btn-default"><span class="fa fa-plus"></span></button> | |||
| <button data-action="deleteSelected" type="button" class="btn btn-xs btn-default"><span class="fa fa-trash-o"></span></button> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fichtner this button did nothing so I removed it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok if @AdSchellevis doesn’t want to keep it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabianfrz @fichtner it can go, I guess someone copied it in there a long time ago....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AdSchellevis It did probably come from IDS because it is the only view with a list containing checkable checkboxes.
|
@fichtner the model needs some improvements regarding to validation but the rest seems good now. |
| @@ -230,7 +447,7 @@ | |||
| <tr> | |||
| <td colspan="2"> | |||
| <div id="remoteACLchangeMessage" class="alert alert-info" style="display: none" role="alert"> | |||
| {{ lang._('Note: after changing categories, please remember to download the ACL again to apply your new settings') }} | |||
| {{ lang._('Note: After changing categories, please remember to download the ACL again to apply your new settings') }} | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to ditch „Note: „ prefix if this is changed.
| @@ -8,3 +8,4 @@ post-auth.conf:/usr/local/etc/squid/post-auth/dummy.conf | |||
| pre-auth.conf:/usr/local/etc/squid/pre-auth/dummy.conf | |||
| rc.conf.d:/etc/rc.conf.d/squid/squid | |||
| squid.conf:/usr/local/etc/squid/squid.conf | |||
| wpad.dat:/usr/local/www/wpad.dat | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s a bit strange to drop files into www but I know what you are after
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a better idea? The URL does not really match the pattern of standard OPNsense rules. Otherwise we would have to heavily rewrite routes in lighttpd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I’m only raising awareness. In any case this will not merge before stable/18.1 is branched so we have time to think about this. For now this is good enough for -devel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the only thing I could think of is adding a custom rewrite to a controller without authentication.
|
@fichtner it's time for a test run ;) |
|
@fichtner the generated JS is valid and it looks good. It may be published in |
|
Not yet, or else this lands in 18.1-RC1... |
|
fixed conflict |
|
@fichtner I found a small GUI issue - maybe you have an idea: Some fields will be hidden when the modal shows up: https://github.com/opnsense/core/pull/2018/files#diff-23d36dcc2f04f176686a881d17c288bdR190 so the event will be emitted here for example where the data should already be mapped: https://github.com/opnsense/core/blob/master/src/opnsense/www/js/opnsense_bootgrid_plugin.js#L217 |
|
@fichtner the issue was fixed a week ago |
|
ping Additional PRs: |
|
Let me finish 18.1.6 for new images, then we pull this in. Is everything ready from your end? |
|
(Your PR summary says otherwise) |
|
@fichtner It was for a long time as I can remember. This pull request only adds a template to Squid to allow to create a PAC file as OPNSENSE-INTERFACE-HOST/wpad.dat which can be used to automatically configure the proxy in Firefox, Windows, Atom and so on. The Other Pull requests are more simple - they only add the WPAD DNS-Records and DHCP Options. I will give this branch a try again. |
|
found a bug and fixed it but the rest looks good. |
|
fixed conflict of "+Targets" via GitHub online editor. |
|
@fabianfrz will you rebase / fix conflict? thanks |
|
I hope the github merge did what it was intended to do. |
|
Merged, thanks! |
Add PAC file support to the UI to allow Proxy autoconfiguration of some clients that support that standard