Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] Issue 70 in ndt: Fix for middlebox NAT detection

Subject: NDT-DEV email list created

List archive

[ndt-dev] Issue 70 in ndt: Fix for middlebox NAT detection


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] Issue 70 in ndt: Fix for middlebox NAT detection
  • Date: Thu, 10 Jan 2013 04:01:17 +0000

Status: New
Owner: ----
Labels: Type-Defect Severity-Medium

New issue 70 by
:
Fix for middlebox NAT detection
http://code.google.com/p/ndt/issues/detail?id=70

What steps will reproduce the problem?
Currently ndt will compare hostname/dns resolved names rather than IP addresses directly when checking for NAT.
Often the server will detect a different host name for the client than what the client detects for itself. And visa versa. Hence falsely detects a NAT.

Putting a manual entry into /etc/hosts and is all most guaranteed to cause this.

What is the expected output? What do you see instead?
NDT should check for NAT based on IP addresses not host names.

Expected behaviour
~~
wand@quarterpounder:~$
./web100clt -n 10.1.18.175
...
Server IP addresses are preserved End-to-End
Client IP addresses are preserved End-to-End
~~

Current behaviour
~~
wand@quarterpounder:~/ndt-3.6.4/src$
./web100clt -n 10.1.18.175
...
Information: Network Address Translation (NAT) box is modifying the Server's IP address
Server says [10.1.18.175] but Client says [ dhcp-175.uni.crc.net.nz]
Information: Network Address Translation (NAT) box is modifying the Client's IP address
Server says [10.1.18.217] but Client says [ dhcp-217.uni.crc.net.nz]
~~

What version of the product are you using? On what operating system?
r936 - Present since at least 3.6.4.

Please provide any additional information below.
Attached patch.

The current I2AddrNodeName way of doing this ultimately retrieves its values from getnameinfo.

I haven't looked at the java client, it might also require a similar fix.

Attachments:
fixnat.diff 8.2 KB




Archive powered by MHonArc 2.6.16.

Top of Page