From owner-freebsd-net@FreeBSD.ORG Fri Oct 31 12:26:34 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 EFDB48FF for ; Fri, 31 Oct 2014 12:26:34 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A9D67A82 for ; Fri, 31 Oct 2014 12:26:34 +0000 (UTC) Received: from [89.204.135.85] (helo=unixarea.DDR.dd) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1XkBHc-00069l-Vw; Fri, 31 Oct 2014 13:26:25 +0100 Received: from unixarea.DDR.dd (localhost [127.0.0.1]) by unixarea.DDR.dd (8.14.9/8.14.3) with ESMTP id s9VCQMOo002428; Fri, 31 Oct 2014 13:26:22 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by unixarea.DDR.dd (8.14.9/8.14.3/Submit) id s9VCQLsE002427; Fri, 31 Oct 2014 13:26:21 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: unixarea.DDR.dd: guru set sender to guru@unixarea.de using -f Date: Fri, 31 Oct 2014 13:26:20 +0100 From: Matthias Apitz To: Hooman Fazaeli Subject: Re: transparent udp proxy Message-ID: <20141031122620.GA2416@unixarea.DDR.dd> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Hooman Fazaeli , "Andrey V. Elsukov" , "freebsd-net@freebsd.org" References: <54535B82.405@gmail.com> <54536909.3030507@yandex.ru> <54537AB7.5030906@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <54537AB7.5030906@gmail.com> X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.135.85 Cc: "freebsd-net@freebsd.org" , "Andrey V. Elsukov" 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:26:35 -0000 El día Friday, October 31, 2014 a las 03:34:07PM +0330, Hooman Fazaeli escribió: > > 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 Hi, In the GOD(*) I run a firewall for our company with an UDP gateway; I've pulled out the sources from dust and they are here: http://www.unixarea.de/udprelay.tar.gz See if you can drain something from it. matthias GOD(*): Good Old Days :-) -- Matthias Apitz | /"\ ASCII Ribbon Campaign: E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign