Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jun 1998 04:30:34 -0400 (EDT)
From:      CyberPeasant <djv@bedford.net>
To:        brian@Awfulhak.org (Brian Somers)
Cc:        bendede@startribune.com, questions@FreeBSD.ORG
Subject:   Re: X thru ppp alias?
Message-ID:  <199806220830.EAA22749@lucy.bedford.net>
In-Reply-To: <199806220559.GAA22206@awfulhak.org> from Brian Somers at "Jun 22, 98 06:59:41 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Brian Somers wrote:
> > Is it possible to run Xwindows using a FreeBSD machine running ppp -alias to connect the machines?
> > 
> > I'm working on a Windows NT machine at home running the Exceed xwindows server. When I dial in to the Solaris machines at work directly, I have no trouble running xterm, xemacs and all the rest of those fine X programs. 
> > 
> > I'm in the process of setting up a FreeBSD machine as my home's connection to the Internet, via my ppp account at work and it works wonderfully for simple connections: http, telnet, stuff like that.
> > 
> > But when I try to connect from my NT machine to a Sun machine through the FreeBSD machine, the ip address of the -DISPLAY variable seems to get lost. On the home network, it's 10.0.0.1. But that's not the correct address for the Sun machine, which see
> 
> s whatever address got assigned to the FreeBSD machine when it connected.
> > 
> > Is this making sense? Is there a solution? 
> > 
> > I'm running FreeBSD 2.2.6-RELEASE (and loving it!)
> 
> I'm afraid this can't work AFAIK.  When you run the remote 
> application, it has to make a connection back to the machine with the 
> DISPLAY.  There's no way for the alias engine to know which internal 
> machine should get the data back.


THe aliasing doesn't know, but there is a way to do this.

Try a web search for "xforward".  What you do is run this prog. on
the machine with the "real" IP, where it mimics an Xserver listening
on port 6000 or whatever, typically 6010. If the gateway is foo.bar.com,
then DISPLAY on the remote SUN will be DISPLAY=foo.bar.com:10.0
(or is it 0.10... I forget; I'm not currently using this program).
The xforward program then forwards the connection through to
the final screen. The gateway doesn't need to have X installed.

I used this on a linux gateway to allow a BSD workstation to display
application output from a remote IRIS not too long ago.  There are
other progs, too.

Where to Get Xforward
---------------------

The current version of xforward can be copied by anonymous FTP from
crl.dec.com:/pub/DEC/xforward.tar.Z.

That gets a Motif version with a possibly broken Makefile.
There's an another version kicking around that includes an Imakefile
and can be set up to use Xaw.  

There's a hacked version (no motif/xaw, no security) on ftp at
sunsite.unc.edu/pub/X11/contrib/applications/xforward2.tar.gz

or www.cdrom.com/pub/X11/contrib/applications/xforward2.tar.gz

A shell archive of the Xaw version is at
 http://ftp.lth.se/archive/usenet/comp.sources.x/volume21/

Use a browser for that last one.
 
-----------------------

I've heard that ssh will proxy an X display, too.

Dave
-- 
http://www.microsoft.com/security: `Microsoft Windows NT Server is the most 
                  secure network operating system available.'
Don Quixote: `You are mistaken, Sancho.'

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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