Re: UDP nat question

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

 



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



[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