Gentoo Archives: gentoo-user-de

From: Ramin Torabi <ramin.t@×××××.com>
To: gentoo-user-de@l.g.o
Subject: Re: [gentoo-user-de] OT: SSH Tunnel Szenario
Date: Tue, 16 May 2006 14:05:58
Message-Id: 4469DB10.8020400@gmail.com
In Reply to: [gentoo-user-de] OT: SSH Tunnel Szenario by Dirk Heinrichs
1 Dirk Heinrichs wrote:
2
3 >Hi,
4 >
5 >kenne mich mit SSH Tunneln nicht so aus, wie, wenn überhaupt, würde ich
6 >folgendes Szenario realisieren:
7 >
8 >1) Rechner A kann keine Verbindung zur Außenwelt herstellen (auch nicht per
9 >SSH)
10 >2) Rechner B kann per SSH Verbindung zu Rechner A herstellen
11 >3) Rechner B hat Verbindung zur Außenwelt
12 >4) Rechner A braucht Updates, zu holen von Rechner C, Port 80.
13 >
14 >Frage: Kann ich den Tunnel von A zu C von B aus einrichten? Wenn ja, wie?
15 >
16 >Danke...
17 >
18 > Dirk
19 >
20 >
21 Hi ...
22
23 klar geht das ... dazu benutzt man die -L Option von ssh:
24 (man ssh:)
25 ...
26 -L port:host:hostport
27 Specifies that the given port on the local (client) host is to be
28 forwarded to the given host and port on the remote side. This works
29 by allocating a socket to listen to port on the local side, and whenever
30 a connection is made to this port, the connection is forwarded over the
31 secure channel, and a connection is made to host port hostport from the
32 remote machine. Port forwardings can also be specified in the
33 configuration file. Only root can forward privileged ports. IPv6
34 addresses can be specified with an alternative syntax: port/host/hostport.
35
36 ...
37
38 Du ruft das dann in deinem Fall von Rechner A auf und verbindest dich
39 mit Rechner B das was im Beispiel heist heist ist der Rechner C. Port
40 ist der Port auf dem Rechner B den du verwenden moechtest und Hostport
41 ist der Port 80 vom Recher C.
42
43 Viel Erfolg.
44 Ramin
45 --
46 gentoo-user-de@g.o mailing list