From: Luca Ferrari Subject: ssh tunnel Date: Thu, 8 Jul 2004 17:00:56 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <200407081700.56365.fluca1978@infinito.it> Reply-To: fluca1978@infinito.it Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org Hi, I want to realize a ssh tunnel for VNC behind two different factories, where clients are behind a firewall (one firewall per factory). I have done something with ssh -L, but never for vnc and behind two firewalls. The situation is this: machine A: mac os x with vnc server machine B: windows cwith vnc viewer firewall FA: linux with iptables and masquerading firewall FB: linux with iptables and masquerading I thought to enable the tunnel starting on FB, with something like: ssh -L vnc_port:FA:vnc_port thus when B tries to connect to A, it will be redirected to the FA:vnc_port. Now, what do I have to do on FA? I don't want to use ssh behind FA and FB, so I'd like to not use ssh over A and B. How can I configure the two firewalls to do this? Thanks, Luca -- Luca Ferrari, fluca1978@infinito.it