From owner-freebsd-questions@FreeBSD.ORG Tue Sep 28 17:42:45 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92DAE16A4CE for ; Tue, 28 Sep 2004 17:42:45 +0000 (GMT) Received: from pursued-with.net (adsl-66-125-9-244.dsl.sndg02.pacbell.net [66.125.9.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26D5843D2F for ; Tue, 28 Sep 2004 17:42:45 +0000 (GMT) (envelope-from freebsd@pursued-with.net) Received: from babelfish.pursued-with.net (babelfish.pursued-with.net [10.0.0.42]) by pursued-with.net (Postfix) with ESMTP id 7B7EC29DC28; Tue, 28 Sep 2004 10:42:44 -0700 (PDT) Date: Tue, 28 Sep 2004 10:42:44 -0700 (PDT) From: Kevin Stevens To: Daniela In-Reply-To: <200409281934.41705.dgw@liwest.at> Message-ID: References: <200409281934.41705.dgw@liwest.at> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: questions@freebsd.org Subject: Re: How to set source address for outgoing SSH? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@pursued-with.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 17:42:45 -0000 On Tue, 28 Sep 2004, Daniela wrote: > I have some problems with an outgoing SSH connection to a machine on my > LAN. Connections from the clients to the server work, but not vice > versa. The server has two NICs and the connection should normally go > through the inside interface, but the connection is initiated with the > address of the outside interface instead. As a logical consequence, my > firewall (which is running on the server) drops the response, with my > outside address being shown in the firewall logs as source for the > request, and my inside address being shown as destination for the > response. The output of sockstat(1) shows the inside address being used > as expected. man ssh, look at the -b (bind) option. KeS