Linux Netfilter discussions
 help / color / mirror / Atom feed
* Where the de-SNAT actually takes place?
@ 2006-08-19 17:38 longraider
  2006-08-21 14:51 ` Pascal Hambourg
  2006-08-23 11:43 ` Jarek Poplawski
  0 siblings, 2 replies; 4+ messages in thread
From: longraider @ 2006-08-19 17:38 UTC (permalink / raw)
  To: netfilter

Hi
I've sent this post on the c.o.l.networking also, and after that I've
found this mailing list, so please forgive this crossposting, as I don't
expect answer from c.o.l.n to this question.

I've been reading a bit about packet traversal in the linux kernel but
apparently my linux box doesn't like theory very much ;-)
My config:
linux-2.6.14.2 with imq patch
eth0 - iface where two inet connections are attached
eth1 - server
eth2 - LAN
There is SNAT involved on one net connection. The other conn is for
servers, and there is proxy-arp active (at eth0 and eth1).

I type:
iptables -t nat -A PREROUTING -i eth0 -j LOG
And after that, dmesg shows something like that:
17:08:53 IN=eth0 OUT= SRC=some_remote_IP DST=IP_of_the_linux_box

Shouldn't be there DST=10.0.0.5 for example (ie. de-SNATed)?

I've found that on google:
http://lists.netfilter.org/pipermail/netfilter/2003-July/045355.html
And that is weird. I think that in my kernelversion this is implemented
in different way, but actually I don't know what is going on.

And all that I want to do is ingress queuing using IMQ. I want to fwmark
packets according to their de-SNATed destination adress (and some other
things also), and then put them into the IMQ ingress queue.
I could use the packet matching available in the ingress queue itself
(by ip tool), but I don't know if the packets that go into IMQ are
de-SNATed or not.

So, where the de-SNAT actually takes place?

BTW is this diagram correct?
http://www.docum.org/docum.org/kptd/
I think not, since traversing the magle PREROUTING can't occur
simulatenously with de-MASQ. And is this de-MASQUERADE a de-SNAT also?

-- 
mati




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-23 12:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-19 17:38 Where the de-SNAT actually takes place? longraider
2006-08-21 14:51 ` Pascal Hambourg
2006-08-23 11:43 ` Jarek Poplawski
2006-08-23 12:06   ` Jarek Poplawski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox