Re: NAT and listen on random ports

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

 



Hello,

Vijay Viswanathan a écrit :
> With MASQUERADE & DNAT
> Iam able to run servers on veth and be able to access network.
(...)
> Lot of protocols go out on random ports and listen on the same source port .
> How do I achieve network access for protocols that goes out on random
> ports and listen on random ports ?

If the protocol is connection-oriented, i.e. packets in opposite
directions have swapped source/destination ports and addresses, then
conntrack handles the flow as a connection, so all you need is
MASQUERADE or SNAT.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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