UDP nat question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux