From: "Jesse Peng" Subject: Re: P2P implementation for netfilter NAT Date: Mon, 5 Dec 2005 16:03:03 +0800 Message-ID: <002f01c5f972$5da353a0$6602a8c0@acer21ce70712f> References: <001801c5f6b3$539b1b20$3478fea9@acer21ce70712f> <1133692009.30188.27.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="big5"; reply-type=original Content-Transfer-Encoding: 7bit Cc: Harald Welte , netfilter-devel@lists.netfilter.org Return-path: To: "Rusty Russell" 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: "Rusty Russell" To: "Jesse Peng" Cc: "Harald Welte" ; Sent: Sunday, December 04, 2005 6:26 PM Subject: Re: P2P implementation for netfilter NAT > On Fri, 2005-12-02 at 04:10 +0800, Jesse Peng wrote: >> Dear All >> Here is the patch for p2p implementation.Please reference the links >> below: >> 1.Logic to implement. >> https://lists.netfilter.org/pipermail/netfilter-devel/2004-November/017479.html >> 2.The Last draft by Dan Kegel. >> http://www.brynosaurus.com/pub/net/p2pnat.pdf >> >> Hello Rusty >> Like what we discussed as following 2 points >> 1.hash_by_modified_source need be checked and added by conntracks >> being SNATP2Ped.As the checking code is hacked in >> ip_nat_used_tuple,and adding code in ip_nat_setup_info.All incoming >> hairpin or holepunch try be checked and added in the ip_nat_rule_find >> hacking. > >> 2.delay tcp timeout for immediate reset by counterparts in case they >> are old version and fail to take hairpin or holepunch reaction.(Maybe >> We don't need do this any more,because that will only terminate our >> initiation,but while they initiate,we are happy to handle the >> holepunch and the hairpin! :) ) . > > Hi Jesse, > > Your patch seems incomplete, and anyway it's been mangled by your > mailer. Sorry I've been slow to respond, but a on a quick read I think > you're going in the right direction. Perhaps try an attachment? > Thanks,Rusty,I'll resend it again!Please check Regards Jesse