Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2004 09:42:43 +0200
From:      Geert Hendrickx <geert.hendrickx@ua.ac.be>
To:        Ion-Mihai Tetcu <itetcu@apropo.ro>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: reverse ssh
Message-ID:  <20041006074243.GB46388@lori.mine.nu>
In-Reply-To: <20041005224557.22c6334e@it.buh.tecnik93.com>
References:  <1096997448.8587.99.camel@localhost> <4162DDC2.3030803@gmx.net> <20041005224557.22c6334e@it.buh.tecnik93.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 05, 2004 at 10:45:57PM +0300, Ion-Mihai Tetcu wrote:
> 
> [ please don't loose context ]
> 
> On Tue, 05 Oct 2004 19:45:38 +0200
> Benjamin Walkenhorst <krylon@gmx.net> wrote:
> 
> > Micah Bushouse wrote:
> >
> > > I have a BSD box (home) sitting on an apartment complex network
> > > (dhcp/nat/firewall) that I don't control. I also have a BSD box (work)
> > > with a static IP sitting on my university's network.
> > > 
> > > Is there a way to open a ssh/other connection before I leave for work in
> > > the morning (from the home box to the work box), then travel to the
> > > university, sit at my desk and use this connection to get a terminal on
> > > my home machine? Is there any software out there that addresses this?
> > > Ideally it would involve ssh.
> > 
> > You could write a script that sends an email to you every morning
> > which contains your IP-address. *Encrypted*, of course!!!
> 
> Since he's home machine is behind a NAT at what would knowing its
> (private) ip serve?

You could put up some cgi-script on any http-server outside the LAN,
which just returns the client's IP address: 

#!/bin/sh
echo "Content-type: text/html; charset=iso-8859-1"
echo
echo $REMOTE_ADDR

In PHP you can do the same with $_SERVER['REMOTE_ADDR'].  

GH

-- 
:wq



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