Re: [squid-users] redirect based on url (302)

2018-11-16 Thread Amos Jeffries
On 16/11/18 9:22 PM, uppsalanet wrote: > Just for documentation purpose. Amos suggestion works perfect: > /# Ext magazine domains > debug_options 11,10 58,10 82,10 > acl 302 http_status 302 > acl browzine dstdomain .browzine.com .thirdiron.com > http_access allow browzine > >

Re: [squid-users] redirect based on url (302)

2018-11-16 Thread uppsalanet
Just for documentation purpose. Amos suggestion works perfect: /# Ext magazine domains debug_options 11,10 58,10 82,10 acl 302 http_status 302 acl browzine dstdomain .browzine.com .thirdiron.com http_access allow browzine external_acl_type whitelist_add ttl=10 %SRC % Why it's not working for

Re: [squid-users] redirect based on url (302)

2018-11-08 Thread uppsalanet
Im stucked again :-( It stoped working for some reason. I'm not able to trap 302 anymore. This is my squid.conf (snippet): # Ext magazine domains debug_options 11,10 58,10 82,10 acl 302 http_status 302 acl browzine dstdomain .browzine.com .thirdiron.com http_access allow browzine

Re: [squid-users] redirect based on url (302)

2018-10-31 Thread Amos Jeffries
On 31/10/18 11:27 PM, uppsalanet wrote: > Hi Amos, > Is there a git that I can use to push stuff up? > Do you mean to make a change PR against the official code? The key details for people wanting to assist with Squid development are linked from here:

Re: [squid-users] redirect based on url (302)

2018-10-31 Thread uppsalanet
Hi Amos, Is there a git that I can use to push stuff up? I think you need to split the string in an other way, look into this example: #!/usr/bin/perl use strict; use warnings; $|=1; while (<>) { my $string = $_; print "Received '\$_' = ".$_."\n"; $string =~

Re: [squid-users] redirect based on url (302)

2018-10-30 Thread Amos Jeffries
On 31/10/18 12:49 AM, uppsalanet wrote: > Thanks, > Missed that I need to install squid-helpers "yum install squid-helpers" :-) > Now it's there. > > Now I use it like this: > > external_acl_type whitelist ttl=60 children-max=1 %SRC %DST > /usr/lib64/squid/ext_sql_session_acl --user root

Re: [squid-users] redirect based on url (302)

2018-10-30 Thread uppsalanet
Thanks, Missed that I need to install squid-helpers "yum install squid-helpers" :-) Now it's there. Now I use it like this: external_acl_type whitelist ttl=60 children-max=1 %SRC %DST /usr/lib64/squid/ext_sql_session_acl --user root --password config --table sessions --cond "" --debug But

Re: [squid-users] redirect based on url (302)

2018-10-23 Thread Amos Jeffries
On 24/10/18 3:31 AM, uppsalanet wrote: > Thanks Amos for all you help. > I've done a few of your suggested steps: > * Create the databas. > createdb.sql > > > * The acl to fill upp the database with values works fine

Re: [squid-users] redirect based on url (302)

2018-10-23 Thread uppsalanet
Thanks Amos for all you help. I've done a few of your suggested steps: * Create the databas. createdb.sql * The acl to fill upp the database with values works fine :-) external_acl_type whitelist_add ttl=10 %SRC

Re: [squid-users] redirect based on url (302)

2018-10-08 Thread Eliezer Croitoru
Amos I probably missed couple lines. It's doable but probably if there is a specific set of domains or urls then I will need to try and see what and how it works. Eliezer On 2018-09-24 12:30, Amos Jeffries wrote: On 24/09/18 6:38 PM, uppsalanet wrote: Hi Amos, Today I have a conf like this:

Re: [squid-users] redirect based on url (302)

2018-10-07 Thread Amos Jeffries
On 8/10/18 4:37 AM, Eliezer Croitoru wrote: > Hey Amos, > > I still believe that if squid will manage the connections and the ICAP > service will maintain the ACL list based on these 302 > it would be much faster then opening new connections to the WWW. Where are you getting this "new

Re: [squid-users] redirect based on url (302)

2018-10-06 Thread Amos Jeffries
On 7/10/18 8:41 AM, Eliezer Croitoru wrote: > Amos, > > Would an ICAP service that sits on the RESPMOD vector would be a better > solution other then opening a new session? > "Opening a new session" is what any such ICAP would have to do. It is also overkill for that small action. Amos

Re: [squid-users] redirect based on url (302)

2018-10-06 Thread Eliezer Croitoru
Amos, Would an ICAP service that sits on the RESPMOD vector would be a better solution other then opening a new session? Thanks, Eliezer On 2018-09-24 12:30, Amos Jeffries wrote: On 24/09/18 6:38 PM, uppsalanet wrote: Hi Amos, Today I have a conf like this: acl *LIB_domains* dstdomain

Re: [squid-users] redirect based on url (302)

2018-09-24 Thread Amos Jeffries
On 24/09/18 6:38 PM, uppsalanet wrote: > Hi Amos, > Today I have a conf like this: > > acl *LIB_domains* dstdomain .almedalsbiblioteket.se .alvin-portal.org > .bibliotekuppsala.se > http_access allow *LIB_domains* > > > Now I also need to open for *.browzine.com*. The problem with >

Re: [squid-users] redirect based on url (302)

2018-09-24 Thread uppsalanet
Hi Amos, Today I have a conf like this: acl *LIB_domains* dstdomain .almedalsbiblioteket.se .alvin-portal.org .bibliotekuppsala.se http_access allow *LIB_domains* Now I also need to open for *.browzine.com*. The problem with *.browzine.com* is that it is a portal with many links to

Re: [squid-users] redirect based on url (302)

2018-09-21 Thread Amos Jeffries
On 22/09/18 2:43 AM, uppsalanet wrote: > Hi, > We use squid to limit web traffic to a few internal sites, the computers are > in in public areas. That works good. Now I have a new case: > > If a user goes to page "https://browzine.com; and choose to view a magazine > they get redirected (302) to

[squid-users] redirect based on url (302)

2018-09-21 Thread uppsalanet
Hi, We use squid to limit web traffic to a few internal sites, the computers are in in public areas. That works good. Now I have a new case: If a user goes to page "https://browzine.com; and choose to view a magazine they get redirected (302) to an other site. I would like to open for that