Re: Transparent Proxy Bypass

From: Circuit Breaker (bagboy6437_at_ship.aol.com)
Date: 05/18/04


Date: Tue, 18 May 2004 13:02:18 -0400

On Tue, 18 May 2004 11:22:49 -0400, Will wrote:

> Hello I am having some problems with a couple of web sites which my
> users heavily use for doing their day to day activity which does not
> appear to fair well with squid as they keep getting kicked off the site
> when they are logged in a performing various task none of which is ever
> consistant. If I kill the proxy and use NAT all is perfect so I need a
> way to bypass the proxy for the sites in question. I have a tansparent
> setup but an not sure how to bypass the proxy for this site any help
> would be appriciated.
>
> I am using iptables with a preroute of
>
> iptables -t nat -A PREROUTING -i $INTERNET -p tcp --dport 80 -j REDIRECT
> --to-port 1234
>
> Is it possible to add a preroute for this certain site which will make
> it use NAT to get to the destination or is their somthing in squid I can
> do ?
>
> Thank you

This probably won't help you, but I've been curious about doing something
myself which is not entirely unlike what you currently have.

My desire is to use NAT but to route inbound pages through a proxy to
speed up redundant transfer (i.e., going to AOL mail and having to DL the
same "reply" "reply all" "forward" etc. buttons for every mail view gets
old -- and yes, the browser IS set to cache this stuff).

My system is the internet gateway for the house. I don't leave it on all
the time, so it's impractical for me to set up a proxy server. To do so
would mean having to reconfigure the client machines each time I connect
or disconnect my machine from the Internet. However, I would like to set
up some form of caching so that certain websites load faster (the browsers
ARE set up to cache by themselves, but for some reason certain sites
continue to download the same images -- i.e. aol.com and the mail
buttons).

What I was thinking of researching (haven't gotten to it just yet) was
using the proxy like a network device a la eth0, eth1, ppp0, etc. I was
thinking of making a route for all traffic to pass through the NAT
Masquerade, from there into the proxy and from there access the internet.
That way, I could still maintain NAT localnet configurations, which will
prevent me from having to set up individual stations to use proxy, and at
the same time I can do "transparent cache" for downloads. **IF** this is
possible, then it would mean that **you** could do it too, and set up the
NAT route to www.foo.bar.com to go through, say, ppp0 or eth0 or whatever
net connection you use, and set the regular traffic to go to prx0 or
whatever that device would be called.

I'm curious how you solve your dilemma as I think it will have an impact
on how I solve mine. I think they're closely related. And it will help
in my research ;-)

I'm sorry this didn't answer your question though, but I don't see why it
wouldn't be possible to set up the firewall to bypass the proxy. Thing
is, I've never set up a proxy, so I don't know :-/

Good Luck

CJ



Relevant Pages

  • Re: Restricting internet access from kids
    ... I run squid (proxy) and aquidGuard. ... internet but had to go through the proxy. ... As a stopgap you can turn off IP forwarding on the Linux firewall box. ...
    (alt.os.linux.suse)
  • Re: Squid as default gateway in proxy mode.
    ... the console and ping. ... NAT only ICMP Echo Rep and Req so that i can at least ping outside ... host with out SSH the Squid console. ... By the way, squid is a proxy only for the http protocol, i.e. web ...
    (Debian-User)
  • RE: a litle bypass with IE
    ... This is a problem with Squid, as I was able to replicate the same bypassing ... a litle bypass with IE ... the Squid/2.3.STABLE5 filtring all access's to the internet.. ... have access to the internet directaly, but i know that this proxy allow ...
    (Bugtraq)
  • Re: IP Masqurate or Proxy Server?
    ... Masquerade and proxy do different things. ... Masqueerading is a form of NAT which generally takes the connections ... While Masquerading and NAT works at the TCP/IP level, ...
    (Focus-Linux)
  • Re: Linux-Proxy in w2k3-Domaene erzwingen
    ... auf dem auch Exchange und der Fileserver laufen. ... Wie kann ich in einer Domaene den von uns verwendeten Linux-Proxy (squid in einer recht alten version, da werde ich bald eine neue Distri draufmachen) als 'Zwangs-Proxy' einstellen? ... Bisher kann ich also die Clients zwingen, ueber den Proxy zu gehen wenn sie den IE verwenden. ... Wie kommt aber dann der Exchange in das Internet, ...
    (microsoft.public.de.german.windows.server.networking)