From: "Jorge Boncompte [DTI2]" Subject: Re: [PATCH] xx_nat_proto_gre: do not modify/corrupt GREv0 packets thought NAT Date: Wed, 2 May 2007 15:21:01 +0200 Message-ID: <027301c78cbc$baff1cd0$061010ac@intranet.dti2.net> References: <00c501c7829e$6209edd0$061010ac@intranet.dti2.net> <462DFD1D.1060706@trash.net> <101c01c78829$24a70230$061010ac@intranet.dti2.net> <4631DCA3.4020701@trash.net> <00ef01c788c1$e32a62e0$061010ac@intranet.dti2.net> <46388337.3060800@trash.net> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-15"; reply-type=original Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org To: "Patrick McHardy" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org ----- Original Message ----- From: "Patrick McHardy" To: "Jorge Boncompte [DTI2]" Cc: Sent: Wednesday, May 02, 2007 2:25 PM Subject: Re: [PATCH] xx_nat_proto_gre: do not modify/corrupt GREv0 packets thought NAT > Applied, thanks. I removed the FIXME though since its the intended > behaviour and not something that needs to be fixed. I'll push it > to -stable as well. Well, I don't have an opinion on the comment. My only intention was to reflect the fact that we do not NAT those packets as the comment states. Just for the records: The code can be made to NAT GREv0 packets with a key, at least if the orig and repl direction use the same key. This is the normal behaviour when you configure GRE tunnels on Cisco gears, Linux "ip tunnel" allows to use different keys for transmitting and receiving. I have tested that SNAT tracks the packets and that I can use several tunnels between the same endpoints with different keys, it did require only some minor modifications but to do it right it will need some more changes like to expand the key field to a 32bit type again all over the code. If someone ever needs it, just ask. Best regards, -Jorge ============================================================== Jorge Boncompte - Ingenieria y Gestion de RED DTI2 - Desarrollo de la Tecnologia de las Comunicaciones -------------------------------------------------------------- C/ Abogado Enriquez Barrios, 5 14004 CORDOBA (SPAIN) Tlf: +34 957 761395 / FAX: +34 957 450380 ============================================================== - Sin pistachos no hay Rock & Roll... - Without wicker a basket cannot be made. ==============================================================