Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 2004 10:42:44 -0700 (PDT)
From:      Kevin Stevens <freebsd@pursued-with.net>
To:        Daniela <dgw@liwest.at>
Cc:        questions@freebsd.org
Subject:   Re: How to set source address for outgoing SSH?
Message-ID:  <Pine.OSX.4.58.0409281041420.4247@onorysvfu.chefhrq-jvgu.arg>
In-Reply-To: <200409281934.41705.dgw@liwest.at>
References:  <200409281934.41705.dgw@liwest.at>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSX.4.58.0409281041420.4247>