All of lore.kernel.org
 help / color / mirror / Atom feed
From: netfilter@serverguy.net
To: prabha <prabha@multitech.co.in>, netfilter@lists.netfilter.org
Subject: Re: Subject: Problem with SNAT and same port number
Date: Mon, 23 Feb 2004 16:21:22 +1000	[thread overview]
Message-ID: <200402231621.22177.netfilter@serverguy.net> (raw)
In-Reply-To: <40399938.AE4CE1DD@multitech.co.in>

Hi,

Yes, I do include udp as well.  A tcpdump shows traffic two and from until I 
insert that rule, then there is no return traffic sent, its as though its 
being silently dropped, because nothing is in the logs either.  If I change 
the port to 52, the return traffic apears, but of course, on the wrong port.

> Hi
>
> >I am wanting to change the source address of outgoing packets that have a
> > src port of 53.
> > I have tried /sbin/iptables -A POSTROUTING -p tcp -t nat -o bond0 --sport
> > 53 -j SNAT --to-source 192.168.0.1:53
>
> If my understanding is correct, you want to do SNAT but without changing
> the source port number. The above command should work.
> Can you check out if your DNS requests are on TCP or UDP? If they are on
> UDP, you may need to extend the above rule for UDP also.
>
> Regards
> Prabha



      reply	other threads:[~2004-02-23  6:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040223052721.8508.52386.Mailman@netfilter-sponsored-by.noris.net>
2004-02-23  6:10 ` Subject: Problem with SNAT and same port number prabha
2004-02-23  6:21   ` netfilter [this message]

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=200402231621.22177.netfilter@serverguy.net \
    --to=netfilter@serverguy.net \
    --cc=netfilter@lists.netfilter.org \
    --cc=prabha@multitech.co.in \
    /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 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.