Re: [squid-users] Reverse proxy and redirect program

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 27 Feb 2003 15:05:20 +0100

tor 2003-02-27 klockan 11.27 skrev Jack:

> if squid receives squid.xyz.com/jack/ then it should redirect to 172.16.1.10
> web server and for squid.xyz.com/james it should redirect to 172.16.1.11
>
> So redir.pl looks like
>
> #!/usr/bin/perl -p
> BEGIN { $|=1;}
> s%http://squid.xyz.com/jack/\b%http://172.16.1.10/test/% && next;
> s%http://squid.xyz.com/james/\b%http://172.16.1.11% && next;
>
> When i try this setup i get access denied page from squid

What do you get in access.log?

Anything in cache.log?

> even though i set
> http_access allow all

don't. doing so will create an open proxy for which is is only a matter
of minutes before it gets abused by various hackers..

Accelerators SHOULD ALWAYS set up access control limit which
destinations is allowed to be reached.

-- 
Henrik Nordstrom <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Thu Feb 27 2003 - 07:05:26 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:44 MST