From owner-freebsd-net@FreeBSD.ORG Fri Oct 31 12:08:58 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2AA1F312 for ; Fri, 31 Oct 2014 12:08:58 +0000 (UTC) Received: from forward6l.mail.yandex.net (forward6l.mail.yandex.net [IPv6:2a02:6b8:0:1819::6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D8FEF8A1 for ; Fri, 31 Oct 2014 12:08:57 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward6l.mail.yandex.net (Yandex) with ESMTP id 9669514E131F; Fri, 31 Oct 2014 15:08:55 +0300 (MSK) Received: from smtp13.mail.yandex.net (localhost [127.0.0.1]) by smtp13.mail.yandex.net (Yandex) with ESMTP id 26866E40097; Fri, 31 Oct 2014 15:08:55 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:40c:120b:a9ff:fe93:c998]) by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id dZPKuO91pS-8sQCfuUC; Fri, 31 Oct 2014 15:08:54 +0300 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: a718863e-3a60-4a8a-afae-20bc0ba886be DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1414757334; bh=NeMQMfdqkmLbY7/DBjcnNcwFJaOYK+kXshSasceOauQ=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=bCajlxAenPnO1ihWZqZ/chlsLmXSlmMsf0LSw7rswaN0fWr1F6XPfqHD4wQ40ZBlk Xeu3Utd3vd835nhoXBN6i9FIXx/Adn96PixgWcUl3w3lG0jLYlRMGBB31wdvMKM+Bf aO3y11luJTVT0y8fNENU4Iy+oC5oLd/I+D9yWBYA= Authentication-Results: smtp13.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <54537BD0.20804@yandex.ru> Date: Fri, 31 Oct 2014 15:08:48 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Hooman Fazaeli Subject: Re: transparent udp proxy References: <54535B82.405@gmail.com> <54536909.3030507@yandex.ru> <54537AB7.5030906@gmail.com> In-Reply-To: <54537AB7.5030906@gmail.com> Content-Type: text/plain; charset=windows-1252 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:08:58 -0000 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 -- WBR, Andrey V. Elsukov