* What does the redirect target in detail?
@ 2009-02-21 0:27 Sebastian Roemer
2009-02-21 4:11 ` Jorge Dávila
0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Roemer @ 2009-02-21 0:27 UTC (permalink / raw)
To: netfilter
Hi,
I'm desperately looking for an explanation on the redirect target.
In what way does it influence the traversing order of packages through
the tables/chains or is it out of reach for netfilter as soon as it hits REDIRECT?
If not, how does the packages look like in the following tables/chains,
is the source and destination address modified?
Or is it handeled internally like the MARKs, meaning that a redirected
package reaches its modified destination unspoiled?
Thanks for your help
Sebastian R.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What does the redirect target in detail?
2009-02-21 0:27 What does the redirect target in detail? Sebastian Roemer
@ 2009-02-21 4:11 ` Jorge Dávila
2009-02-21 11:59 ` But how then does a transparent proxy works? Sebastian R.
0 siblings, 1 reply; 4+ messages in thread
From: Jorge Dávila @ 2009-02-21 4:11 UTC (permalink / raw)
To: Sebastian Roemer; +Cc: netfilter
http://iptables-tutorial.frozentutx.net/
On Fri, Feb 20, 2009 at 6:27 PM, Sebastian Roemer <tengaman@wolke7.net> wrote:
> Hi,
>
> I'm desperately looking for an explanation on the redirect target.
> In what way does it influence the traversing order of packages through
> the tables/chains or is it out of reach for netfilter as soon as it hits REDIRECT?
> If not, how does the packages look like in the following tables/chains,
> is the source and destination address modified?
> Or is it handeled internally like the MARKs, meaning that a redirected
> package reaches its modified destination unspoiled?
>
>
>
> Thanks for your help
>
> Sebastian R.
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
Jorge Isaac Dávila López
+505 430 5462
jorgedavilalopez@gmail.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* But how then does a transparent proxy works?
2009-02-21 4:11 ` Jorge Dávila
@ 2009-02-21 11:59 ` Sebastian R.
2009-02-21 17:48 ` [SOLVED] " Sebastian Roemer
0 siblings, 1 reply; 4+ messages in thread
From: Sebastian R. @ 2009-02-21 11:59 UTC (permalink / raw)
To: Jorge Dávila; +Cc: netfilter
Thanks,
but I still don't understand how this makes any sense whith regards to
a transparent proxy configuration.
From the tutorial:
>Locally generated packets are mapped to the 127.0.0.1 address. In other
>words, this rewrites the destination address to our own host for packets
>that are forwarded, or something alike.
>iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
The proxy couldn't tell where the package was destined for, if the
destination address was mapped to 127.0.0.1.
Thanks for your time
Sebastian R.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [SOLVED] But how then does a transparent proxy works?
2009-02-21 11:59 ` But how then does a transparent proxy works? Sebastian R.
@ 2009-02-21 17:48 ` Sebastian Roemer
0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Roemer @ 2009-02-21 17:48 UTC (permalink / raw)
To: netfilter
I've found some hints
http://tldp.org/HOWTO/TransparentProxy-4.html:
>The reason is that the mechanism by which the process determines the
>original destination address has changed from linux 2.2, and only
>squid-2.4 has this new code in it. (For those of you who are interested,
>previously the getsockname() call was hacked to provide the original
>destination address, but now the call is getsockopt() with a level of
>SOL_IP and an option of SO_ORIGINAL_DST).
http://wiki.squid-cache.org/SquidFaq/InterceptionProxy:
>You can usually manually configure browsers to connect to the IP address
>and port which you have specified as intercepted. The only drawback is
>that there will be a very slight (and probably unnoticeable) performance
>hit as a syscall done to see if the connection is intercepted. If no
>interception state is found it is processed just like a normal
>connection.
Thanks for your patience
Sebastian R.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-21 17:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-21 0:27 What does the redirect target in detail? Sebastian Roemer
2009-02-21 4:11 ` Jorge Dávila
2009-02-21 11:59 ` But how then does a transparent proxy works? Sebastian R.
2009-02-21 17:48 ` [SOLVED] " Sebastian Roemer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox