From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 12 01:55:07 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 9789516A41F for ; Thu, 12 Jan 2006 01:55:07 +0000 (GMT) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E0B543D45 for ; Thu, 12 Jan 2006 01:55:07 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.23.146]) ([10.251.23.146]) by a50.ironport.com with ESMTP; 11 Jan 2006 17:55:08 -0800 X-IronPort-Anti-Spam-Filtered: true Message-ID: <43C5B6FA.4050909@elischer.org> Date: Wed, 11 Jan 2006 17:55:06 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Joumaa References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org 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 01:55:07 -0000 Dan Joumaa wrote: > Hello, > > 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. > > 103 9.443254 192.168.1.6 -> 205.166.76.40 TCP pacmand > https [SYN] > Seq=0 Ack=0 Win=2920 Len=0 MSS=536 > 104 9.443364 192.168.1.2 -> 205.166.76.40 TCP pacmand > https [SYN] > Seq=0 Ack=0 Win=2920 Len=0 MSS=536 > 105 9.443617 192.168.1.6 -> 205.166.76.40 TCP pacmand > https [SYN] > Seq=0 Ack=0 Win=2920 Len=0 MSS=536 > 106 9.443654 192.168.1.2 -> 205.166.76.40 TCP pacmand > https [SYN] > Seq=0 Ack=0 Win=2920 Len=0 MSS=536 > 107 9.496102 205.166.76.40 -> 192.168.1.2 TCP https > pacmand [SYN, > ACK] Seq=0 Ack=1 Win=1608 Len=0 MSS=1460 > 108 9.496185 192.168.1.2 -> 205.166.76.40 TCP pacmand > https [RST] > Seq=1 Ack=341266652 Win=0 Len=0 > > (192.168.1.1 = next hop, 192.168.1.2 = this computer, 192.168.1.6 = > the client) sounds like the SYN ACK is not getting diverted? > > Any ideas on how to stop the net stack from resetting my connections, > preferably programmatically? > > --ness > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org"