Adding an element to the proxy whitelist at cockpit

If I try to add a website at cockpit to the squid whitelist it is not saved, if you click on “Save”. If I add this entry at the old server manager it is saved and you can see it at cockpit.

@giacomo Do you have an idea?

Press “Strg+F5” and look again. Does it still not change?
EDIT: F5 or Browser refresh seems to be enough.

Thanks for your answer. If I click on save and Strg+F5 or only F5 the whole window reloads. After clicking on Edit again, the new entry is away again.

I’ve not written much information, sorry for that.
If installed squid and ufdbguard.
Of course these settings are at filter.

Sorry, I can’t reproduce.
Whitelist entries are saved as expected in Firefox and Chrome.

Are there errors in /var/log/messages ?
Did you install the latest updates? Do you use a custom squid template?

1 Like

Here it works. I can change the whitelist. I’m using FF65 64bit. Browser problem?
Did you try another browser?

2 Likes
Apr 17 16:23:03 groupware cockpit-bridge: No entry for terminal type "unknown";
Apr 17 16:23:03 groupware cockpit-bridge: using dumb terminal settings.
Apr 17 16:23:03 groupware cockpit-bridge: No entry for terminal type "unknown";
Apr 17 16:23:03 groupware cockpit-bridge: using dumb terminal settings.
Apr 17 16:23:32 groupware cockpit-bridge: No entry for terminal type "unknown";
Apr 17 16:23:32 groupware cockpit-bridge: using dumb terminal settings.
Apr 17 16:23:32 groupware cockpit-bridge: No entry for terminal type "unknown";
Apr 17 16:23:32 groupware cockpit-bridge: using dumb terminal settings.

Tried FF75 32bit and 64 bit
Edge and IE didn’t work with cockpit

Sorry, I’m also on FF75/64bit not FF65, but can’t reproduce your problem.
Your above errors are also in my logs.

Do you get this at the end of saving?
grafik

Or can you find this in logs?

1 Like

No I don’t get any message of success not at the browser and not at the logs. Only the entries at messages.log I posted are written every time I try it.

Try signal-event nethserver-squidguard-save and check logs again.
BTW: what client-OS do you use? I’m talking about a Win10-client.

Tried this, no change.

The client OS I tried with is Win 7 and Win 10.

Here is the console output of the browser

[App.vue:312](webpack:///src/App.vue)

███╗ ██╗███████╗████████╗██╗ ██╗███████╗███████╗██████╗ ██╗ ██╗███████╗██████╗ ████╗ ██║██╔════╝╚══██╔══╝██║ ██║██╔════╝██╔════╝██╔══██╗██║ ██║██╔════╝██╔══██╗ ██╔██╗ ██║█████╗ ██║ ███████║███████╗█████╗ ██████╔╝██║ ██║█████╗ ██████╔╝ ██║╚██╗██║██╔══╝ ██║ ██╔══██║╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██╔══╝ ██╔══██╗ ██║ ╚████║███████╗ ██║ ██║ ██║███████║███████╗██║ ██║ ╚████╔╝ ███████╗██║ ██║ ╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝ [App.vue:313](webpack:///src/App.vue)

API exec: system-authorization/read $ /usr/libexec/nethserver/api/system-authorization/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/$bf3e1af436a7a17fd9acce73134d569fe2db2d6fd384d066b3ed141b5869c372/nethserver/libs/nethserver.js)

API exec: system-task/read $ /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/system-task/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/$bf3e1af436a7a17fd9acce73134d569fe2db2d6fd384d066b3ed141b5869c372/nethserver/libs/nethserver.js)

API exec: system-settings/read $ echo '{"action":"hints"}' | /usr/bin/sudo /usr/libexec/nethserver/api/system-settings/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/$bf3e1af436a7a17fd9acce73134d569fe2db2d6fd384d066b3ed141b5869c372/nethserver/libs/nethserver.js)

tasks undefined [App.vue:464](webpack:///src/App.vue)

tasks no running tasks [App.vue:464](webpack:///src/App.vue)

Diese Seite verwendet die nicht standardisierte Eigenschaft "zoom". Stattdessen sollte calc() in den entsprechenden Eigenschaftswerten oder "transform" zusammen mit "transform-origin: 0 0" verwendet werden. [index.html](https://192.168.46.5:9090/cockpit/@localhost/nethserver-squid/index.html)

API exec: system-apps/read $ echo '{"action":"info","name":"nethserver-squid"}' | /usr/libexec/nethserver/api/system-apps/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/$bf3e1af436a7a17fd9acce73134d569fe2db2d6fd384d066b3ed141b5869c372/nethserver/libs/nethserver.js)

API exec: nethserver-squid/dashboard/read $ echo '{"action":"status","hostname":"192.168.46.5"}' | /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-squid/dashboard/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/@localhost/nethserver/libs/nethserver.js)

API exec: nethserver-squid/dashboard/read $ echo '{"action":"proxy-stats"}' | /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-squid/dashboard/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/@localhost/nethserver/libs/nethserver.js)

API exec: nethserver-squid/dashboard/read $ echo '{"action":"proxy-charts","time":900}' | /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-squid/dashboard/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/@localhost/nethserver/libs/nethserver.js)

API exec: nethserver-squid/dashboard/read $ echo '{"action":"filter-stats"}' | /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-squid/dashboard/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/@localhost/nethserver/libs/nethserver.js)

API exec: system-docs/read $ echo '{"chapter":"content_filter","section":"","language":"en"}' | /usr/bin/sudo /usr/libexec/nethserver/api/system-docs/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/@localhost/nethserver/libs/nethserver.js)

API exec: nethserver-squid/feature/read $ echo '{"name":"filter"}' | /usr/libexec/nethserver/api/nethserver-squid/feature/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/@localhost/nethserver/libs/nethserver.js)

API exec: nethserver-squid/categories/read $ echo '{"action":"categories"}' | /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-squid/categories/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/@localhost/nethserver/libs/nethserver.js)

API exec: nethserver-squid/filter/read $ echo '{"action":"configuration"}' | /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-squid/filter/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/@localhost/nethserver/libs/nethserver.js)

API exec: nethserver-squid/proxy/read $ echo '{"action":"configuration"}' | /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-squid/proxy/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/@localhost/nethserver/libs/nethserver.js)

API exec: nethserver-squid/filter/read $ echo '{"action":"profiles"}' | /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-squid/filter/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/@localhost/nethserver/libs/nethserver.js)

API exec: nethserver-squid/filter/read $ echo '{"action":"objects"}' | /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-squid/filter/read | jq [nethserver.js:41:17](https://192.168.46.5:9090/cockpit/@localhost/nethserver/libs/nethserver.js)

Error: Constructing dygraph with a non-existent div! [dygraph.js:142](webpack:///node_modules/dygraphs/src/dygraph.js)

Source-Map-Fehler: Error: request failed with status 404 Ressourcen-Adresse: https://192.168.46.5:9090/cockpit/$bf3e1af436a7a17fd9acce73134d569fe2db2d6fd384d066b3ed141b5869c372/shell/index.css Source-Map-Adresse: index.css.map

Source-Map-Fehler: Error: request failed with status 404 Ressourcen-Adresse: https://192.168.46.5:9090/cockpit/$bf3e1af436a7a17fd9acce73134d569fe2db2d6fd384d066b3ed141b5869c372/base1/patternfly.css Source-Map-Adresse: patternfly.min.css.map

API exec: nethserver-squid/filter/validate $ echo '{"AntiVirus":"enabled","DomainWhitelist":["youtube-nocookie.com","c.amazon-adsystem.com","adx.adform.net","hb.adscale.de","as-sec.casalemedia.com","prg.smartadserver.com","yieldlove-d.openx.net","ib.adnxs.com","adserver.adtech.de","hbopenbid.pubmatic.com","fastlane.rubiconproject.com","securepubads.g.doubleclick.net","stats.g.doubleclick.net","de.pons.com","dropbox.com","ytimg.com","youtube.nl","youtube.it","youtube.com.br","youtubec.net","youtubebestvideos.com","youtube.be","youtube.de","pubads.g.doubleclick.net","googlevideo.com","youtube.com","jonas-farbenwerke.de"],"DomainBlacklist":["kundt-it.de"],"UrlBlacklist":[],"BlockedFileTypes":[],"Filter":"enabled","Expressions":"disabled","UrlWhitelist":[],"DefaultFilter":{"BlockIpAccess":"disabled","Categories":["adv","alcohol","chat","dating","drugs","hacking","lingerie","movies","music","porn","radiotv","sex","socialnet","spyware","warez","webmail","webphone","webradio","webtv"],"BlockFileTypes":"disabled","name":"default","BlackList":"enabled","BlockAll":"disabled","type":"filter","WhiteList":"enabled","Description":"Default filter","Removable":"no"},"action":"configuration"}' | /usr/bin/sudo /usr/libexec/nethserver/api/nethserver-squid/filter/validate | jq

Which blacklist are in use? If Shalla or Toulouse, take a look at webtv and sex categories. This categories are either in one or the other but not both at the same time and that can cause a validation error. Try removing the category that is unavailable for the blacklist in use.

Thanks for your answer. I’ll have a look on it at Monday.

It’s Shalla.

Then remove sex category.

1 Like

Thanks @dnutan,
this was the solution. Can you explain me how this could happen? With old gui it’s no problem. Is it still a bug?

Haven’t checked it but I guess it could happen when you first choose a blacklist (for example Toulouse), then you select the categories. Later on, you switch to another blacklist (Shalla) but the old selected categories (from the previous blacklist) remain there. If they happen to have the same name, no problem, otherwise…

Yes, it can be a bug.

1 Like

Thanks for explanation. I configured some years ago. I don’t know if I had choosen the other blacklist before.
What I’ve found is, at the old gui there are other categories.

  • Old Gui - sex education, sex lingerie
  • Cockpit - sex