From: Daniel Lopes <lopsch@lopsch.com>
To: netfilter@lists.netfilter.org
Subject: Re: UDP nat question
Date: Tue, 19 Apr 2005 15:31:10 +0200 [thread overview]
Message-ID: <4265081E.7@lopsch.com> (raw)
In-Reply-To: <4263C3A2.70006@inescporto.pt>
Filipe Abrantes schrieb:
> Hi all,
>
> I have a basic question about iptables UDP NAT.
>
> Imagine that you have 2 UDP sessions in your private LAN using the same
> port. How does iptables nat these connections? One of the sessions will
> get one external port of the NAT machine and the other session will get
> another one? Does the usual MASQUERADE command suffice to achieve this?
>
> iptables MASQUERADE command:
>
> $IPTABLES -t nat -A POSTROUTING -o $OUTBOUND_IFACE -j MASQUERADE
>
> Hope I have made myself clear and,
>
> Thanks for your attention
>
> Filipe Abrantes
>
For example:
machine 1 running an application on port 1465
machine 2 running an application also on 1465
both make a DNS request to Port 53 UDP
the srcip of the second request reaching the router will be mapped for
that time to a free port on the router. AFAIK
next prev parent reply other threads:[~2005-04-19 13:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-18 14:26 UDP nat question Filipe Abrantes
2005-04-19 12:03 ` Jason Opperisano
2005-04-19 13:31 ` Daniel Lopes [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-04-20 16:11 Filipe Abrantes
2005-04-21 12:17 ` Damjan
2005-04-21 18:02 ` Taylor, Grant
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=4265081E.7@lopsch.com \
--to=lopsch@lopsch.com \
--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