Re: iptables transparent proxy

From: Fritz Bayer (fritz-bayer_at_web.de)
Date: 06/12/04


Date: 12 Jun 2004 01:07:26 -0700

Thanks for you replies. I read them and played around a little bit.
The rule which I wrote down works for all other pc's on my LAN besides
the Linux box on which the proxy runs.

And you are right, that I have to set this up on each PC. So I have to
set the gateway to the Linux Box, so that packets get routed throught
the linux box and are not sent directly to the router.

This makes me a bit happy. However, I would like the Browser Mozilla
on the Linux box to use the proxy. Now, I don't want to set it.

That's because I programmed it myself and it should be a transparent
proxy, which makes a differnce in the HTTP 1.1 Spec on how it has to
handle requests.

I also managed to insert a rule, which send packets leaving from the
local box to port 8888. The problem with this is, that the proxy also
opens a connection to port 80, thereby the first rule gets applied
again and I get stuck in an infinite loop.

Do you know which ruleset would do this? Forwarding requests
originating from the local machine to port 80 to port 8888. But NOT
forwarding those which are actually new requests from the proxy?



Relevant Pages

  • Re: Protokolldefinition gesperrt
    ... Wir hatten zunächst einmal das Problem, dass wir den Port ... Proxy nur der Port 21 definiert ist, ... haben den ISA als Proxy aufgesetzt, weil wir für den Linux ...
    (microsoft.public.de.german.isaserver)
  • Re: Web Chaining - Ausgehender Port für SSL
    ... landen auf Port 80 beim upstream-proxy.. ... Kann es sein, dass ich den Proxy auf einen SSL-Port ansprechen muss, damit ... über den die requests weitergereicht werden sollen (standard: ... Konfiguration und benutze einen Upstream Proxy. ...
    (microsoft.public.de.german.isaserver)
  • Re: Web Browsers
    ... We control access by blocking the service (port 80) on our firewall and just allowing the proxy ... This forces people to use the proxy for web access. ... Linux Server Administrator ...
    (Fedora)
  • bind() udp behavior 2.6.8.1
    ... I am noticing some odd behavior with linux 2.6.8.1 on a redhat 8 box ... when making udp requests. ... allocating the same source ephemeral udp port. ... Is this a bug in how the linux kernel handles allocating udp source ...
    (Linux-Kernel)
  • Iptables Transparent Proxy and Browser on localhost
    ... I have written a java http proxy, which accepts http connections on ... I would like the proxy to be transparent so that my browser's requests ... to port 80 are redirected to port 8080 on the localhost. ...
    (comp.os.linux.networking)

Loading