Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Craig Packard" <cpackard@zoominternet.net>
To: netfilter@lists.netfilter.org
Subject: UDP DNAT Problem
Date: Thu, 3 Apr 2003 22:14:53 -0500	[thread overview]
Message-ID: <000f01c2fa58$5cd5b290$0b19a8c0@rock1> (raw)

[-- 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 --]

             reply	other threads:[~2003-04-04  3:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-04  3:14 Craig Packard [this message]
2003-04-04  8:56 ` UDP DNAT Problem Ralf Spenneberg
2003-03-07 15:47   ` Craig Packard
2003-04-04 16:25     ` Søren Kent Jensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000f01c2fa58$5cd5b290$0b19a8c0@rock1' \
    --to=cpackard@zoominternet.net \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox