delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4979DC7A.1060509@free.fr> |
Date: | Fri, 23 Jan 2009 16:04:26 +0100 |
From: | cuicui <cuicui DOT oizo AT free DOT fr> |
User-Agent: | Thunderbird 2.0.0.19 (Windows/20081209) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | [resolved] Rsync (daemon) cannot see loopback connections IP address as "127.0.0.1" |
References: | <4979D424 DOT 8080105 AT free DOT fr> |
In-Reply-To: | <4979D424.8080105@free.fr> |
X-up1-MailScanner-Information: | Please contact the ISP for more information |
X-up1-MailScanner: | Found to be clean |
X-up1-MailScanner-From: | cuicui DOT oizo AT free DOT fr |
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 |
cuicui a écrit : > Hello, > > I'm trying to use rsync over SSH without the "-e ssh" option. The idea > is to make rsync --daemon bind on the loopback on the Cygwin box and to > connect to this box with a tunnel: > > ssh -L 873:localhost:873 user AT cygwin_box > > On the Cygwin Box, the file /etc/rsync.conf contains: > > [d_drive] > read only = yes > path = /cygdrive/d/ > hosts allow = 127.0.0.1 > > To backup the Cygwin box, this simple command should do the trick: > > rsync -avz localhost::d_drive /path > > This is a simple use of a SSH tunnel. > > Unfortunately, on the cygwin box, rsync sees the loopback connection > (from the SSH tunnel) from its own public IP address instead of > "127.0.0.1". > > So the /etc/rsync.conf should be: > > [d_drive] > read only = yes > path = /cygdrive/d/ > hosts allow = <real_IP_address_instead_of_loopback_address> > > It works but I'd like to backup a lot of Cygwin boxes and having to fill > the "hosts allow" line with a non-generic static value is quite disturbing. > > How can I make rsync seeing local/tunnel connections as "127.0.0.1"? Mmmm, my SSH tunnel wasn't good, I did: ssh -L 873:cygwin_box:873 user AT cygwin_box instead of ssh -L 873:localhost:873 user AT cygwin_box Sorry about that, problem solved. Nicolas -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |