NAT - randomize the port selection
Hello!
Recently there was an issue identified on DNS module about the need to randomize the port selection. I'd like to know if this is already taken care in NAT modules in iptables? Could you please let me know if port selection is already randomized in these modules ?
Signature · 6 lines
Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz
Hello,
Quoted 6 lines · Pavol Rusnak
Hello!
Recently there was an issue identified on DNS module about the need to randomize the port selection. I'd like to know if this is already taken care in NAT modules in iptables? Could you please let me know if port selection is already randomized in these modules ?
Yes, an option is available since 2.6.21.
You can find some information here :
http://software.inl.fr/trac/wiki/contribs/RandomSkype
http://www.cipherdyne.org/blog/2008/07/mitigating-dns-cache-poisoning-attacks-with-iptables.html
BR,
Signature · 3 lines
Eric Leblond INL: http://www.inl.fr/ NuFW: http://www.nufw.org/
Quoted 6 lines · Pavol Rusnak
Hello!
Recently there was an issue identified on DNS module about the need to randomize the port selection. I'd like to know if this is already taken care in NAT modules in iptables? Could you please let me know if port selection is already randomized in these modules ?
If the client randomizes its source port, the NAT will obviously do the same. Then there is --random for SNAT/MASQUERADE and others.
And now there has just been a patch merged to take some secure port number it seems.
(http://marc.info/?l=netfilter-devel&m=121912048304189&w=2 )