From owner-freebsd-questions@FreeBSD.ORG Mon Oct 4 16:51:15 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 8B71E16A4CE for ; Mon, 4 Oct 2004 16:51:15 +0000 (GMT) Received: from frontend2.messagingengine.com (frontend2.messagingengine.com [66.111.4.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6101C43D2D for ; Mon, 4 Oct 2004 16:51:15 +0000 (GMT) (envelope-from nkinkade@fastmail.fm) X-Sasl-enc: +cRvqbsQ6N+eMto4wT5FPQ 1096908671 Received: from gentoo-npk.bmp.ub (unknown [206.27.244.136]) by www.fastmail.fm (Postfix) with ESMTP id 5842856DFC5; Mon, 4 Oct 2004 12:51:11 -0400 (EDT) Received: from nkinkade by gentoo-npk.bmp.ub with local (Exim 4.21) id 1CEW0w-000689-Oe; Mon, 04 Oct 2004 10:48:42 -0600 Date: Mon, 4 Oct 2004 10:48:42 -0600 From: Nathan Kinkade To: Anthony Philipp Message-ID: <20041004164842.GN3633@gentoo-npk.bmp.ub> Mail-Followup-To: Anthony Philipp , FreeBSD Questions References: <20041004082938.GA39008@lupin.angrypanda.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O6uyWUGY5J97yCxj" Content-Disposition: inline In-Reply-To: <20041004082938.GA39008@lupin.angrypanda.net> User-Agent: Mutt/1.5.6i Sender: cc: FreeBSD Questions Subject: Re: passing origin through nat? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 16:51:15 -0000 --O6uyWUGY5J97yCxj Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 04, 2004 at 03:29:38AM -0500, Anthony Philipp wrote: > Hello, > > When I log in to my computer from a remote location, it still says > that I am coming from my nat box. Is it possible to have my nat box > forward where I am logging in from? I would also like to be able to > forward where apache connections are coming from. Right now all the > logs say is that their coming from my nat box. So if anyone knows how > to solve this that would be great. > > Thanks Anthony Philipp The only way that I can think of that you may be able to have your sshd box know your non-NATed IP address, or hostname, would be to have the ssh client set an environment variable when you first login. You could then consult that variable as needed. Check the sshd man page. Here is a snip: Additionally, ssh reads $HOME/.ssh/environment, and adds lines of the format ``VARNAME=3Dvalue'' to the environment if the file exists and if users are allowed to change their environment. See the PermitUserEnvironment option in sshd_config(5). I doubt that you will be able to find an acceptable resolution to your question regarding Apache logging. Nathan --=20 PGP Public Key: pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0xD8527E49 --O6uyWUGY5J97yCxj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBYX7qO0ZIEthSfkkRArGFAJ9pVFp+5LQv65cjkIU/KqEfaVdgYwCcCeCD AvXncef8rnALnxgTRxvC7Wk= =qORS -----END PGP SIGNATURE----- --O6uyWUGY5J97yCxj--