From owner-freebsd-net@FreeBSD.ORG Fri Oct 31 12:20:33 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DFBC0711 for ; Fri, 31 Oct 2014 12:20:33 +0000 (UTC) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7472B9B0 for ; Fri, 31 Oct 2014 12:20:33 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id ex7so1130411wid.16 for ; Fri, 31 Oct 2014 05:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=I0tiPCPh4ugeCy49pe4k6vrHg7HBfPHUwqX98yf/jig=; b=GEGStlpsHYD+i8STqIh721XQD8A/1QidL+NAX8D/gHPhH0gATEGn/wZKPb8jFIequ1 JWqB2QC+TzXaOfDhERj6IpR9yFHxyLjk2sGZNjYxVV7Oa+fg5CF0/z1gQeNLgXbd6QWK ToE9nyp8ntMcHyRwkuS0trJtk4NMIPVqHC4DzTj1N5mSnT0yLEybrrCYnqcJpCQHHJZ8 IzPK9R0rpIk2Aazr9OwdgYKE4tl6/0oSNlTLBKIGEe/2R8OPAbg+pPv15xxX87gJj9Nz /ZrhNoBiSd5Pfi7CWdNL8OFUnb75sZStKbcd6+Vi0r6A5j2JtTR4TB+/8nR0+UW9zrQg wexg== X-Received: by 10.180.90.237 with SMTP id bz13mr3615887wib.50.1414758031678; Fri, 31 Oct 2014 05:20:31 -0700 (PDT) Received: from [192.168.2.30] ([2.176.150.113]) by mx.google.com with ESMTPSA id w10sm11923011wje.10.2014.10.31.05.20.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 05:20:31 -0700 (PDT) Message-ID: <54537E8A.9020500@gmail.com> Date: Fri, 31 Oct 2014 15:50:26 +0330 From: Hooman Fazaeli User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: "Andrey V. Elsukov" Subject: Re: transparent udp proxy References: <54535B82.405@gmail.com> <54536909.3030507@yandex.ru> <54537AB7.5030906@gmail.com> <54537BD0.20804@yandex.ru> In-Reply-To: <54537BD0.20804@yandex.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2014 12:20:34 -0000 On 10/31/2014 3:38 PM, Andrey V. Elsukov wrote: > On 31.10.2014 15:04, Hooman Fazaeli wrote: >>> Hi, >>> >>> udp_input() doesn't overwrite destination address. Probably you have NAT >>> that does this. >>> >> There is no NAT stuff. >> I checked that on 8.4 source: >> http://fxr.watson.org/fxr/source/netinet/udp_usrreq.c?v=FREEBSD8#L461 > The more recent FreeBSD versions don't overwrite destination address. > > https://svnweb.freebsd.org/base?view=revision&revision=225044 > Yes. It seems so. But still the problem of obtaining original destination port remains. -- Best regards. Hooman Fazaeli