Linux Netfilter discussions
 help / color / mirror / Atom feed
* UDP DNAT Problem
@ 2003-04-04  3:14 Craig Packard
  2003-04-04  8:56 ` Ralf Spenneberg
  0 siblings, 1 reply; 4+ messages in thread
From: Craig Packard @ 2003-04-04  3:14 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]

From what I understand if I setup a DNAT rule, when a packet matching the rule comes in it is sent to the specified host, obviously this is done by changing the destination field to be the system 'behind' the firewall.  It was however my understanding--and what I've seen in practice--that the source field would not be changed.  So in other words the source of the packet would still be the host out on the internet that actually sent the original packet.  However I have made a set of DNAT rules that I couldn't get to work. So a setup a packet sniffer at several points.  Here is what I noticed and has me confused.

The inside computer (A) sends out a UDP packet to the internet connected computer (B), of course this packet goes through firewall (FW).

The packet goes out as expect srcA dstB
But the weird part is the response comes back in srcFW dst(A)   Where I would like it would be src(B) dst(A)!!!

I think this is screwing up the communications.  Can anyone help me understand what is happening?

-    Craig

[-- Attachment #2: Type: text/html, Size: 1853 bytes --]

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

end of thread, other threads:[~2003-04-04 16:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-04  3:14 UDP DNAT Problem Craig Packard
2003-04-04  8:56 ` Ralf Spenneberg
2003-03-07 15:47   ` Craig Packard
2003-04-04 16:25     ` Søren Kent Jensen

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