From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 12 02:25:02 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4F6D16A41F for ; Thu, 12 Jan 2006 02:25:02 +0000 (GMT) (envelope-from david@madole.net) Received: from d.omd3.com (d.omd3.com [69.90.174.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27D6143D46 for ; Thu, 12 Jan 2006 02:25:01 +0000 (GMT) (envelope-from david@madole.net) Received: from dhcp-66-212-201-164.myeastern.com ([66.212.201.164] helo=david) by d.omd3.com with esmtpa (Exim 4.54) id 1Ews97-000815-A4; Wed, 11 Jan 2006 21:25:01 -0500 Message-ID: <096b01c6171f$62711140$c3e7a8c0@david> From: "David S. Madole" To: , "Dan Joumaa" References: Date: Wed, 11 Jan 2006 21:24:58 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Cc: Subject: Re: Telling BSD to stop resetting the connection! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2006 02:25:02 -0000 From: "Dan Joumaa" > > I'm trying to code a software gateway with divert sockets. So far basic > things are working, but the net stack constantly resets the connection > whenever a SYN-ACK is sent to it. > > Any ideas on how to stop the net stack from resetting my connections, > preferably programmatically? I think you are doing something wrong, either not diverting packets that should be, or reinjecting packets from your code that are incorrect in some way. Without seeing the ipfw rules or code, there's not much else that can be said. David