Hallo zusammen, mit ssh kann man ja mit -L Ports forwarden. Ich benutze das immer zusammen mit dem Parameter -f. Zu diesem steht im Manual:
The -f option backgrounds ssh and the remote command ``sleep 10'' is specified to allow an amount of time (10 seconds, in the example) to start the service which is to be tunnelled. If no connections are made within the time specified, ssh will exit.
Jetzt habe ich aber schon mehrfach beobachtet, daß ein geforwardeter Port auch nach vielen Minuten noch zur Verfügung steht, obwohl kein Verkehr (mehr) darüber läuft. Von einem Timeout von 10 Sekunden kann keine Rede sein. Wieso ist das so, und wie kriegt man so ein Portforwarding wieder platt? -- Andre Tann -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
Moin, hat da niemand dazu eine Idee? Gruß. Andre Tann, Sonntag, 10. Februar 2008 16:30:
Hallo zusammen,
mit ssh kann man ja mit -L Ports forwarden. Ich benutze das immer
zusammen mit dem Parameter -f. Zu diesem steht im Manual:
The -f option backgrounds ssh and the remote command ``sleep 10'' is specified to allow an amount of time (10 seconds, in the example) to start the service which is to be tunnelled. If no connections are made within the time specified, ssh will exit.
Jetzt habe ich aber schon mehrfach beobachtet, daß ein geforwardeter Port auch nach vielen Minuten noch zur Verfügung steht, obwohl kein Verkehr (mehr) darüber läuft. Von einem Timeout von 10 Sekunden kann keine Rede sein.
Wieso ist das so, und wie kriegt man so ein Portforwarding wieder platt?
-- Andre Tann
-- Andre Tann -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
On Mon 18 Feb 2008 22:29:49 NZDT +1300, Andre Tann wrote:
mit ssh kann man ja mit -L Ports forwarden. Ich benutze das immer zusammen mit dem Parameter -f. Zu diesem steht im Manual:
The -f option backgrounds ssh and the remote command ``sleep 10'' is specified to allow an amount of time (10 seconds, in the example) to start the service which is to be tunnelled. If no connections are made within the time specified, ssh will exit.
"... Wenn innerhalb dieser Zeit keine Verbindung aufgebaut ist, beendet sich ssh." Das sagt nichts darüber aus, wenn die Verbindung schon steht, dann aber kein Verkehr mehr darüber läuft.
Jetzt habe ich aber schon mehrfach beobachtet, daß ein geforwardeter Port auch nach vielen Minuten noch zur Verfügung steht, obwohl kein Verkehr (mehr) darüber läuft. Von einem Timeout von 10 Sekunden kann keine Rede sein.
Wieso ist das so, und wie kriegt man so ein Portforwarding wieder platt?
Wieso - weiß ich nicht. Forwarding aufheben? ssh beenden ist wohl die einzige Möglichkeit. HTH, Volker -- Volker Kuhlmann is list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me. -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
On Mon 18 Feb 2008 22:29:49 NZDT +1300, Andre Tann wrote:
mit ssh kann man ja mit -L Ports forwarden. Ich benutze das immer zusammen mit dem Parameter -f. Zu diesem steht im Manual:
$ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
Wieso ist das so
Das Forwarding läuft sozusagen als Nebentunnel über die Hauptverbindung. Nach 10 Sekunden ist der Befehl (sleep 10) ausgeführt und ssh beendet. ssh endet in diesen Situation aber nur, bis die letzte Forward-Verbindung beendet ist. Da müßte dann schon wenigstens eine der am Forwarding beteiligten Parteien fclose() auf dem Socket machen. TCP hat da zwar einen Timeout wenn da keine Nutzdaten mehr übertragen werden, der kann aber ganz einfach mit TCP-keepalive umgangen werden. Volker -- Volker Kuhlmann is list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me. -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
participants (2)
-
Andre Tann
-
Volker Kuhlmann