From owner-freebsd-net@FreeBSD.ORG Tue Feb 10 02:42:32 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CAF01065670 for ; Tue, 10 Feb 2009 02:42:32 +0000 (UTC) (envelope-from mij@bitchx.it) Received: from voodoo.publicshout.org (heroin.publicshout.org [81.208.58.150]) by mx1.freebsd.org (Postfix) with SMTP id 857328FC18 for ; Tue, 10 Feb 2009 02:42:31 +0000 (UTC) (envelope-from mij@bitchx.it) Received: (qmail 65111 invoked by uid 0); 10 Feb 2009 02:15:47 -0000 Received: from unknown (HELO ?192.168.10.172?) (m.mazzucchi@keencons.com@unknown) by unknown with SMTP; 10 Feb 2009 02:15:47 -0000 Message-Id: <7AB15D3E-5E8C-4FE9-873F-F8BAE72B8C6B@bitchx.it> From: Mij To: freebsd-net@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 10 Feb 2009 03:15:31 +0100 X-Mailer: Apple Mail (2.930.3) Subject: SO_BINDANY in FreeBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 02:42:32 -0000 Hello folks, OpenBSD provides a SO_BINDANY socket option that allows an application to produce traffic from an IP address which is not configured on the host: http://www.openbsd.org/cgi-bin/man.cgi?query=setsockopt This is useful to run a transparent proxy which receives connections from X and wants to connect to the real destination pretending to be X. Is there any possibility to see this option implemented in FreeBSD? Do you otherwise have workarounds for getting the same behavior with reasonable complexity (eg, avoiding handling raw frames with bpf)?