PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.security.ssh > Bridging tunnels
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.security.ssh SSH secure remote login and tunneling tools.

Bridging tunnels

Réponse
 
LinkBack Outils de la discussion
Vieux 12/11/2006, 05h45   #1
bgrayburn@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Bridging tunnels

So I'm at a college, but have a shell account at a sever out in the
world somewhere. I cannot VNC into my dorm from the outside world
because of the evil firewall between my dorm and any incoming
connections, so I've come up with a solution: Create a permanent
tunnel from my dorm to a shell account, and then set up the shell
account so that when I create a new tunnel to it, it automatically
links the two tunnels so that it would look like i was connected
directly to my computer in my dorm. Beautiful in theory, but I'm not
sure how to set up the shell account part of the deal. I figure I need
to set it so that the incoming ssh port on one tunnel is dumped
straight to the outgoing ssh port of the other tunnel. But I'm not
sure how to do this, can someone and/or give advice on the
situation at large. Thanks =)

  Réponse avec citation
Vieux 12/11/2006, 16h05   #2
hasenhei
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bridging tunnels

What does "shell account" mean ?
- Can you ssh to it ?
- Does it allow port forwarding ?

If so, you could forward your VNC-server's VNC-port to your "internet
computer" INETGW. There you could connect from anywhere and attach to
the forwarded port.

On your VNC-server (asuming you are using port 5800)

ssh -R 5800:127.0.0.0.1:5800 INETGW -Nf
-> simply open port 5800 on INTEGW and forward it to your localhost
port 5800.
-> -Nf simply doesn't create a remote shell, only the port will be
forwarded. You will not have a shell on INETGW.

Now from any computer:

ssh -L 5800:127.0.0.1:5800 INETGW -Nf

-> this forwards the remote port on INETGW (which in fact is the
forwarded port from your VNC-server) to your "any computer".

Now on your "any computer":

vnc localhost
-> this would connect you to your VNC-server via the INETGW.

Best regards,
Armin

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 09h16.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10758 seconds with 10 queries