EFW Support

Development => EFW Wishlist => Topic started by: dysmas on Saturday 11 June 2011, 06:03:38 pm



Title: wildcards in http proxy policies [Solved]
Post by: dysmas on Saturday 11 June 2011, 06:03:38 pm
When defining access lists in the http Proxy policies, full url is required. The result is that for a single site, many lines may be necessary.
Example for www .bnf.fr in a policy defined with "allow access" we must add :

www .bnf.fr
catalogue.bnf.fr
ccfr.bnf.fr
didacat.bnf.fr
grebib.bnf.fr
guideducatalogueur.bnf.fr
archivesetmanuscrits.bnf.fr
renet.bnf.fr
bibliographienationale.bnf.fr
gallica.bnf.fr
mandragore.bnf.fr
classes.bnf.fr
lajoieparleslivres.bnf.fr
ark.bnf.fr
rameau.bnf.fr
signets.bnf.fr
webapp.bnf.fr
visualiseur.bnf.fr

It takes a lot of time to find all the addresses necessary for this site when I want to give a user full access to it.
I tried to use wildcards, but it does not seem to be possible.
It would be very useful to be able to use wilcards like :

*.bnf.fr
 or to allow a syntax like :

.bnf.fr

another user wanted to block all .ru addresses. This also could be written

*.ru
or
.ru



Title: Re: wildcards in http proxy policies
Post by: dysmas on Friday 07 October 2011, 02:28:06 am
Well no replies after 3 months   :(

I am ready to try to do the job myself, but I would appreciate some indications from the developers to help me find the point where I have to work.


Title: Re: wildcards in http proxy policies
Post by: mrkroket on Tuesday 11 October 2011, 02:05:16 am
Wildcard works with a dot

.bnf.fr should allow any page of bnf domain.
You should check if there is some kind of error on console mode.
 Run this command restartdansguardian.py -d &> /tmp/dans.txt and check for any error on the /tmp/dans.txt file.
Also check restartsquid.py -d &> /tmp/squid.txt

What I'm not sure you can do is blocking the whole .ru as it is a ccTLD and not a domain.


Title: Re: wildcards in http proxy policies
Post by: dysmas on Sunday 23 October 2011, 04:17:33 am
Hello mrkroket,
thanks for the answer. You are right, it works with  .bnf.fr , it is a feature of squid.
I am sure I already tested but probably I made a mistake.

If you know whom to contact, I think adding a line in the documentation would be useful. More than 600 has looked at this message before you and nobody knew the answer. I just checked the documentation, this important feature is not mentioned.

Thanks again

Dysmas


Title: Re: wildcards in http proxy policies
Post by: kouzoulos on Saturday 29 December 2012, 11:35:02 am
Wildcard works with a dot

.bnf.fr should allow any page of bnf domain.
You should check if there is some kind of error on console mode.
 Run this command restartdansguardian.py -d &> /tmp/dans.txt and check for any error on the /tmp/dans.txt file.
Also check restartsquid.py -d &> /tmp/squid.txt

What I'm not sure you can do is blocking the whole .ru as it is a ccTLD and not a domain.

Hello everyone,

yes wildcard works but for me it only worked in whitelist because when I use a wildcard in the sites to block "block the following sites" it doesn't work.
I want to block for example all the subdomains of xx.mt-50.com so normally if I use *.mt-50.com or .mt50cmp.com it should be blocked...but it isn't. It worked only when I put the whole address "ad.mt50cmp.com".
Another example, I'd like to block all the websites starting by "ads" so normally, if I use ads.* it should work(?) but in my case it doesn't.

I tried to modify directly the dansguardian files but...nothing at all.

Do you have any ideas?

Thank you in advance.
kouzoulos