From: prabha <prabha@multitech.co.in>
To: netfilter@lists.netfilter.org
Subject: Subject: Problem with SNAT and same port number
Date: Mon, 23 Feb 2004 11:40:00 +0530 [thread overview]
Message-ID: <40399938.AE4CE1DD@multitech.co.in> (raw)
In-Reply-To: 20040223052721.8508.52386.Mailman@netfilter-sponsored-by.noris.net
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
next parent reply other threads:[~2004-02-23 6:10 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 ` prabha [this message]
2004-02-23 6:21 ` Subject: Problem with SNAT and same port number netfilter
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=40399938.AE4CE1DD@multitech.co.in \
--to=prabha@multitech.co.in \
--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