delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.5 required=5.0 tests=AWL,BAYES_20,SARE_SUB_ENC_UTF8,SPF_FAIL |
X-Spam-Check-By: | sourceware.org |
X-Copfilter: | Client is part of local network, skipped Spamassassin |
X-Copfilter: | Sender is in whitelist, skipped SpamAssassin |
From: | Matthias Meyer <Matthias DOT Meyer AT gmx DOT li> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: cygrunsrv/autossh howto start even the destination address is not =?utf-8?q?=09reachable?= yet? |
Date: | Tue, 6 Oct 2009 07:37:53 +0200 |
User-Agent: | KMail/1.9.9 |
References: | <200910041857 DOT 36479 DOT Matthias DOT Meyer AT gmx DOT li> <af075b00910041019r3411b38ejd99a553c4d312f5 AT mail DOT gmail DOT com> |
In-Reply-To: | <af075b00910041019r3411b38ejd99a553c4d312f5@mail.gmail.com> |
MIME-Version: | 1.0 |
Message-Id: | <200910060737.53503.Matthias.Meyer@gmx.li> |
X-Copfilter-Originating-IP: | 192.168.0.83 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Am Sonntag 04 Oktober 2009 schrieb Julio Costa: > Hi, > > On Sun, Oct 4, 2009 at 17:57, Matthias Meyer wrote: > > Hi, > > > > I've running port forwarding in WindowsXP as well as Windows Vista by using > > autossh, running as a service, installed by cygrunsrv. > > > > cygrunsrv -I service-tunnel -f "secure tunnel for service" \ > > Â Â Â Â -n -t auto -y tcpip -O -u $priv_user -w $priv_pwd -p /bin/nice \ > > Â Â Â Â -a "-n 10 /bin/autossh -R 12345:localhost:22 \ > > Â Â Â Â -M 0 -N -C -i /etc/ssh/id_rsa -p 24 user AT server DOT domain DOT at > > > > My problem is: > > If the client have a dialin connection to an internet provider, the internet > > connection isn't established when the autossh service will be started. > > Therefore I get an error message: > > ssh: Could not resolve hostname server.domain.at: no address associated with > > name > > > > How to configure/install the service wether in a way that he waits for an > > established internet connection or in a way that he try again until the > > hostname can be resolved? > > > > If autossh is started succesfull and I disconnect the internet connection, > > autossh will try again and again until the connection is established again. > > But autossh do not start if the hostname can not be resolved. > > > > I use autossh a lot, although not in a service. > > From what I can see, AUTOSSH_GATETIME is your friend. > Add it to the service instalation with -e AUTOSSH_GATETIME=0 > Yes, AUTOSSH_GATETIME do the work. Thank you Matthias -- Don't Panic -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |