* REDIRCT vs. DNAT...
@ 2005-04-22 22:12 Taylor, Grant
2005-04-22 22:24 ` Jason Opperisano
2005-04-23 8:05 ` Jose Maria Lopez Hernandez
0 siblings, 2 replies; 4+ messages in thread
From: Taylor, Grant @ 2005-04-22 22:12 UTC (permalink / raw)
To: netfilter
Are there any merits to using REDIRECT over (or under) DNAT when redirecting traffic back to the box that is doing the redirecting? Reference Alejandro Villarroel's post (and thread) at https://lists.netfilter.org/pipermail/netfilter/2005-April/059942.html.
I responded with an email stating to REDIRECT the traffic only moments after Jason Opperisano responded stating to DNAT the traffic. I'm just curious if any one knows of any performance benefits / penalties for using REDIRECT vs. DNAT.
Grant. . . .
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: REDIRCT vs. DNAT...
2005-04-22 22:12 REDIRCT vs. DNAT Taylor, Grant
@ 2005-04-22 22:24 ` Jason Opperisano
2005-04-22 22:30 ` Taylor, Grant
2005-04-23 8:05 ` Jose Maria Lopez Hernandez
1 sibling, 1 reply; 4+ messages in thread
From: Jason Opperisano @ 2005-04-22 22:24 UTC (permalink / raw)
To: netfilter
On Fri, Apr 22, 2005 at 05:12:41PM -0500, Taylor, Grant wrote:
> Are there any merits to using REDIRECT over (or under) DNAT when
> redirecting traffic back to the box that is doing the redirecting?
> Reference Alejandro Villarroel's post (and thread) at
> https://lists.netfilter.org/pipermail/netfilter/2005-April/059942.html.
>
> I responded with an email stating to REDIRECT the traffic only moments
> after Jason Opperisano responded stating to DNAT the traffic. I'm just
> curious if any one knows of any performance benefits / penalties for using
> REDIRECT vs. DNAT.
REDIRECT is a special case of DNAT, where the dst IP is rewritten to the
IP address of the interface the packet is received on (optionally
re-writing the dst port as well).
i used DNAT in my response, as it wasn't clear from the OP what local IP
the translated packets needed to be sent to.
-j
--
"Peter: I'd sell my soul to be famous.
Satan: We've got a live one. Peter.
Assistant: No good, sir. It seems he already sold his soul once in
1977 for Bee Gees tickets and then again in 1983 for half a mallomar."
--Family Guy
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: REDIRCT vs. DNAT...
2005-04-22 22:24 ` Jason Opperisano
@ 2005-04-22 22:30 ` Taylor, Grant
0 siblings, 0 replies; 4+ messages in thread
From: Taylor, Grant @ 2005-04-22 22:30 UTC (permalink / raw)
To: Jason Opperisano; +Cc: netfilter
> REDIRECT is a special case of DNAT, where the dst IP is rewritten to the
> IP address of the interface the packet is received on (optionally
> re-writing the dst port as well).
So is there really any functional difference if you are wanting to redirect the traffic to the interface that it did come in? In other words do you know of any kernel differences (number of cycles to execute?) in REDIRECT vs. DNAT?
> i used DNAT in my response, as it wasn't clear from the OP what local IP
> the translated packets needed to be sent to.
*nod* I had to read the post more than one time too.
Grant. . . .
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: REDIRCT vs. DNAT...
2005-04-22 22:12 REDIRCT vs. DNAT Taylor, Grant
2005-04-22 22:24 ` Jason Opperisano
@ 2005-04-23 8:05 ` Jose Maria Lopez Hernandez
1 sibling, 0 replies; 4+ messages in thread
From: Jose Maria Lopez Hernandez @ 2005-04-23 8:05 UTC (permalink / raw)
To: netfilter@lists.netfilter.org
El vie, 22-04-2005 a las 17:12 -0500, Taylor, Grant escribió:
> Are there any merits to using REDIRECT over (or under) DNAT when redirecting traffic back to the box that is doing the redirecting? Reference Alejandro Villarroel's post (and thread) at https://lists.netfilter.org/pipermail/netfilter/2005-April/059942.html.
>
> I responded with an email stating to REDIRECT the traffic only moments after Jason Opperisano responded stating to DNAT the traffic. I'm just curious if any one knows of any performance benefits / penalties for using REDIRECT vs. DNAT.
I don't really know for sure, but I suppose that if DNAT to the same
machine was better than REDIRECT then REDIRECT would be deprecated. And
as is the preferred method for squid proxies and the like I suppose
REDIRECT is the way to go.
I've always used REDIRECT and it has a very very low performance
penalty, so I've never tried DNAT to the same machine.
But I would like to hear Jason Opperisano about this. He knows far
more than I about Netfilter.
> Grant. . . .
Regards.
--
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA
The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-04-23 8:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-22 22:12 REDIRCT vs. DNAT Taylor, Grant
2005-04-22 22:24 ` Jason Opperisano
2005-04-22 22:30 ` Taylor, Grant
2005-04-23 8:05 ` Jose Maria Lopez Hernandez
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.