Skip to contentSkip to conversation

little question about output dnat

DISCUSSION Giacomo 2 participants 2 messages Feb 19, 2007 – Feb 21, 2007 netfilter

lore
Share & tools
lore

Giacomo

author
#0 lore raw

Just a little doubt originated by two contrasting documents on the web...

IF i put an OUTPUT DNAT rule, i.e. i redirect the web traffic to port 80 to the address of the proxy:8080,
the FILTER rules are applied to the original address:port and not to the DNATTED address, right?
Or are they applied both before and after the DNAT translation?

Thanks Giacomo

Signature · 17 lines
Giacomo S.
http://www.giacomos.it

- - - - - - - - - - - - - - - - - - - - - -

IPFIREwall (http://www.giacomos.it/ipfire) viene presentato
all'Universita` degli Studi di Udine, il 28 ottobre, in occasione del
Linux Day 2006:
http://iglu.cc.uniud.it/linuxday

- - - - - - - - - - - - - - - - - - - - - -

. ''  `.
:   :'    :
`.  ` '
   `- Debian GNU/Linux -- The power of freedom
       http://www.debian.org
#1 lore raw
Quoted 7 lines · Giacomo

Just a little doubt originated by two contrasting documents on the web...

IF i put an OUTPUT DNAT rule, i.e. i redirect the web traffic to port 80 to the address of the proxy:8080,
the FILTER rules are applied to the original address:port and not to the DNATTED address, right?
Or are they applied both before and after the DNAT translation?

See http://imagestream.com/~josh/PacketFlow-new.png