On Mon, May 27, 2002 at 09:23:25AM +1200, Mark Carey wrote:
> Hi,
> 
> I have a question regarding X11 forwarding.  If I have a machine acting
> as a bridge between two networks, is it possible for the machines on
> network 2 to receive the graphics etc from X apps off machines on
> network 1. 
> 
> N        __________        N
> E       |          |       E
> T  eth0 |  Machine | eth1  T
> W ------|     A    |------ W
> O       |          |       O
> R       |__________|       R
> K                          K
> 1                          2
> 
> There is only one way I can think of doing this,
> 
> Running DNAT (IPTables Destination Network Address Translation) on
> machine A. The only problem with this is that only one machine on
> network 2 will be able to run apps off machines on network 1.
> 
> Are there any others,
> Can I SSH into machine A and then telnet/ssh out and get the graphics to
> turn up on my workstation on network 2?

I'm guessing you have reasons not to turn A into a network router.
(which is the easiest method - since X is just a client server protocol)

ssh, yes. Make sure the respective sshd's have "AllowX11Forwarding yes"
in their configuration.

ssh -t -X <machineA> ssh -X <target>

the -t just allows the chained ssh to get a terminal, so it can ask for
a password.

Mike.
-- 
Michael Beattie <[EMAIL PROTECTED]>

Trees moving back and forth make the wind blow.

Reply via email to