RE: [squid-users] Squid and Firewall rules

This is a discussion on RE: [squid-users] Squid and Firewall rules within the Squid Users forums, part of the Web Server and Related Forums category; On Mon, 2004-03-01 at 12:01, Elsen Marc wrote in reply to: > > > > -- iptables -t ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2004
Mark Cooke
 
Posts: n/a
Default RE: [squid-users] Squid and Firewall rules

On Mon, 2004-03-01 at 12:01, Elsen Marc wrote in reply to:
>
>
> > -- iptables -t nat -A PREROUTING -i eth1 -p tcp
> > --dport 80 -j REDIRECT --to-port 3128 --
> >
> > But with this rule in, I get that all users, even if
> > they don't set their Browsers to use a Proxy, can surf
> > the WEB withouth being authenticated by Squid, but
> > passing through the Proxy anyway (in fact I can see
> > them on my Access.log file)
> >
> > what I wish to do is to set the Squid or Firewall
> > settings to impose a Squid Authentication even if my
> > users don't set their Browsers to use a Proxy, so
> >
> > USER1 Browser-configured --> Authentication = Allowed
> >
> > USER2 NoBrowser-configured --> Authentication or ERROR
> > You are not allowed to ...
> >

> You can't at least in in the squid context :
>
> http://www.squid-cache.org/Doc/FAQ/FAQ-17.html#ss17.15


But the workaround is to setup the redirect to a web server you control
that explains how to setup the browser to use your proxy, instead of
trying to transparently direct it to squid.

Ie, --to-destination as well as --to-port (so you don't have to run a
web server on your firewall).

iptables -t nat --dport 80 -j REDIRECT --to-destination
my.proxyinstruction.server --to-port 80

When you setup the web server, just map all URLs to the proxy setup
instructions (because iptables can't change the requested URL). If you
have an machine running as an existing web server, just use a different
port number and a virtual host, or similar.

Cheers,

Mark

--
Mark Cooke <mpc@star.sr.bham.ac.uk>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:22 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0