Networking Forums

Networking Forums > Computer Networking > Linux Networking > X connection through router and firewall

Reply
Thread Tools Display Modes

X connection through router and firewall

 
 
Sourin
Guest
Posts: n/a

 
      06-11-2004, 09:01 PM
Hello all,
I am having problem in establishing an X connection with my work
machine. Let me explain the situation in some more detail. All
machines are running linux.

My computer at work is behind a firewall. So, when I need to connect
to it I have to ssh to hostA (firewall), which upon successful
authorization, it connects me directly to hostB on my office network.
If -X option is used with ssh, hostB tries to set its DISPLAY variable
to hostA's display, which fails.

At home I am using a DSL connection with a router. My home machine
gets a static IP from the router. I have set my router to forward port
22 to my machine and ssh connection to my home machine works fine. If
I do ssh -X from my home machine to hostC ( which is on some other
network and not behind any firewall ), I can open any X client on
hostC successfully. Also I can open a sshed X connection on hostB from
hostC after proper xauthorization ( hostB and hostC are on different
network).

I tried to forward the display port on hostB to my home machine port
6000 using ssh -R option, but X server on my home machine is refusing
that connection ( my router is also forwarding port 6000 ). I have
added hostB's xauth magic key to my home machine's xauth list.

Any suggestions.

Thanks in advance.
 
Reply With Quote
 
 
 
 
Cameron Kerr
Guest
Posts: n/a

 
      06-11-2004, 10:42 PM
[Followups set to COLN]

In comp.os.linux.networking Sourin <(E-Mail Removed)> wrote:

> My computer at work is behind a firewall. So, when I need to connect
> to it I have to ssh to hostA (firewall), which upon successful
> authorization, it connects me directly to hostB on my office network.


So you've told it to run ssh in your .bash_profile or similar? Icky.

> If -X option is used with ssh, hostB tries to set its DISPLAY variable
> to hostA's display, which fails.


The display variable should be untouched, and when displayed, it should
be like localhost:10. Make sure you are net setting DISPLAY anywhere in
your login scripts.

From your home machine, try doing the following. You might like to have
a look at my sshmh program, which you can find on my website.

ssh -CAXt user@hostA ssh -AXt user@hostB

This is most easily done if you have SSH keys set up.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server 2008 with Hyper-V - domain controller - Firewall GUI's show firewall ON, but netsh reports firewall OFF Bruce Sanderson Windows Networking 7 10-07-2008 09:57 AM
Do I need a software firewall in addition to a NAT router/firewall? CRC Linux Networking 2 09-08-2008 02:16 AM
Firewall Router BEFSX41 versus None Firewall Router BEFSR41 R.P. Network Routers 1 09-29-2004 03:35 AM
Dialup connection through firewall of a Broadband router Damo784 Wireless Internet 0 08-23-2004 10:53 PM
Firewall/router with redundant internet connection David Brown Linux Networking 2 08-02-2004 06:15 AM



1 2 3 4 5 6 7 8 9 10 11