All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: UDP nat question
@ 2005-04-20 16:11 Filipe Abrantes
  2005-04-21 12:17 ` Damjan
  2005-04-21 18:02 ` Taylor, Grant
  0 siblings, 2 replies; 6+ messages in thread
From: Filipe Abrantes @ 2005-04-20 16:11 UTC (permalink / raw)
  To: netfilter

First of all, thanks for replying, it's clear now.

I have one more question related to this:

Imagine a host behind NAT with IP 192.168.22.33 which has an application 
on port 5060 ( a sip client) and opens a connection to a server outside 
the NAT (the sip registrar with IP 130.11.22.33 on port 5060), and 
consider that the NAT box translates the SIP client src_ip to 
129.11.22.33 and src_prt to 5054, for this communication.

The SIP registrar is able to reach the SIP client running on 
192.168.22.33:5060 by using 129.11.22.33:5054, but what about other 
hosts on the Internet? Will they also be able to reach the SIP client 
using the pair 129.11.22.33:5054, or only packets coming from the SIP 
registrar be accepted?

Thanks again

Filipe Abrantes

-- 
Filipe Lameiro Abrantes
INESC Porto
Campus da FEUP
Rua Dr. Roberto Frias, 378
4200-465 Porto
Portugal

Phone: +351 22 209 4266
E-mail: fla@inescporto.pt



^ permalink raw reply	[flat|nested] 6+ messages in thread
* UDP nat question
@ 2005-04-18 14:26 Filipe Abrantes
  2005-04-19 12:03 ` Jason Opperisano
  2005-04-19 13:31 ` Daniel Lopes
  0 siblings, 2 replies; 6+ messages in thread
From: Filipe Abrantes @ 2005-04-18 14:26 UTC (permalink / raw)
  To: netfilter

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

-- 
Filipe Lameiro Abrantes
INESC Porto
Campus da FEUP
Rua Dr. Roberto Frias, 378
4200-465 Porto
Portugal

Phone: +351 22 209 4266
E-mail: fla@inescporto.pt


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

end of thread, other threads:[~2005-04-21 18:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-20 16:11 UDP nat question Filipe Abrantes
2005-04-21 12:17 ` Damjan
2005-04-21 18:02 ` Taylor, Grant
  -- strict thread matches above, loose matches on Subject: below --
2005-04-18 14:26 Filipe Abrantes
2005-04-19 12:03 ` Jason Opperisano
2005-04-19 13:31 ` Daniel Lopes

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.